diff --git a/.gitignore b/.gitignore index fccd88f9..df37a7e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ conf/user.inc.php conf/user_defined.php -userdata/cronjobkey.txt -userdata/tmp/ -www/cache/ \ No newline at end of file +userdata +www/cache/ diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..f10b3464 --- /dev/null +++ b/.htaccess @@ -0,0 +1,19 @@ +# Generated file from class.acl.php +# For detection of htaccess functionality +SetEnv OPENXE_HTACCESS on +# Disable directory browsing +Options -Indexes +# Set default page to index.php +DirectoryIndex "index.php" +# Deny general access +Order deny,allow + + Order Allow,Deny + Deny from all + +# Allow index.php + + Order Allow,Deny + Allow from all + +# end diff --git a/classes/Components/Logger/Handler/DatabaseLogHandler.php b/classes/Components/Logger/Handler/DatabaseLogHandler.php index 1b74c1e4..692f9e29 100644 --- a/classes/Components/Logger/Handler/DatabaseLogHandler.php +++ b/classes/Components/Logger/Handler/DatabaseLogHandler.php @@ -66,7 +66,7 @@ final class DatabaseLogHandler extends AbstractLogHandler $sql = 'INSERT INTO `log` (`log_time`, `level`, `message`, `class`, `method`, `line`, `origin_type`, `origin_detail`, `dump`) VALUES - (NOW(), :level, :message, :class, :method, :line, :origin_type, :origin_detail, :dump)'; + (NOW(3), :level, :message, :class, :method, :line, :origin_type, :origin_detail, :dump)'; $this->db->perform($sql, $values); } } diff --git a/classes/Components/MailClient/Data/MailAttachmentData.php b/classes/Components/MailClient/Data/MailAttachmentData.php index 7badf4ab..fe414934 100644 --- a/classes/Components/MailClient/Data/MailAttachmentData.php +++ b/classes/Components/MailClient/Data/MailAttachmentData.php @@ -62,33 +62,90 @@ class MailAttachmentData implements MailAttachmentInterface { $encodingHeader = $part->getHeader('content-transfer-encoding'); if ($encodingHeader === null) { - throw new InvalidArgumentException('missing header: "Content-Transfer-Encoding"'); + // Assume this is no error (?) throw new InvalidArgumentException('missing header: "Content-Transfer-Encoding"'); + $encoding = ''; + } else { + $encoding = $encodingHeader->getValue(); } - $encoding = $encodingHeader->getValue(); $dispositionHeader = $part->getHeader('content-disposition'); if ($dispositionHeader === null) { throw new InvalidArgumentException('missing header: "Content-Disposition"'); } - $disposition = $dispositionHeader->getValue(); + $disposition = $dispositionHeader->getValue(); - if (!preg_match('/(.+);\s*filename="([^"]+)".*$/m', $disposition, $matches)) { + /* + Content-Disposition: inline + Content-Disposition: attachment + Content-Disposition: attachment; filename="filename.jpg" + + This is not correctly implemented -> only the first string is evaluated + Content-Disposition: attachment; filename*0="filename_that_is_" + Content-Disposition: attachment; filename*1="very_long.jpg" + + */ + + if (preg_match('/(.+);\s*filename(?:\*[0-9]){0,1}="([^"]+)".*$/m', $disposition, $matches)) { + $isInline = strtolower($matches[1]) === 'inline'; + $filename = $matches[2]; + } + else if ($disposition == 'attachment') { + // Filename is given in Content-Type e.g. + /* Content-Type: application/pdf; name="Filename.pdf" + Content-Transfer-Encoding: base64 + Content-Disposition: attachment + */ + + $contenttypeHeader = $part->getHeader('content-type'); + if ($contenttypeHeader === null) { + throw new InvalidArgumentException('missing header: "Content-Type"'); + } + $contenttype = $contenttypeHeader->getValue(); + + if (preg_match('/(.+);\s*name(?:\*[0-9]){0,1}="([^"]+)".*$/m', $contenttype, $matches)) { + $isInline = strtolower($matches[1]) === 'inline'; + $filename = $matches[2]; + } else { + throw new InvalidArgumentException( + sprintf('missing filename in header value "Content-Type" = "%s"', $contenttype) + ); + } + } + else if ($disposition == 'inline') { + $isInline = true; + $filename = ""; // This is questionable + } + else if (strpos($disposition,'attachment;\n') == 0) { // No filename, check for content type message/rfc822 + + $contenttypeHeader = $part->getHeader('content-type'); + if ($contenttypeHeader === null) { + throw new InvalidArgumentException('missing header: "Content-Type"'); + } + $contenttype = $contenttypeHeader->getValue(); + + if ($contenttype == 'message/rfc822') { + $isInline = false; + $filename = 'ForwardedMessage.eml'; + } else { + throw new InvalidArgumentException( + sprintf('unexpected header value "Content-Disposition" = "%s"', $disposition) + ); + } + } + else { throw new InvalidArgumentException( - sprintf('unexpected header value "Content-Disposition" = %s', $disposition) + sprintf('unexpected header value "Content-Disposition" = "%s", not message/rfc822', $disposition) ); } - $isInline = strtolower($matches[1]) === 'inline'; - $filename = $matches[2]; // Thunderbird UTF URL-Format $UTF_pos = strpos($filename,'UTF-8\'\''); - if ($UTF_pos !== false) { - + if ($UTF_pos !== false) { $wasUTF = "JA"; - $filename = substr($filename,$UTF_pos); $filename = rawurldecode($filename); } + $cid = null; $contentIdHeader = $part->getHeader('content-id'); if ($contentIdHeader !== null) { diff --git a/classes/Components/MailClient/Data/MailMessageData.php b/classes/Components/MailClient/Data/MailMessageData.php index ef9a3cd0..f0544ce6 100644 --- a/classes/Components/MailClient/Data/MailMessageData.php +++ b/classes/Components/MailClient/Data/MailMessageData.php @@ -308,10 +308,7 @@ final class MailMessageData implements MailMessageInterface, JsonSerializable if ($date === null) { return null; } - $dateTime = DateTime::createFromFormat(DateTimeInterface::RFC2822, $date->getValue()); - if ($dateTime === false) { - $dateTime = DateTime::createFromFormat(DateTimeInterface::RFC822, $date->getValue()); - } + $dateTime = date_create($date->getValue()); if ($dateTime === false) { return null; } diff --git a/classes/Core/LegacyConfig/MultiDbArrayHydrator.php b/classes/Core/LegacyConfig/MultiDbArrayHydrator.php index 653812be..e701f6ff 100644 --- a/classes/Core/LegacyConfig/MultiDbArrayHydrator.php +++ b/classes/Core/LegacyConfig/MultiDbArrayHydrator.php @@ -48,7 +48,11 @@ final class MultiDbArrayHydrator $description = !empty($item['description']) ? $item['description'] : $defaultConfig->WFdbname; // Cronjobs nur aktivieren, wenn Einstellung vorhanden und gesetzt (Default `false`). - $cronjobsActive = (int)$item['cronjob'] === 1; + if (array_key_exists('cronjob',$item)) { + $cronjobsActive = (int)$item['cronjob'] === 1; + } else { + $cronjobsActive = false; + } if(!empty($item['dbname']) && $defaultConfig->WFdbname === $item['dbname']) { $item = []; diff --git a/classes/Modules/Ticket/Importer/TicketFormatter.php b/classes/Modules/Ticket/Importer/TicketFormatter.php index 818a0929..8709f98b 100644 --- a/classes/Modules/Ticket/Importer/TicketFormatter.php +++ b/classes/Modules/Ticket/Importer/TicketFormatter.php @@ -22,12 +22,22 @@ class TicketFormatter */ public function encodeToUtf8(string $string): string { - $encoding = mb_detect_encoding($string, 'UTF-8, ISO-8859-1, ISO-8859-15', true); - return mb_convert_encoding( + $converted = mb_convert_encoding( $string, 'UTF-8', - $encoding + 'auto' ); + + // Fallback + if ($converted === false) { + $converted = mb_convert_encoding( + $string, + 'UTF-8', + 'iso-8859-1' + ); + } + + return ($converted); } } diff --git a/classes/Modules/Ticket/Task/TicketImportHelper.php b/classes/Modules/Ticket/Task/TicketImportHelper.php index e0ce9408..6bec5cd0 100644 --- a/classes/Modules/Ticket/Task/TicketImportHelper.php +++ b/classes/Modules/Ticket/Task/TicketImportHelper.php @@ -337,7 +337,7 @@ class TicketImportHelper if (!empty($queue_id)) { $queue_label = $this->db->Select("SELECT label FROM warteschlangen WHERE id = ".$queue_id." LIMIT 1"); } - + $insertTicket = "INSERT INTO `ticket` ( `schluessel`, `zeit`, `projekt`, `quelle`, `status`, `kunde`, `mailadresse`, `prio`, `betreff`,`warteschlange`,`adresse` @@ -347,10 +347,10 @@ class TicketImportHelper '".$projectId."', '".$this->mailAccount->getEmailAddress()."', '".$status."', - '".$senderName."', - '".$senderAddress."', + '".$this->db->real_escape_string($senderName)."', + '".$this->db->real_escape_string($senderAddress)."', '".'3'."', - '".$subject."', + '".$this->db->real_escape_string($subject)."', '".$queue_label."', '".$AddressId."');"; @@ -383,14 +383,14 @@ class TicketImportHelper ) VALUES ( '".$ticketNumber."', '".date('Y-m-d H:i:s', $timestamp)."', - '".$message."', - '".$subject."', + '".$this->db->real_escape_string($message)."', + '".$this->db->real_escape_string($subject)."', '".'email'."', - '".$senderName."', - '".$senderAddress."', + '".$this->db->real_escape_string($senderName)."', + '".$this->db->real_escape_string($senderAddress)."', '".$status."', - '".$replyToName."', - '".$replyToAddress."');"; + '".$this->db->real_escape_string($replyToName)."', + '".$this->db->real_escape_string($replyToAddress)."');"; $this->logger->debug('database insert',['query' => $sql]); $this->db->Insert($sql); @@ -491,14 +491,19 @@ class TicketImportHelper } try { - $this->logger->debug('Start import', ['message' => $message->getSubject()]); + $this->logger->debug('Start import', ['message' => $message]); - $this->importMessage($message); - $insertedMailsCount++; - if ($this->mailAccount->isDeleteAfterImportEnabled()) { - $this->mailClient->deleteMessage((int)$messageNumber); + $result = $this->importMessage($message); + + if ($result === true) { + $insertedMailsCount++; + if ($this->mailAccount->isDeleteAfterImportEnabled()) { + $this->mailClient->deleteMessage((int)$messageNumber); + } else { + $this->mailClient->setFlags((int)$messageNumber, ['\\Seen']); + } } else { - $this->mailClient->setFlags((int)$messageNumber, ['\\Seen']); + $this->logger->error('Error during email import', ['']); } } catch (Throwable $e) { $this->logger->error('Error during email import', ['exception' => $e]); @@ -517,12 +522,10 @@ class TicketImportHelper /** * @param MailMessageInterface $message * - * @return void + * @return true on success */ - public function importMessage(MailMessageInterface $message): void + public function importMessage(MailMessageInterface $message): bool { - $DEBUG = 0; - // extract email data $subject = $this->formatter->encodeToUtf8($message->getSubject()); $from = $this->formatter->encodeToUtf8($message->getSender()->getEmail()); @@ -542,18 +545,33 @@ class TicketImportHelper $htmlBody = $message->getHtmlBody(); if ($htmlBody === null) { $htmlBody = ''; + } + + if ($plainTextBody == '' && $htmlBody == '') { + $simple_content = $message->getContent(); + if (empty($simple_content)) { + $this->logger->debug('Empty mail',['message' => $message]); + } else { + $plainTextBody = $simple_content; + $htmlBody = nl2br(htmlentities($simple_content)); + } } + + $this->logger->debug('Text',['plain' => $plainTextBody, 'html' => $htmlBody, 'simple_content' => $simple_content]); + $action = $this->formatter->encodeToUtf8($plainTextBody); $action_html = $this->formatter->encodeToUtf8($htmlBody); if (strlen($action_html) < strlen($action)) { $action_html = nl2br($action); } - //check if email exists in database + $this->logger->debug('Text (converted)',['plain' => $action, 'html' => $action_html]); + + // Import database emailbackup $date = $message->getDate(); if (is_null($date)) { // This should not be happening -> Todo check getDate function - $this->logger->debug('Null date',['subject' => $message->getSubject()]); - $frommd5 = md5($from . $subject); + $this->logger->debug('Null date',['subject' => $message->getSubject(), $message->getHeader('date')->getValue()]); + return(false); } else { $timestamp = $date->getTimestamp(); $frommd5 = md5($from . $subject . $timestamp); @@ -563,21 +581,21 @@ class TicketImportHelper FROM `emailbackup_mails` WHERE `checksum`='$frommd5' AND `empfang`='$empfang' + AND `ticketnachricht` != 0 AND `webmail`='" . $this->mailAccount->getId() . "'"; - $this->logger->debug('Importing message '.$from.' '.$fromname); - if ($this->db->Select($sql) == 0) { + $result = $this->db->Select($sql); + $emailbackup_mails_id = null; - $this->logger->debug('Importing message',['']); + if ($result == 0) { + + $this->logger->debug('Importing message',['message' => $message]); $attachments = $message->getAttachments(); $anhang = count($attachments) > 0 ? 1 : 0; $mailacc = $this->mailAccount->getEmailAddress(); - if (empty($mailacc) && count($message->getRecipients()) > 0) { - $mailacc = array_values($message->getRecipients())[0]->getEmail(); - } $mailaccid = $this->mailAccount->getId(); if (!$this->erpApi->isMailAdr($from)) { @@ -604,23 +622,24 @@ class TicketImportHelper '$empfang','$anhang','$frommd5' )"; - $id = null; - if ($DEBUG) { - echo $sql; - } else { - $this->db->InsertWithoutLog($sql); - $id = $this->db->GetInsertID(); - } - } - - if ($DEBUG) { - echo "ticket suchen oder anlegen\n"; - } + $this->db->InsertWithoutLog($sql); + $emailbackup_mails_id = $this->db->GetInsertID(); + } else { + $this->logger->debug('Message already imported.',['']); + return(true); + } + $this->logger->debug('Message emailbackup_mails imported.',['id' => $emailbackup_mails_id]); + // END database import emailbackup + + // Find ticket and add or create new ticket $ticketNumber = null; $ticketexists = null; if (preg_match("/Ticket #[0-9]{12}/i", $subject, $matches)) { $ticketNumber = str_replace('Ticket #', '', $matches[0]); + + $this->logger->debug('Check for number',['ticketnummer' => $ticketNumber]); + $ticketexists = $this->db->Select( "SELECT schluessel FROM ticket @@ -648,7 +667,7 @@ class TicketImportHelper $this->logger->debug('Add message to existing ticket',['ticketnummer' => $ticketNumber]); } - // Add message to new or existing ticket + // Database import ticket: Add message to new or existing ticket $ticketnachricht = $this->addTicketMessage( (string) $ticketNumber, $timestamp, @@ -661,11 +680,11 @@ class TicketImportHelper $from ); - if ($ticketnachricht > 0 && $id > 0) { + if ($ticketnachricht > 0 && $emailbackup_mails_id > 0) { $this->db->Update( "UPDATE `emailbackup_mails` SET ticketnachricht='$ticketnachricht' - WHERE id='$id' LIMIT 1" + WHERE id='$emailbackup_mails_id' LIMIT 1" ); @@ -711,56 +730,58 @@ class TicketImportHelper } } } + } else { + $this->logger->error("Message not imported!", ['Time' => $timestamp, 'Subject' => $subject, 'From' => $from]); + $this->db->Delete("DELETE FROM emailbackup_mails WHERE id = ".$emailbackup_mails_id); + return(false); } - - // Prüfen ob Ordner vorhanden ansonsten anlegen - $ordner = $this->config->WFuserdata . '/emailbackup/' . $this->config->WFdbname . "/$id"; - if (!is_dir($ordner) && $id > 0) { + // END database import ticket + + // File management folder with raw text + $ordner = $this->config->WFuserdata . '/emailbackup/' . $this->config->WFdbname . "/$emailbackup_mails_id"; + if (!is_dir($ordner) && $emailbackup_mails_id > 0) { if (!mkdir($ordner, 0777, true) && !is_dir($ordner)) { + $this->logger->error("Folder \"{folder}\" was not created", ['folder' => $ordner]); + $this->db->Delete("DELETE FROM emailbackup_mails WHERE id = ".$emailbackup_mails_id); + return(false); } $raw_full_email = $message->getRawContent(); file_put_contents($ordner . '/mail.txt', $raw_full_email); } - //speichere anhang als datei - if ($anhang == 1 && $id > 0) { + // File management attachments + if ($anhang == 1 && $emailbackup_mails_id > 0) { $ordner = $this->config->WFuserdata . '/emailbackup/' . $this->config->WFdbname; if (!is_dir($ordner)) { if (!mkdir($ordner, 0777, true) && !is_dir($ordner)) { $this->logger->error("Folder \"{folder}\" was not created", ['folder' => $ordner]); + $this->db->Delete("DELETE FROM emailbackup_mails WHERE id = ".$emailbackup_mails_id); + return(false); } } // Prüfen ob Ordner vorhanden ansonsten anlegen - $ordner = $this->config->WFuserdata . '/emailbackup/' . $this->config->WFdbname . "/$id"; + $ordner = $this->config->WFuserdata . '/emailbackup/' . $this->config->WFdbname . "/$emailbackup_mails_id"; if (!is_dir($ordner)) { - if ($DEBUG) { - echo "mkdir $ordner\n"; - } else { - if (!mkdir($ordner, 0777, true) && !is_dir($ordner)) { - $this->logger->error("Folder \"{folder}\" was not created", ['folder' => $ordner]); - } + if (!mkdir($ordner, 0777, true) && !is_dir($ordner)) { + $this->logger->error("Folder \"{folder}\" was not created", ['folder' => $ordner]); + $this->db->Delete("DELETE FROM emailbackup_mails WHERE id = ".$emailbackup_mails_id); + return(false); } } - $this->logger->debug('Add attachments',['ticketnummer' => $ticketNumber, 'nachricht' => $ticketnachricht, 'count' => count($attachments)]); - + $this->logger->debug('Add '.count($attachments).' attachments',['']); foreach ($attachments as $attachment) { if ($attachment->getFileName() !== '') { - if ($DEBUG) { - } else { - $handle = fopen($ordner . '/' . $attachment->getFileName(), 'wb'); - if ($handle) { - fwrite($handle, $attachment->getContent()); - fclose($handle); - } + $handle = fopen($ordner . '/' . $attachment->getFileName(), 'wb'); + if ($handle) { + fwrite($handle, $attachment->getContent()); + fclose($handle); } //Schreibe Anhänge in Datei-Tabelle $datei = $ordner . '/' . $attachment->getFileName(); $dateiname = $attachment->getFileName(); - $this->logger->debug("Attachment", ['filename' => $dateiname]); - if (stripos(strtoupper($dateiname), '=?UTF-8') !== false) { $dateiname = $this->formatter->encodeToUtf8($dateiname); $dateiname = htmlspecialchars_decode($dateiname); @@ -774,42 +795,31 @@ class TicketImportHelper $dateiname = htmlspecialchars_decode($dateiname); } - $this->logger->debug("Attachment cleaned", ['filename' => $dateiname]); + $tmpid = $this->erpApi->CreateDatei( + $dateiname, + $dateiname, + '', + '', + $datei, + 'Support Mail', + true, + $this->config->WFuserdata . '/dms/' . $this->config->WFdbname + ); - if ($DEBUG) { - echo "CreateDatei($dateiname,{$dateiname},\"\",\"\",\"datei\",\"Support Mail\",true," - . $this->config->WFuserdata . "/dms/" . $this->config->WFdbname . ")\n"; - } else { - $tmpid = $this->erpApi->CreateDatei( - $dateiname, - $dateiname, - '', - '', - $datei, - 'Support Mail', - true, - $this->config->WFuserdata . '/dms/' . $this->config->WFdbname - ); - } + $this->logger->debug('Add attachment',['filename' => $dateiname, 'ticketnummer' => $ticketNumber,'id' => $tmpid, 'nachricht' => $ticketnachricht]); - if ($DEBUG) { - echo "AddDateiStichwort $tmpid,'Anhang','Ticket',$ticketnachricht,true)\n"; - } else { - - $this->logger->debug('Add attachment',['ticketnummer' => $ticketNumber,'id' => $tmpid, 'nachricht' => $ticketnachricht]); - - $this->erpApi->AddDateiStichwort( - $tmpid, - 'Anhang', - 'Ticket', - $ticketnachricht, - true - ); - } + $this->erpApi->AddDateiStichwort( + $tmpid, + 'Anhang', + 'Ticket', + $ticketnachricht, + true + ); } } - } + } // END File management + // Autoresponder if ( $this->mailAccount->isAutoresponseEnabled() && $this->mailAccount->getAutoresponseText() !== '' @@ -843,5 +853,7 @@ class TicketImportHelper $text ); } + + return(true); } } diff --git a/cronjobs/githash.php b/cronjobs/githash.php deleted file mode 100755 index da8adf31..00000000 --- a/cronjobs/githash.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/database/struktur.sql b/database/struktur.sql index c7baf274..84b51edb 100755 --- a/database/struktur.sql +++ b/database/struktur.sql @@ -9571,7 +9571,7 @@ CREATE TABLE IF NOT EXISTS `produktion` ( `angebot` varchar(255) NOT NULL, `freitext` text NOT NULL, `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL, + `status` varchar(64) NOT NULL default 'angelegt', `adresse` int(11) NOT NULL, `name` varchar(255) NOT NULL, `abteilung` varchar(255) NOT NULL, @@ -16728,7 +16728,9 @@ INSERT INTO `firmendaten_werte` (`id`, `name`, `typ`, `typ1`, `typ2`, `wert`, `d (385, 'cleaner_shopimport', 'tinyint', '1', '', '1', '1', 0, 0), (386, 'cleaner_shopimport_tage', 'int', '11', '', '90', '90', 0, 0), (387, 'cleaner_adapterbox', 'tinyint', '1', '', '1', '1', 0, 0), -(388, 'cleaner_adapterbox_tage', 'int', '11', '', '90', '90', 0, 0); +(388, 'cleaner_adapterbox_tage', 'int', '11', '', '90', '90', 0, 0), +(389, 'bcc3', 'varchar', '128', '', '', '', 0, 0) +; INSERT INTO `geschaeftsbrief_vorlagen` (`id`, `sprache`, `betreff`, `text`, `subjekt`, `projekt`, `firma`) VALUES (1, 'deutsch', 'Bestellung {BELEGNR} von {FIRMA}', '{ANSCHREIBEN},

anbei übersenden wir Ihnen unsere Bestellung zu. Bitte senden Sie uns als Bestätigung für den Empfang eine Auftragsbestätigung zu.', 'Bestellung', 1, 1), @@ -16798,8 +16800,7 @@ INSERT INTO `prozessstarter` (`id`, `bezeichnung`, `bedingung`, `art`, `startzei (6, 'Überzahlte Rechnungen', '', 'uhrzeit', '2015-10-25 23:00:00', '0000-00-00 00:00:00', '', 'cronjob', 'ueberzahlterechnungen', 0, 0, 0, 1, ''), (7, 'Umsatzstatistik', '', 'uhrzeit', '2015-10-25 23:30:00', '0000-00-00 00:00:00', '', 'cronjob', 'umsatzstatistik', 0, 0, 0, 1, ''), (8, 'Paketmarken Tracking Download', '', 'uhrzeit', '2015-10-25 14:00:00', '0000-00-00 00:00:00', '', 'cronjob', 'wgettracking', 0, 0, 0, 1, ''), -(9, 'Chat-Benachrichtigung', '', 'periodisch', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '60', 'cronjob', 'chat', 0, 0, 0, 1, ''), -(10, 'Git Revision einlesen', '', 'periodisch', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '120', 'cronjob', 'githash', 1, 0, 0, 1, ''); +(9, 'Chat-Benachrichtigung', '', 'periodisch', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '60', 'cronjob', 'chat', 0, 0, 0, 1, ''); INSERT INTO `user` (`id`, `username`, `password`, `repassword`, `description`, `settings`, `parentuser`, `activ`, `type`, `adresse`, `fehllogins`, `standarddrucker`, `firma`, `logdatei`, `startseite`, `hwtoken`, `hwkey`, `hwcounter`, `motppin`, `motpsecret`, `passwordmd5`, `externlogin`, `projekt_bevorzugen`, `email_bevorzugen`, `projekt`, `rfidtag`, `vorlage`, `kalender_passwort`, `kalender_ausblenden`, `kalender_aktiv`, `gpsstechuhr`, `standardetikett`, `standardfax`, `internebezeichnung`, `hwdatablock`, `standardversanddrucker`, `passwordsha512`, `salt`) VALUES (1, 'admin', 'qnvEQ1sFWNdIg', 0, 'Administrator', 'firstinstall', 0, 1, 'admin', 1, 0, 0, 1, '2016-08-05 08:34:59', NULL, NULL, NULL, NULL, NULL, NULL, '21232f297a57a5a743894a0e4a801fc3', 1, 0, 1, 0, '', NULL, NULL, 0, NULL, NULL, 0, 0, NULL, NULL, 0, '', ''); diff --git a/githash.txt b/githash.txt deleted file mode 100644 index a64bb6fc..00000000 --- a/githash.txt +++ /dev/null @@ -1 +0,0 @@ -f64f6f64cbe6499f4060a487603626a6d712a484 \ No newline at end of file diff --git a/languages/german/tooltip.php b/languages/german/tooltip.php index 277cc9f9..6f54377f 100644 --- a/languages/german/tooltip.php +++ b/languages/german/tooltip.php @@ -1083,9 +1083,9 @@ $tooltip['produktionszentrum']['abschluss']['#auftragmengenanpassen']="Die Menge $tooltip['produktion']['abschluss']['#mengeerfolgreich'] = 'Höhere Mengen als die geplante Menge können nur mit der deaktivierten (kein Haken setzen) Systemeinstellung "Produktionskorrektur nicht verwenden" verbucht werden. '; $tooltip['produktion']['edit']['#mengeerfolgreich'] = $tooltip['produktion']['abschluss']['#mengeerfolgreich']; -$tooltip['produktion']['create']['#standardlager'] = "Lager, aus dem die Artikel für die Produktion ausgelagert werden sollen.Hier können alle Lager ausgewählt werden, in denen sich mindestens ein Lagerplatz befindet, aus dem Produktionen ausgelagert werden dürfen (Einstellung auf Regalebene unter Lager => Lagerverwaltung)."; +$tooltip['produktion']['create']['#standardlager'] = "Lager, aus dem die Artikel für die Produktion ausgelagert werden sollen. Hier können alle Lager ausgewählt werden, in denen sich mindestens ein Lagerplatz befindet, aus dem Produktionen ausgelagert werden dürfen (Einstellung auf Regalebene unter Lager => Lagerverwaltung)."; $tooltip['produktion']['edit']['#standardlager'] = $tooltip['produktion']['create']['#standardlager']; - +$tooltip['produktion']['edit']['#ziellager'] = "Wenn kein Ziellager angegenen ist, wird in das Standard-Lager des Artikels gebucht, wenn es das nicht gibt, in das Materiallager der Produktion."; /* PROJEKT */ @@ -1460,4 +1460,4 @@ $tooltip['coppersurcharge']['list']['surcharge-invoice'] = '(Pflichtfeld) Welche $tooltip['coppersurcharge']['list']['surcharge-delivery-costs'] = '(Pflichtfeld) Bezugskosten sind eine Grundlage der Berechnungsformel (in %): Kupferzuschlag EUR/km = (Kupfergewicht (kg/km) * (DEL + Bezugskosten)) - Kupferbasis / 100. Der Standard sind derzeit 1%'; $tooltip['coppersurcharge']['list']['surcharge-copper-base-standard'] = '(Pflichtfeld) Die Kupferbasis ist eine Grundlage der Berechnungsformel: Kupferzuschlag EUR/km = (Kupfergewicht (kg/km) * (DEL + Bezugskosten)) - Kupferbasis / 100. Der Standard sind derzeit 150 EUR pro 100kg'; $tooltip['coppersurcharge']['list']['surcharge-copper-base'] = 'Falls ein Artikel eine abweichende Kupferbasis haben soll kann diese in einem Freifeld gepflegt werden. Dieses kann hier ausgewählt werden.'; -$tooltip['coppersurcharge']['list']['surcharge-copper-number'] = '(Pflichtfeld) In diesem Freifeld kann die artikelspezifische Kupferzahl (km/kg) gepflegt werden. Sie ist Grundlage der Berechnung: Kupferzuschlag EUR/km = (Kupfergewicht (kg/km) * (DEL + Bezugskosten)) - Kupferbasis / 100.'; \ No newline at end of file +$tooltip['coppersurcharge']['list']['surcharge-copper-number'] = '(Pflichtfeld) In diesem Freifeld kann die artikelspezifische Kupferzahl (km/kg) gepflegt werden. Sie ist Grundlage der Berechnung: Kupferzuschlag EUR/km = (Kupfergewicht (kg/km) * (DEL + Bezugskosten)) - Kupferbasis / 100.'; diff --git a/phpwf/plugins/class.acl.php b/phpwf/plugins/class.acl.php index 1183c87a..ef61afc7 100644 --- a/phpwf/plugins/class.acl.php +++ b/phpwf/plugins/class.acl.php @@ -197,7 +197,7 @@ class Acl break; case 'dateien': - $sql = "SELECT objekt FROM datei_stichwoerter WHERE datei = %s"; + $sql = "SELECT objekt FROM datei_stichwoerter WHERE datei = %s LIMIT 1"; $dateiModul = strtolower($this->app->DB->Select(sprintf($sql,$id))); //TODO datei_stichwoerter.objekt ist nicht zuverlässig für alle Datentypen. Deswegen nur zur Absicherung der bekannten Fälle #604706 @@ -570,10 +570,23 @@ class Acl public function Login() { - $this->app->Tpl->Set('LOGINWARNING', 'display:none;visibility:hidden;'); - if($this->IsInLoginLockMode() === true){ - $this->app->Tpl->Set('LOGINWARNING', ''); - return; + + $this->refresh_githash(); + include dirname(__DIR__).'/../version.php'; + $this->app->Tpl->Set('XENTRALVERSION',"V.".$version_revision); + + $this->app->Tpl->Set('LOGINWARNING_VISIBLE', 'hidden'); + + $result = $this->CheckHtaccess(); + if ($result !== true) { + $this->app->Tpl->Set('LOGINWARNING_VISIBLE', ''); + $this->app->Tpl->Set('LOGINWARNING_TEXT', "Achtung: Zugriffskonfiguration (htaccess) fehlerhaft. Bitte wenden Sie sich an Ihren an Ihren Administrator.
($result)"); + } + + if($this->IsInLoginLockMode() === true) + { + $this->app->Tpl->Set('LOGINWARNING_VISIBLE', ''); + $this->app->Tpl->Set('LOGINWARNING_TEXT', 'Achtung: Es werden gerade Wartungsarbeiten in Ihrem System (z.B. Update oder Backup) durch Ihre IT-Abteilung durchgeführt. Das System sollte in wenigen Minuten wieder erreichbar sein. Für Rückfragen wenden Sie sich bitte an Ihren Administrator.'); } $multidbs = $this->app->getDbs(); @@ -1206,4 +1219,110 @@ class Acl } + // HTACCESS SECURITY + // Check for correct .htaccess settings + // true if ok, else error text + protected function CheckHtaccess() { + + $nominal = array(' +# Generated file from class.acl.php +# For detection of htaccess functionality +SetEnv OPENXE_HTACCESS on +# Disable directory browsing +Options -Indexes +# Set default page to index.php +DirectoryIndex "index.php" +# Deny general access +Order deny,allow + + Order Allow,Deny + Deny from all + +# Allow index.php + + Order Allow,Deny + Allow from all + +# end +', +' +# Generated file from class.acl.php +# Disable directory browsing +Options -Indexes +# Deny access to all *.php +Order deny,allow +Allow from all + + Order Allow,Deny + Allow from all + +# Allow access to index.php + + Order Allow,Deny + Allow from all + +# Allow access to setup.php + + Order Allow,Deny + Allow from all + +# Allow access to inline PDF viewer + + Order Allow,Deny + Allow from all + +# end +'); + + $script_file_name = $_SERVER['SCRIPT_FILENAME']; + $htaccess_path = array( + dirname(dirname($script_file_name))."/.htaccess", // root + dirname($script_file_name)."/.htaccess"); // www + + for ($count = 0;$count < 2;$count++) { + $htaccess = file_get_contents($htaccess_path[$count]); + + if ($htaccess === false) { + $missing = true; + } else { + $htaccess = trim($htaccess); + } + $htaccess_nominal = trim($nominal[$count]); + $result = strcmp($htaccess,$htaccess_nominal); + + if ($htaccess === false) { + return($htaccess_path[$count]." nicht vorhanden."); + } + + if ($result !== 0) { + return($htaccess_path[$count]." fehlerhaft."); + } + } + + if (!isset($_SERVER['OPENXE_HTACCESS'])) { + return("htaccess nicht aktiv."); + } + + return(true); + // HTACCESS SECURITY END + } + + function refresh_githash() { + $path = '../.git/'; + if (!is_dir($path)) { + return; + } + $head = trim(file_get_contents($path . 'HEAD')); + $refs = trim(substr($head,0,4)); + if ($refs == 'ref:') { + $ref = substr($head,5); + $hash = trim(file_get_contents($path . $ref)); + } else { + $hash = $head; + } + if (!empty($hash)) { + file_put_contents("../githash.txt", $hash); + } + } + } diff --git a/phpwf/plugins/class.databaseupgrade.php b/phpwf/plugins/class.databaseupgrade.php deleted file mode 100644 index 4c965b23..00000000 --- a/phpwf/plugins/class.databaseupgrade.php +++ /dev/null @@ -1,726 +0,0 @@ - -app = $app; - } - - public function emptyTableCache(){ - $this->CheckColumnTableCache = []; - $this->allTables = []; - $this->indexe = []; - } - - /** - * @var bool $force - * - * @return array - */ - public function getAllTables($force = false) - { - if($force || empty($this->allTables)) { - $this->allTables = $this->app->DB->SelectFirstCols('SHOW TABLES'); - } - - return $this->allTables; - } - - /** - * @param string $table - * @param string $pk - */ - public function createTable($table, $pk = 'id') - { - $sql = "CREATE TABLE `$table` (`".$pk."` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (`".$pk."`)) ENGINE = InnoDB DEFAULT CHARSET=utf8"; - $this->app->DB->Query($sql); - $this->addPrimary($table, $pk); - } - - /** - * @param string $table - * @param string $pk - */ - public function addPrimary($table, $pk = 'id') - { - $this->CheckAlterTable( - "ALTER TABLE `$table` - ADD PRIMARY KEY (`".$pk."`)", - true - ); - $this->CheckAlterTable( - "ALTER TABLE `$table` - MODIFY `".$pk."` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=1", - true - ); - } - - /** - * @param string $table - * @param bool $force - * - * @return array - */ - public function getIndexeCached($table, $force = false) - { - if($force || !isset($this->indexe[$table])){ - $this->indexe[$table] = $this->app->DB->SelectArr(sprintf('SHOW INDEX FROM `%s`', $table)); - if($this->indexe[$table] === null) { - $this->indexe[$table] = []; - } - } - - return $this->indexe[$table]; - } - - /** - * @param string $table - */ - public function clearIndexCached($table) - { - if(!isset($this->indexe[$table])) { - return; - } - unset($this->indexe[$table]); - } - - /** - * @param string $table - * @param string $pk - */ - public function hasPrimaryKey($table, $pk = 'id') - { - $indexe = $this->getIndexeCached($table); - if(empty($indexe)) { - return false; - } - foreach($indexe as $index) { - if($index['Column_name'] === $pk - && $index['Key_name'] === 'PRIMARY' - && (int)$index['Non_unique'] === 0 - ) { - return true; - } - } - - return false; - } - - /** - * @param string $table - * @param string $pk - * - * @return void - */ - function CheckTable($table, $pk = 'id') - { - if($pk === 'id') { - $tables = $this->getAllTables(); - if(!empty($tables)){ - if(!in_array($table, $tables)){ - $this->createTable($table, $pk); - return; - } - if(!$this->hasPrimaryKey($table, $pk)) { - $this->addPrimary($table, $pk); - } - return; - } - } - $found = false; - $tables = $this->getAllTables(true); - if($tables) { - $found = in_array($table, $tables); - } - else{ - $check = $this->app->DB->Select("SELECT $pk FROM `$table` LIMIT 1"); - if($check) { - $found = true; - } - } - if($found==false) - { - $sql = "CREATE TABLE `$table` (`".$pk."` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (`".$pk."`)) ENGINE = InnoDB DEFAULT CHARSET=utf8"; - $this->app->DB->Update($sql); - $this->CheckAlterTable("ALTER TABLE `$table` - ADD PRIMARY KEY (`".$pk."`)"); - $this->CheckAlterTable("ALTER TABLE `$table` - MODIFY `".$pk."` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=1"); - } - if($pk !== 'id') { - $this->CheckColumn('created_at','timestamp',$table,"DEFAULT CURRENT_TIMESTAMP NOT NULL"); - } - } - - /** - * @param string $column - * @param string $type - * @param string $table - * @param string $default - * - * @return void - */ - function UpdateColumn($column,$type,$table,$default="NOT NULL") - { - $fields = $this->app->DB->SelectArr("show columns from `".$table."`"); - if($fields) - { - foreach($fields as $val) - { - $field_array[] = $val['Field']; - } - } - if (in_array($column, $field_array)) - { - $this->app->DB->Query('ALTER TABLE `'.$table.'` CHANGE `'.$column.'` `'.$column.'` '.$type.' '.$default.';'); - } - } - - /** - * @param string $column - * @param string $table - * - * @return void - */ - public function DeleteColumn($column,$table) - { - $this->app->DB->Query('ALTER TABLE `'.$table.'` DROP `'.$column.'`;'); - } - - /** - * @param string $column - * @param string $type - * @param string $table - * @param string $default - * - * @return void - */ - public function CheckColumn($column,$type,$table,$default="") - { - if($table === 'firmendaten') - { - if($this->app->DB->Select("SELECT `id` FROM `firmendaten_werte` WHERE `name` = '$column' LIMIT 1"))return; - } - if(!isset($this->CheckColumnTableCache[$table])) - { - $tmp=$this->app->DB->SelectArr("show columns from `".$table."`"); - if($tmp) - { - foreach($tmp as $val) - { - $this->CheckColumnTableCache[$table][] = $val['Field']; - //$types[$val['Field']] = strtolower($val['Type']); - } - } - } - if (isset($this->CheckColumnTableCache[$table]) && !in_array($column, $this->CheckColumnTableCache[$table])) - { - if($this->check_column_missing_run) - { - //$result = mysqli_query($this->app->DB->connection,'ALTER TABLE `'.$table.'` ADD `'.$column.'` '.$type.' '.$default.';'); - $this->check_column_missing[$table][]=$column; - } else { - $result = $this->app->DB->Query('ALTER TABLE `'.$table.'` ADD `'.$column.'` '.$type.' '.$default.';'); - if($table === 'firmendaten' && $this->app->DB->error()) - { - if((method_exists($this->app->DB, 'errno2') && $this->app->DB->errno() == '1118') - || strpos($this->app->DB->error(),'Row size too large') !== false - ) - { - $this->ChangeFirmendatenToMyIsam(); - $this->app->DB->Query('ALTER TABLE `'.$table.'` ADD `'.$column.'` '.$type.' '.$default.';'); - } - } - } - } - } - - /** - * @param array $indexe - * - * @return array - */ - protected function getGroupedIndexe($indexe) - { - if(empty($indexe)) { - return $indexe; - } - $return = []; - foreach($indexe as $index) { - $keyName = $index['Key_name']; - $isUnique = $index['Non_unique'] == '0'; - $seq = $index['Seq_in_index']; - $columnName = $index['Column_name']; - $return[$isUnique?'unique':'index'][$keyName][(int)$seq - 1] = $columnName; - } - - return $return; - } - - /** - * @param array $indexe - * - * @return array - */ - protected function getDoubleIndexeFromGroupedIndexe($indexe) - { - if(empty($indexe)) { - return []; - } - - $ret = []; - foreach($indexe as $type => $indexArrs) { - $columnStrings = []; - foreach($indexArrs as $indexKey => $columns) { - $columnString = implode('|', $columns); - if(in_array($columnString, $columnStrings)) { - $ret[$type][] = $indexKey; - continue; - } - $columnStrings[] = $columnString; - } - } - - return $ret; - } - - /** - * @param string $table - * @param array $indexe - * @param bool $noCache - * - * @return array|null - */ - public function CheckDoubleIndex($table, $indexe, $noCache = false) - { - $query = $noCache?null:$this->CheckAlterTable("SHOW INDEX FROM `$table`"); - if(!$query) { - $indexeGrouped = $this->getGroupedIndexe($indexe); - $doubleIndexe = $this->getDoubleIndexeFromGroupedIndexe($indexeGrouped); - if(!empty($doubleIndexe)) { - $indexe = $this->getIndexeCached($table, true); - $indexeGrouped = $this->getGroupedIndexe($indexe); - $doubleIndexe = $this->getDoubleIndexeFromGroupedIndexe($indexeGrouped); - if(empty($doubleIndexe)) { - return $indexe; - } - - foreach($doubleIndexe as $type => $doubleIndex) { - foreach($doubleIndex as $indexName) { - $this->app->DB->Query("ALTER TABLE `".$table."` DROP INDEX `".$indexName."`"); - } - } - } - elseif($noCache) { - return $indexe; - } - $this->CheckAlterTable("SHOW INDEX FROM `$table`", true); - - return $this->getIndexeCached($table, true); - } - if(empty($indexe) || count($indexe) == 1){ - return $indexe; - } - $uniquearr = array(); - $indexarr = array(); - foreach($indexe as $index) - { - if($index['Key_name'] !== 'PRIMARY' && !empty($index['Column_name'])) - { - if($index['Non_unique']) - { - $indexarr[$index['Key_name']][] = $index['Column_name']; - }else{ - $uniquearr[$index['Key_name']][] = $index['Column_name']; - } - } - } - $cindex = count($indexarr); - $cuniqe = count($uniquearr); - $changed = false; - if($cindex > 1) - { - $check = array(); - foreach($indexarr as $key => $value) - { - if(empty($value)) - { - continue; - } - if(count($value) > 1){ - sort($value); - } - $vstr = implode(',', $value); - if(in_array($vstr, $check)) - { - $this->app->DB->Query("DROP INDEX `".$key."` ON `".$table."`"); - $changed = true; - }else{ - $check[] = $vstr; - } - } - } - if($cuniqe > 1) - { - $check = array(); - foreach($uniquearr as $key => $value) - { - if(empty($value)) - { - continue; - } - if(count($value) > 1){ - sort($value); - } - $vstr = implode(',', $value); - if(in_array($vstr, $check)) - { - $this->app->DB->Query("DROP UNIQUE `".$key."` ON `".$table."`"); - $changed = true; - }else{ - $check[] = $vstr; - } - } - } - if($changed) { - return $this->getIndexeCached($table, true); - } - return $indexe; - } - - /** - * @param string $table - * @param string|array $column - * - * @return bool - */ - public function CheckFulltextIndex($table,$column) - { - if(empty($table) || empty($column)) - { - return false; - } - if(!is_array($column)) - { - $column = [$column]; - } - $columnmasked = []; - foreach($column as $keyColumn => $valueColumn) - { - if(!empty($valueColumn)) - { - $columnmasked[] = "`$valueColumn`"; - }else{ - unset($column[$keyColumn]); - } - } - if(empty($column)) - { - return false; - } - $columnsFound = []; - $indexe = $this->getIndexeCached($table, true); - $indexeFound = []; - if(!empty($indexe)) - { - foreach($indexe as $index) - { - if($index['Index_type'] === 'FULLTEXT') - { - $indexeFound[] = $index['Column_name']; - if(!in_array($index['Column_name'], $columnsFound)) - { - $columnsFound[] = $index['Column_name']; - } - } - } - $cindexeFound = count($indexeFound); - $column = count($column); - if(($column === $cindexeFound) && (count($columnsFound) === $column)) - { - return true; - } - if($cindexeFound > 0) - { - return false; - } - - } - $this->app->DB->Query( - "ALTER TABLE `$table` - ADD FULLTEXT INDEX `FullText` - (".implode(',',$columnmasked).");" - ); - $error = $this->app->DB->error(); - - return empty($error); - } - - /** - * @param string $table - * @param string $column - * @param bool $unique - * - * @return void - */ - function CheckIndex($table, $column, $unique = false) - { - $indexex = null; - $indexexother = null; - $indexe = $this->getIndexeCached($table); - if($indexe) - { - $indexe = $this->CheckDoubleIndex($table, $indexe, true); - foreach($indexe as $index) - { - if(is_array($column) && $index['Key_name'] !== 'PRIMARY') - { - if($unique && !$index['Non_unique']) - { - if(in_array($index['Column_name'], $column)) - { - $indexex[$index['Key_name']][$index['Column_name']] = true; - }else{ - $indexexother[$index['Key_name']][$index['Column_name']] = true; - } - } - elseif(!$unique){ - if(in_array($index['Column_name'], $column)) { - $indexex[$index['Key_name']][$index['Column_name']] = true; - } - } - } - elseif(!is_array($column)){ - if($index['Column_name'] == $column) - { - return; - } - } - } - if($this->check_column_missing_run) - { - $this->check_index_missing[$table][] = $column; - } - if(!$unique) - { - if(is_array($column)) - { - if($indexex) - { - foreach($indexex as $k => $v) { - if(count($v) === 1 && count($column) > 1) { - $this->app->DB->Query("DROP INDEX `".$k."` ON `".$table."`"); - $this->clearIndexCached($table); - unset($indexex[$k]); - } - } - foreach($indexex as $k => $v) - { - if(count($v) == count($column)){ - return; - } - } - foreach($indexex as $k => $v) - { - if(!isset($indexexother[$k])) - { - $this->app->DB->Query("DROP INDEX `".$k."` ON `".$table."`"); - $cols = null; - foreach($column as $c) { - $cols[] = "`$c`"; - } - $this->CheckAlterTable("ALTER TABLE `$table` ADD INDEX(".implode(', ',$cols)."); ",true); - $this->clearIndexCached($table); - return; - } - } - } - $cols = null; - foreach($column as $c) { - $cols[] = "`$c`"; - } - $this->CheckAlterTable("ALTER TABLE `$table` ADD INDEX(".implode(', ',$cols)."); ", true); - $this->clearIndexCached($table); - } - else{ - $this->CheckAlterTable("ALTER TABLE `$table` ADD INDEX(`$column`); ", true); - $this->clearIndexCached($table); - } - } - else{ - if(is_array($column)) - { - if($indexex) - { - foreach($indexex as $k => $v) - { - if(count($v) == count($column)) - { - return; - } - } - foreach($indexex as $k => $v) - { - if(!isset($indexexother[$k])) - { - $this->app->DB->Query("DROP INDEX `".$k."` ON `".$table."`"); - $cols = null; - foreach($column as $c) { - $cols[] = "`$c`"; - } - $this->CheckAlterTable("ALTER TABLE `$table` ADD UNIQUE(".implode(', ',$cols)."); ", true); - $this->clearIndexCached($table); - return; - } - } - } - $cols = null; - foreach($column as $c) { - $cols[] = "`$c`"; - } - $this->CheckAlterTable("ALTER TABLE `$table` ADD UNIQUE(".implode(', ',$cols)."); ", true); - $this->clearIndexCached($table); - }else{ - $this->CheckAlterTable("ALTER TABLE `$table` ADD UNIQUE(`$column`); ", true); - $this->clearIndexCached($table); - } - } - } - elseif(!is_array($column)) - { - if(!$unique) - { - $this->CheckAlterTable("ALTER TABLE `$table` ADD INDEX(`$column`); "); - }else{ - $this->CheckAlterTable("ALTER TABLE `$table` ADD UNIQUE(`$column`); "); - } - $this->clearIndexCached($table); - } - elseif(is_array($column)) - { - $cols = null; - foreach($column as $c) { - $cols[] = "`$c`"; - } - $this->CheckAlterTable("ALTER TABLE `$table` ADD UNIQUE(".implode(', ',$cols)."); "); - $this->clearIndexCached($table); - } - } - - /** - * @param string $sql - * @param bool $force - * - * @return mysqli_result|bool - */ - function CheckAlterTable($sql, $force = false) - { - $sqlmd5 = md5($sql); - $check = $this->app->DB->Select("SELECT id FROM checkaltertable WHERE checksum='$sqlmd5' LIMIT 1"); - if($check > 0 && !$force) return; - $query = $this->app->DB->Query($sql); - if($query && empty($check) && !$this->app->DB->error()){ - $this->app->DB->Insert("INSERT INTO checkaltertable (id,checksum) VALUES ('','$sqlmd5')"); - } - return $query; - } - - /** - * @return void - */ - public function ChangeFirmendatenToMyIsam() - { - $this->app->DB->Query("ALTER TABLE firmendaten ENGINE = MyISAM;"); - } - - /** - * @param string $table - * - * @return array - */ - public function getSortedIndexColumnsByIndexName($table): array - { - $indexesByName = []; - $indexes = $this->app->DB->SelectArr(sprintf('SHOW INDEX FROM `%s`', $table)); - if(empty($indexes)) { - return $indexesByName; - } - foreach($indexes as $index) { - $indexesByName[$index['Key_name']][] = $index['Column_name']; - } - foreach($indexesByName as $indexName => $columns) { - $columns = array_unique($columns); - sort($columns); - $indexesByName[$indexName] = $columns; - } - - return $indexesByName; - } - - /** - * @deprecated will be removed in 21.4 - * - * @param string $table - * @param array $columns - */ - public function dropIndex($table, $columns): void - { - if(empty($table) || empty($columns)) { - return; - } - $columns = array_unique($columns); - sort($columns); - $countColumns = count($columns); - $indexes = $this->getSortedIndexColumnsByIndexName($table); - if(empty($indexes)) { - return; - } - foreach($indexes as $indexName => $indexColumns) { - if(count($indexColumns) !== $countColumns) { - continue; - } - if(count(array_intersect($indexColumns, $columns)) === $countColumns) { - $this->app->DB->Query(sprintf('ALTER TABLE `%s` DROP INDEX `%s`', $table, $indexName)); - } - } - } -} diff --git a/phpwf/plugins/class.secure.php b/phpwf/plugins/class.secure.php index 3c252cfa..1da04a77 100644 --- a/phpwf/plugins/class.secure.php +++ b/phpwf/plugins/class.secure.php @@ -1,340 +1,344 @@ -app = $app; - // clear global variables, that everybody have to go over secure layer - $this->GET = $_GET; - if(isset($this->GET['msgs']) && isset($this->app->Location)) { - $this->GET['msg'] = $this->app->Location->getMessage($this->GET['msgs']); - } - // $_GET=""; - $this->POST = $_POST; - // $_POST=""; - if(!isset($this->app->stringcleaner) && file_exists(__DIR__. '/class.stringcleaner.php')) { - if(!class_exists('StringCleaner')) { - require_once __DIR__ . '/class.stringcleaner.php'; - } - $this->app->stringcleaner = new StringCleaner($this->app); - } - - $this->AddRule('notempty','reg','.'); // at least one sign - $this->AddRule('alpha','reg','[a-zA-Z]'); - $this->AddRule('digit','reg','[0-9]'); - $this->AddRule('space','reg','[ ]'); - $this->AddRule('specialchars','reg','[_-]'); - $this->AddRule('email','reg','^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$'); - $this->AddRule('datum','reg','([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})'); - - $this->AddRule('username','glue','alpha+digit'); - $this->AddRule('password','glue','alpha+digit+specialchars'); - } - - /** - * @param string $name - * @param null $rule - * @param string $maxlength - * @param string $sqlcheckoff - * - * @return array|mixed|string - */ - public function GetGET($name,$rule=null,$maxlength='',$sqlcheckoff='') - { - if($name === 'msg' && isset($this->app->erp) && method_exists($this, 'xss_clean')) { - $ret = $this->Syntax(isset($this->GET[$name])?$this->GET[$name]:'','',$maxlength,$sqlcheckoff); - $ret = $this->app->erp->base64_url_decode($ret); - if(strpos($ret,'"button"') === false){ - $ret = $this->xss_clean($ret); - } - - return $this->app->erp->base64_url_encode($ret); - } - if($rule === null) { - $rule = $this->NameToRule($name); - } - return $this->Syntax(isset($this->GET[$name])?$this->GET[$name]:'',$rule,$maxlength,$sqlcheckoff); - } - - function NameToRule($name) - { - switch($name) - { - case 'id': - return 'doppelid'; - break; - case 'sid': - return 'alphadigits'; - break; - case 'module': - case 'smodule': - case 'action': - case 'saction': - return 'module'; - break; - case 'cmd': - return 'moduleminus'; - break; - } - return 'nothtml'; - } - - public function GetPOST($name,$rule=null,$maxlength="",$sqlcheckoff="") - { - if($rule === null) { - $rule = $this->NameToRule($name); - if(isset($this->POST['ishtml_cke_'.$name]) && $this->POST['ishtml_cke_'.$name]) { - $rule = 'nojs'; - } - } - - return $this->Syntax(isset($this->POST[$name])?$this->POST[$name]:'',$rule,$maxlength,$sqlcheckoff); - } - - public function GetPOSTForForms($name,$rule="",$maxlength="",$sqlcheckoff="") - { - return $this->SyntaxForForms($this->POST[$name],$rule,$maxlength,$sqlcheckoff); - } - - public function CleanString($string, $rule='nohtml',$sqlcheckoff='') - { - return $this->Syntax($string, $rule, '', $sqlcheckoff); - } - - public function xss_clean($data) - { - return $this->app->stringcleaner->xss_clean($data); - } - - public function GetPOSTArray() - { - if(!empty($this->POST) && count($this->POST)>0) - { - foreach($this->POST as $key=>$value) - { - $key = $this->GetPOST($key,"alpha+digit+specialchars",20); - $ret[$key]=$this->GetPOST($value); - } - } - if(!empty($ret)) - { - return $ret; - } - - return null; - } - - public function GetGETArray() - { - if(!empty($this->GET) && count($this->GET)>0) - { - foreach($this->GET as $key=>$value) - { - $key = $this->GetGET($key,"alpha+digit+specialchars",20); - $ret[$key]=$this->GetGET($value); - } - } - if(!empty($ret)) - { - return $ret; - } - - return null; - } - - function stripallslashes($string) { - - while(strstr($string,'\\')) { - $string = stripslashes($string); - } - return $string; - } - - public function smartstripslashes($str) { - $cd1 = substr_count($str, "\""); - $cd2 = substr_count($str, "\\\""); - $cs1 = substr_count($str, "'"); - $cs2 = substr_count($str, "\\'"); - $tmp = strtr($str, array("\\\"" => "", "\\'" => "")); - $cb1 = substr_count($tmp, "\\"); - $cb2 = substr_count($tmp, "\\\\"); - if ($cd1 == $cd2 && $cs1 == $cs2 && $cb1 == 2 * $cb2) { - return strtr($str, array("\\\"" => "\"", "\\'" => "'", "\\\\" => "\\")); - } - return $str; - } - - public function SyntaxForForms($value,$rule,$maxlength="",$sqlcheckoff="") - { - return $value;//mysqli_real_escape_string($this->app->DB->connection,$value);//mysqli_real_escape_string($value); - } - - // check actual value with given rule - public function Syntax($value,$rule,$maxlength='',$sqlcheckoff='') - { - $striptags = false; - if(is_array($value)) - { - if($sqlcheckoff != '') - { - return $value; - } - foreach($value as $k => $v) - { - if(is_array($v)) - { - $value[$k] = $v; - }else{ - $v = str_replace("\xef\xbb\xbf","NONBLOCKINGZERO",$v); - if($striptags){ - $v = $this->stripallslashes($v); - $v = $this->smartstripslashes($v); - $v = $this->app->erp->superentities($v); - } - $value[$k] = $this->app->DB->real_escape_string($v); - } - } - return $value; - } - - - $value = str_replace("\xef\xbb\xbf","NONBLOCKINGZERO",$value); - - if($striptags){ - $value = $this->stripallslashes($value); - $value = $this->smartstripslashes($value); - - $value = $this->app->erp->superentities($value); - } - - if(!empty($this->app->stringcleaner)) { - if( $sqlcheckoff == '') { - return $this->app->DB->real_escape_string($this->app->stringcleaner->CleanString($value, $rule)); - } - return $this->app->stringcleaner->CleanString($value, $rule); - } - - if($rule === 'nohtml') { - if( $sqlcheckoff == '') { - return $this->app->DB->real_escape_string(strip_tags($value)); - } - - return strip_tags($value); - - } - if($rule === 'nojs') { - if( $sqlcheckoff == '') { - return $this->app->DB->real_escape_string($this->xss_clean($value)); - } - - return $this->xss_clean($value); - } - - if($rule=='' && $sqlcheckoff == '') { - return $this->app->DB->real_escape_string($value);//mysqli_real_escape_string($value); - } - if($rule=='' && $sqlcheckoff != '') { - return $value; - } - - // build complete regexp - - // check if rule exists - - if($this->GetRegexp($rule)!=''){ - //$v = '/^['.$this->GetRegexp($rule).']+$/'; - $v = $this->GetRegexp($rule); - if (preg_match_all('/'.$v.'/i', $value, $teffer) ) { - if($sqlcheckoff==''){ - return $this->app->DB->real_escape_string($value);//mysqli_real_escape_string($value); - } - - return $value; - } - return ''; - } - - echo " -
Rule $rule doesn't exists!
"; - return ''; - } - - - function RuleCheck($value,$rule) - { - $found = false; - if(!empty($this->app->stringcleaner)) { - $value_ = $this->app->stringcleaner->RuleCheck($value, $rule, $found); - if($found) { - if($value_) { - return true; - } - return false; - } - } - - $v = $this->GetRegexp($rule); - if (preg_match_all('/'.$v.'/i', $value, $teffer) ){ - return true; - } - - return false; - } - - function AddRule($name,$type,$rule) - { - // type: reg = regular expression - // type: glue ( already exists rules copy to new e.g. number+digit) - $this->rules[$name]=array('type'=>$type,'rule'=>$rule); - } - - // get complete regexp by rule name - function GetRegexp($rule) - { - $rules = explode('+',$rule); - $ret = ''; - foreach($rules as $key) { - // check if rule is last in glue string - if($this->rules[$key]['type']==='glue') { - $subrules = explode('+',$this->rules[$key]['rule']); - if(count($subrules)>0) { - foreach($subrules as $subkey) { - $ret .= $this->GetRegexp($subkey); - } - } - } - elseif($this->rules[$key]['type']==='reg') { - $ret .= $this->rules[$key]['rule']; - } - } - if($ret==''){ - $ret = 'none'; - } - return $ret; - } - -} - +app = $app; + // clear global variables, that everybody have to go over secure layer + $this->GET = $_GET; + if(isset($this->GET['msgs']) && isset($this->app->Location)) { + $this->GET['msg'] = $this->app->Location->getMessage($this->GET['msgs']); + } + // $_GET=""; + $this->POST = $_POST; + // $_POST=""; + if(!isset($this->app->stringcleaner) && file_exists(__DIR__. '/class.stringcleaner.php')) { + if(!class_exists('StringCleaner')) { + require_once __DIR__ . '/class.stringcleaner.php'; + } + $this->app->stringcleaner = new StringCleaner($this->app); + } + + $this->AddRule('notempty','reg','.'); // at least one sign + $this->AddRule('alpha','reg','[a-zA-Z]'); + $this->AddRule('digit','reg','[0-9]'); + $this->AddRule('space','reg','[ ]'); + $this->AddRule('specialchars','reg','[_-]'); + $this->AddRule('email','reg','^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$'); + $this->AddRule('datum','reg','([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})'); + + $this->AddRule('username','glue','alpha+digit'); + $this->AddRule('password','glue','alpha+digit+specialchars'); + } + + /** + * @param string $name + * @param null $rule + * @param string $maxlength + * @param string $sqlcheckoff + * + * @return array|mixed|string + */ + public function GetGET($name,$rule=null,$maxlength='',$sqlcheckoff='') + { + if($name === 'msg' && isset($this->app->erp) && method_exists($this, 'xss_clean')) { + $ret = $this->Syntax(isset($this->GET[$name])?$this->GET[$name]:'','',$maxlength,$sqlcheckoff); + $ret = $this->app->erp->base64_url_decode($ret); + if(strpos($ret,'"button"') === false){ + $ret = $this->xss_clean($ret); + } + + return $this->app->erp->base64_url_encode($ret); + } + if($rule === null) { + $rule = $this->NameToRule($name); + } + return $this->Syntax(isset($this->GET[$name])?$this->GET[$name]:'',$rule,$maxlength,$sqlcheckoff); + } + + function NameToRule($name) + { + switch($name) + { + case 'id': + return 'doppelid'; + break; + case 'sid': + return 'alphadigits'; + break; + case 'module': + case 'smodule': + case 'action': + case 'saction': + return 'module'; + break; + case 'cmd': + return 'moduleminus'; + break; + } + return 'nothtml'; + } + + public function GetPOST($name,$rule=null,$maxlength="",$sqlcheckoff="") + { + if($rule === null) { + $rule = $this->NameToRule($name); + if(isset($this->POST['ishtml_cke_'.$name]) && $this->POST['ishtml_cke_'.$name]) { + $rule = 'nojs'; + } + } + + return $this->Syntax(isset($this->POST[$name])?$this->POST[$name]:'',$rule,$maxlength,$sqlcheckoff); + } + + public function GetPOSTForForms($name,$rule="",$maxlength="",$sqlcheckoff="") + { + return $this->SyntaxForForms($this->POST[$name],$rule,$maxlength,$sqlcheckoff); + } + + public function CleanString($string, $rule='nohtml',$sqlcheckoff='') + { + return $this->Syntax($string, $rule, '', $sqlcheckoff); + } + + public function xss_clean($data) + { + return $this->app->stringcleaner->xss_clean($data); + } + + public function GetPOSTArray() + { + if(!empty($this->POST) && count($this->POST)>0) + { + foreach($this->POST as $key=>$value) + { + $value = $this->GetPOST($key); + if ($value !== null) { + $ret[$key] = $value; + } + } + } + if(!empty($ret)) + { + return $ret; + } + + return null; + } + + public function GetGETArray() + { + if(!empty($this->GET) && count($this->GET)>0) + { + foreach($this->GET as $key=>$value) + { + $value = $this->GetGET($key); + if ($value !== null) { + $ret[$key] = $value; + } + } + } + if(!empty($ret)) + { + return $ret; + } + + return null; + } + + function stripallslashes($string) { + + while(strstr($string,'\\')) { + $string = stripslashes($string); + } + return $string; + } + + public function smartstripslashes($str) { + $cd1 = substr_count($str, "\""); + $cd2 = substr_count($str, "\\\""); + $cs1 = substr_count($str, "'"); + $cs2 = substr_count($str, "\\'"); + $tmp = strtr($str, array("\\\"" => "", "\\'" => "")); + $cb1 = substr_count($tmp, "\\"); + $cb2 = substr_count($tmp, "\\\\"); + if ($cd1 == $cd2 && $cs1 == $cs2 && $cb1 == 2 * $cb2) { + return strtr($str, array("\\\"" => "\"", "\\'" => "'", "\\\\" => "\\")); + } + return $str; + } + + public function SyntaxForForms($value,$rule,$maxlength="",$sqlcheckoff="") + { + return $value;//mysqli_real_escape_string($this->app->DB->connection,$value);//mysqli_real_escape_string($value); + } + + // check actual value with given rule + public function Syntax($value,$rule,$maxlength='',$sqlcheckoff='') + { + $striptags = false; + if(is_array($value)) + { + if($sqlcheckoff != '') + { + return $value; + } + foreach($value as $k => $v) + { + if(is_array($v)) + { + $value[$k] = $v; + }else{ + $v = str_replace("\xef\xbb\xbf","NONBLOCKINGZERO",$v); + if($striptags){ + $v = $this->stripallslashes($v); + $v = $this->smartstripslashes($v); + $v = $this->app->erp->superentities($v); + } + $value[$k] = $this->app->DB->real_escape_string($v); + } + } + return $value; + } + + + $value = str_replace("\xef\xbb\xbf","NONBLOCKINGZERO",$value); + + if($striptags){ + $value = $this->stripallslashes($value); + $value = $this->smartstripslashes($value); + + $value = $this->app->erp->superentities($value); + } + + if(!empty($this->app->stringcleaner)) { + if( $sqlcheckoff == '') { + return $this->app->DB->real_escape_string($this->app->stringcleaner->CleanString($value, $rule)); + } + return $this->app->stringcleaner->CleanString($value, $rule); + } + + if($rule === 'nohtml') { + if( $sqlcheckoff == '') { + return $this->app->DB->real_escape_string(strip_tags($value)); + } + + return strip_tags($value); + + } + if($rule === 'nojs') { + if( $sqlcheckoff == '') { + return $this->app->DB->real_escape_string($this->xss_clean($value)); + } + + return $this->xss_clean($value); + } + + if($rule=='' && $sqlcheckoff == '') { + return $this->app->DB->real_escape_string($value);//mysqli_real_escape_string($value); + } + if($rule=='' && $sqlcheckoff != '') { + return $value; + } + + // build complete regexp + + // check if rule exists + + if($this->GetRegexp($rule)!=''){ + //$v = '/^['.$this->GetRegexp($rule).']+$/'; + $v = $this->GetRegexp($rule); + if (preg_match_all('/'.$v.'/i', $value, $teffer) ) { + if($sqlcheckoff==''){ + return $this->app->DB->real_escape_string($value);//mysqli_real_escape_string($value); + } + + return $value; + } + return ''; + } + + echo " +
Rule $rule doesn't exists!
"; + return ''; + } + + + function RuleCheck($value,$rule) + { + $found = false; + if(!empty($this->app->stringcleaner)) { + $value_ = $this->app->stringcleaner->RuleCheck($value, $rule, $found); + if($found) { + if($value_) { + return true; + } + return false; + } + } + + $v = $this->GetRegexp($rule); + if (preg_match_all('/'.$v.'/i', $value, $teffer) ){ + return true; + } + + return false; + } + + function AddRule($name,$type,$rule) + { + // type: reg = regular expression + // type: glue ( already exists rules copy to new e.g. number+digit) + $this->rules[$name]=array('type'=>$type,'rule'=>$rule); + } + + // get complete regexp by rule name + function GetRegexp($rule) + { + $rules = explode('+',$rule); + $ret = ''; + foreach($rules as $key) { + // check if rule is last in glue string + if($this->rules[$key]['type']==='glue') { + $subrules = explode('+',$this->rules[$key]['rule']); + if(count($subrules)>0) { + foreach($subrules as $subkey) { + $ret .= $this->GetRegexp($subkey); + } + } + } + elseif($this->rules[$key]['type']==='reg') { + $ret .= $this->rules[$key]['rule']; + } + } + if($ret==''){ + $ret = 'none'; + } + return $ret; + } + +} + diff --git a/phpwf/plugins/class.yui.php b/phpwf/plugins/class.yui.php index b3c0af23..fa11f790 100644 --- a/phpwf/plugins/class.yui.php +++ b/phpwf/plugins/class.yui.php @@ -3552,51 +3552,67 @@ class YUI { '')"; } - function IconsSQL_produktion($tablename) { - $freigegeben = "app->Conf->WFconf['defaulttheme']}/images/produkton_laeuft.png\" title=\"Produktion freigegeben\" border=\"0\" style=\"margin-right:1px\">"; - $angelegt = "app->Conf->WFconf['defaulttheme']}/images/blue.png\" title=\"Produktion angelegt\" border=\"0\" style=\"margin-right:1px\">"; - $abgeschlossen = "app->Conf->WFconf['defaulttheme']}/images/grey.png\" title=\"Produktion abgeschlossen\" border=\"0\" style=\"margin-right:1px\">"; - $gestartet = "app->Conf->WFconf['defaulttheme']}/images/produkton_green.png\" title=\"Produktion gestartet\" border=\"0\" style=\"margin-right:1px\">"; - $storniert = "app->Conf->WFconf['defaulttheme']}/images/storno.png\" title=\"Produktion storniert\" border=\"0\" style=\"margin-right:1px\">"; + function IconsSQL_produktion($tablename) { + $freigegeben = "app->Conf->WFconf['defaulttheme']}/images/produkton_laeuft.png\" title=\"Produktion freigegeben\" border=\"0\" style=\"margin-right:1px\">"; + $angelegt = "app->Conf->WFconf['defaulttheme']}/images/blue.png\" title=\"Produktion angelegt\" border=\"0\" style=\"margin-right:1px\">"; + $abgeschlossen = "app->Conf->WFconf['defaulttheme']}/images/grey.png\" title=\"Produktion abgeschlossen\" border=\"0\" style=\"margin-right:1px\">"; + $gestartet = "app->Conf->WFconf['defaulttheme']}/images/produkton_green.png\" title=\"Produktion gestartet\" border=\"0\" style=\"margin-right:1px\">"; + $storniert = "app->Conf->WFconf['defaulttheme']}/images/storno.png\" title=\"Produktion storniert\" border=\"0\" style=\"margin-right:1px\">"; - $lager_ok = "app->Conf->WFconf['defaulttheme']}/images/lagergo.png\" style=\"margin-right:1px\" title=\"Artikel ist im Lager\" border=\"0\">"; - $lager_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/lagerstop.png\" style=\"margin-right:1px\" title=\"Artikel fehlt im Lager\" border=\"0\">"; + for ($z = 0;$z < 6;$z++) { + $angelegt_6 .= $angelegt; + $abgeschlossen_6 .= $abgeschlossen; + $storniert_6 .= $storniert; + } - $reserviert_ok = "app->Conf->WFconf['defaulttheme']}/images/ware_bestellt.png\" style=\"margin-right:1px\" title=\"Artikel reserviert\" border=\"0\">"; - $reserviert_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/ware_nicht_bestellt.png\" style=\"margin-right:1px\" title=\"Artikel nicht reserviert\" border=\"0\">"; + $lager_ok = "app->Conf->WFconf['defaulttheme']}/images/lagergo.png\" style=\"margin-right:1px\" title=\"Artikel ist im Lager\" border=\"0\">"; + $lager_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/lagerstop.png\" style=\"margin-right:1px\" title=\"Artikel fehlt im Lager\" border=\"0\">"; - $auslagern_ok = "app->Conf->WFconf['defaulttheme']}/images/ausgelagert.png\" title=\"Produktion ausgelagert\" border=\"0\" style=\"margin-right:1px\">"; - $auslagern_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/nicht_ausgelagert.png\" title=\"Produktion ausgelagert\" border=\"0\" style=\"margin-right:1px\">"; + $reserviert_ok = "app->Conf->WFconf['defaulttheme']}/images/ware_bestellt.png\" style=\"margin-right:1px\" title=\"Artikel reserviert\" border=\"0\">"; + $reserviert_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/ware_nicht_bestellt.png\" style=\"margin-right:1px\" title=\"Artikel nicht reserviert\" border=\"0\">"; - $einlagern_ok = "app->Conf->WFconf['defaulttheme']}/images/eingelagert.png\" title=\"Produktion eingelagert\" border=\"0\" style=\"margin-right:1px\">"; - $einlagern_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/nicht_eingelagert.png\" title=\"Produktion eingelagert\" border=\"0\" style=\"margin-right:1px\">"; + $auslagern_ok = "app->Conf->WFconf['defaulttheme']}/images/ausgelagert.png\" title=\"Produktion ausgelagert\" border=\"0\" style=\"margin-right:1px\">"; + $auslagern_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/nicht_ausgelagert.png\" title=\"Produktion ausgelagert\" border=\"0\" style=\"margin-right:1px\">"; - $zeit_ok = "app->Conf->WFconf['defaulttheme']}/images/zeit_dreiviertel.png\" style=\"margin-right:1px\" title=\"Zeiten erfasst\" border=\"0\">"; - $zeit_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/keine_zeiten.png\" style=\"margin-right:1px\" title=\"Zeiten nicht erfasst\" border=\"0\">"; + $einlagern_ok = "app->Conf->WFconf['defaulttheme']}/images/eingelagert.png\" title=\"Produktion eingelagert\" border=\"0\" style=\"margin-right:1px\">"; + $einlagern_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/nicht_eingelagert.png\" title=\"Produktion eingelagert\" border=\"0\" style=\"margin-right:1px\">"; - $versand_ok = "app->Conf->WFconf['defaulttheme']}/images/liefersperrego.png\" style=\"margin-right:1px\" title=\"Versand ok\" border=\"0\">"; - $versand_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/liefersperrestop.png\" style=\"margin-right:1px\" title=\"Versand nicht ok\" border=\"0\">"; + $zeit_ok = "app->Conf->WFconf['defaulttheme']}/images/zeit_dreiviertel.png\" style=\"margin-right:1px\" title=\"Zeiten erfasst\" border=\"0\">"; + $zeit_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/keine_zeiten.png\" style=\"margin-right:1px\" title=\"Zeiten nicht erfasst\" border=\"0\">"; + $versand_ok = "app->Conf->WFconf['defaulttheme']}/images/liefersperrego.png\" style=\"margin-right:1px\" title=\"Versand ok\" border=\"0\">"; + $versand_nicht_ok = "app->Conf->WFconf['defaulttheme']}/images/liefersperrestop.png\" style=\"margin-right:1px\" title=\"Versand nicht ok\" border=\"0\">"; - return "CONCAT('
', - case - when $tablename.status = 'freigegeben' THEN '$freigegeben' - when $tablename.status = 'abgeschlossen' THEN '$abgeschlossen' - when $tablename.status = 'angelegt' THEN '$angelegt' - when $tablename.status = 'gestartet' THEN '$gestartet' - else '$storniert' - end, - if($tablename.lager_ok,'$lager_ok','$lager_nicht_ok'), - if($tablename.reserviert_ok,'$reserviert_ok','$reserviert_nicht_ok'), - if($tablename.auslagern_ok,'$auslagern_ok','$auslagern_nicht_ok'), - if($tablename.einlagern_ok,'$einlagern_ok','$einlagern_nicht_ok'), - if($tablename.zeit_ok,'$zeit_ok','$zeit_nicht_ok'), - if($tablename.versand_ok,'$versand_ok','$versand_nicht_ok'), - '
')"; - + return "CONCAT('
', + CASE + WHEN $tablename.status = 'freigegeben' THEN '$freigegeben' + WHEN $tablename.status = 'abgeschlossen' THEN '$abgeschlossen' + WHEN $tablename.status = 'angelegt' THEN '$angelegt' + WHEN $tablename.status = 'gestartet' THEN '$gestartet' + ELSE + '$storniert' + end, + CASE + WHEN FIND_IN_SET($tablename.status, 'freigegeben,gestartet') THEN + CONCAT ( + if($tablename.lager_ok,'$lager_ok','$lager_nicht_ok'), + if($tablename.reserviert_ok,'$reserviert_ok','$reserviert_nicht_ok'), + if($tablename.auslagern_ok,'$auslagern_ok','$auslagern_nicht_ok'), + if($tablename.einlagern_ok,'$einlagern_ok','$einlagern_nicht_ok'), + if($tablename.zeit_ok,'$zeit_ok','$zeit_nicht_ok'), + if($tablename.versand_ok,'$versand_ok','$versand_nicht_ok') + ) + ELSE + CASE + WHEN $tablename.status = 'angelegt' THEN '$angelegt_6' + WHEN $tablename.status = 'abgeschlossen' THEN '$abgeschlossen_6' + ELSE + '$storniert_6' + END + END, + '
')"; } - function TablePositionSearch($parsetarget, $name, $callback = "show", $gener) { $id = $this->app->Secure->GetGET("id"); diff --git a/tools/module_creator/module_creator.php b/tools/module_creator/module_creator.php index f2937e06..c015c7cf 100644 --- a/tools/module_creator/module_creator.php +++ b/tools/module_creator/module_creator.php @@ -25,6 +25,8 @@ $user = 'openxe'; $passwd = 'openxe'; $schema = 'openxe'; +echo("\n"); + if ($argc >= 2) { if (in_array('-v', $argv)) { @@ -39,12 +41,34 @@ if ($argc >= 2) { $force = false; } - if (!str_starts_with($argv[1],'-')) { - $module_name = $argv[1]; + if (strpos($argv[1],'-') == 0) { + $module_name = $argv[1]; } else { info(); exit; } + + // column selection + $selected_columns = array(); + + // Set selected_columns here or per parameter -c col1,col2,col3 + // $selected_columns = array('belegnr','adresse','projekt'); + + if (in_array('-c', $argv)) { + $pos = array_keys($argv, '-c')[0]; + $pos++; + + if (isset($argv[$pos])) { + $selected_columns = explode(',',$argv[$pos]); + } + } + + if (empty($selected_columns)) { + echo("Selected all columns.\n"); + } else { + echo("Selected ".count($selected_columns)." columns,\n"); + } + $module_class_name = ucfirst($module_name); $php_file_name = $module_name . ".php"; $php_template_file_name = "module_creator_php_template.txt"; @@ -89,40 +113,52 @@ if ($argc >= 2) { /* Iterate through the result set */ echo "FIELD\t\t\t\tType\t\tNull\tKey\tDefault\tExtra\n"; while ($row = mysqli_fetch_assoc($result)) { - foreach ($row as $key => $value) { - echo($value); - switch ($key) { - case 'Field': - $colwidth = 32; + $column_processed = false; - if ($value != 'id') { - $columns[] = $value; - $sql_columns[] = $table_short_name.".".$value; - } + if (empty($selected_columns) || in_array($row['Field'],$selected_columns) || $row['Field'] == 'id') { - break; - case 'Type': - $colwidth = 16; - break; - default: - $colwidth = 8; - break; + foreach ($row as $key => $value) { + + echo($value); + + switch ($key) { + case 'Field': + $colwidth = 32; + + if ($value != 'id') { + $column_processed = true; + $columns[] = $value; + $sql_columns[] = $table_short_name.".".$value; + } + + break; + case 'Type': + $colwidth = 16; + break; + default: + $colwidth = 8; + break; + } + + for ($filler = strlen($value); $filler < $colwidth; $filler++) { + echo(" "); + } } - for ($filler = strlen($value); $filler < $colwidth; $filler++) { - echo(" "); - } + // Build edit form + // {|Bezeichnung|}:* + + if ($row['Field'] != 'id') { + $edit_form = $edit_form . '{|' . ucfirst($row['Field']) . '|}:' . "\n"; + } + echo("\n"); } + } - // Build edit form - // {|Bezeichnung|}:* - - if ($row['Field'] != 'id') { - $edit_form = $edit_form . '{|' . ucfirst($row['Field']) . '|}:' . "\n"; - } - - echo("\n"); + if (empty($columns)) { + echo("No matching columns found!\n"); + exit(); } // Create php file @@ -222,6 +258,8 @@ function info() { echo("arg1: SQL table name\n"); echo("Options\n"); echo("\t-v: verbose output\n"); + echo("\t-f: force override of existing files\n"); + echo("\t-c: select columns like this: -c col1,col2,col3,col3\n"); echo("\n"); } diff --git a/tools/module_creator/module_creator_php_template.txt b/tools/module_creator/module_creator_php_template.txt index 0dca1140..d3af660d 100644 --- a/tools/module_creator/module_creator_php_template.txt +++ b/tools/module_creator/module_creator_php_template.txt @@ -33,6 +33,9 @@ class PLACEHOLDER_MODULECLASSNAME { $heading = array('','',PLACEHOLDER_COLUMNS, 'Menü'); $width = array('1%','1%','10%'); // Fill out manually later + // columns that are aligned right (numbers etc) + // $alignright = array(4,5,6,7,8); + $findcols = array(PLACEHOLDER_SQL_COLUMNS); $searchsql = array(PLACEHOLDER_SQL_COLUMNS); @@ -88,6 +91,12 @@ class PLACEHOLDER_MODULECLASSNAME { function PLACEHOLDER_EDIT() { $id = $this->app->Secure->GetGET('id'); + + // Check if other users are editing this id + if($this->app->erp->DisableModul('artikel',$id)) + { + return; + } $this->app->Tpl->Set('ID', $id); diff --git a/update.php b/update.php deleted file mode 100644 index e307e9fa..00000000 --- a/update.php +++ /dev/null @@ -1,2 +0,0 @@ - This file +upgrade.sh -> The upgrade starter, execute with "./upgrade.sh". Execute without parameters to view possible options. + +Files in the data subdirectory: +upgrade.php -> The upgrade program +db_schema.json -> Contains the nominal database structure +exported_db_schema.json -> Contains the exported database structure (optional) +remote.json -> Contains the git remote & branch which should be used for upgrade +upgrade.log -> Contains the output from the last run that was started from within OpenXE diff --git a/upgrade/data/db_schema.json b/upgrade/data/db_schema.json new file mode 100644 index 00000000..477a9084 --- /dev/null +++ b/upgrade/data/db_schema.json @@ -0,0 +1,114308 @@ +{ + "host": "localhost", + "database": "openxe", + "user": "openxe", + "tables": [ + { + "name": "abrechnungsartikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuerklasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnetbis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiederholend", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlzyklus", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgrechnetam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dokument", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisart", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "enddatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtvon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "experte", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibungersetzten", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse", + "artikel" + ] + } + ] + }, + { + "name": "abrechnungsartikel_gruppe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extrarechnung", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppensumme", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungadresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sammelrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "abschlagsrechnung_rechnung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "rechnung", + "columns": [ + "rechnung" + ] + }, + { + "Key_name": "auftrag", + "columns": [ + "auftrag" + ] + } + ] + }, + { + "name": "accordion", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "target", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "adapterbox", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verwendenals", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "baudrate", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "model", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ipadresse", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "netmask", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gateway", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dns", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhcp", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wlan", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ssid", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passphrase", + "Type": "varchar(256)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzteverbindung", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tmpip", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "adapterbox_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ip", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meldung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "device", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "adapterbox_request_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auth", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "validpass", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "device", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "digets", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ip", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "success", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "adresse", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketingsperre", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "trackingsperre", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungsadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mobil", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwort_gesendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundenfreigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiternummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "blz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "swift", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "iban", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paypal", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paypalinhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paypalwaehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partner", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummerlieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweiselieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltagelieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskontolieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskontolieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandartlieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webid", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kennung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sachkonto", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filiale", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "innendienst", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbandsnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendeemailab", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portofrei_aktiv", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portofreiab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "infoauftragserfassung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzaenderung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "glaeubigeridentnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditlimit", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tour", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungskonditionen_festschreiben", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatte_festschreiben", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmaktiv", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmvertragsbeginn", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmlizenzgebuehrbis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmfestsetzenbis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmfestsetzen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmmindestpunkte", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmwartekonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichende_rechnungsadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_vorname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_typ", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_strasse", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_ort", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_ansprechpartner", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_land", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_abteilung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_unterabteilung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_adresszusatz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_telefon", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_telefax", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_anschreiben", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_email", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geburtstag", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rolledatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefersperre", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefersperregrund", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmpositionierung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuernummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuerbefreit", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmmitmwst", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmabrechnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmwaehrungauszahlung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmauszahlungprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sponsor", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geworbenvon", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logfile", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalender_aufgaben", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verrechnungskontoreisekosten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabattinformation", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internetseite", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus1_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus2_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus3_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus4_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus5_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus6", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus6_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus7", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus7_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus8", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus8_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus9", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus9_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus10", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus10_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_periode", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_anzahlpapier", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_permail", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachname", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitszeitprowoche", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "folgebestaetigungsperre", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantennummerbeikunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verein_mitglied_seit", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verein_mitglied_bis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verein_mitglied_aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verein_spendenbescheinigung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_papier", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot_fax_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_fax_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_fax_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift_fax_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_fax_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_fax_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abperfax", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abpermail", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kassiereraktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kassierernummer", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kassiererprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portofreilieferant_aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portofreiablieferant", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzart", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzwdhart", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "serienbrief", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer_buchhaltung", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantennummer_buchhaltung", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lead", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweiseabo", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesland", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzhinweis", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geburtstagkalender", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geburtstagskarte", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefersperredatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer_lieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lat", + "Type": "decimal(18,12)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lng", + "Type": "decimal(18,12)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fromshop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot_email", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_email", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungs_email", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift_email", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_email", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_email", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschwellenichtanwenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hinweistextlieferant", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firmensepa", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hinweis_einfuegen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuerbelege", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_gln", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinealtersabfrage", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmintranetgesamtestruktur", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionskonsignationslager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollinformationen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "kundennummer", + "columns": [ + "kundennummer" + ] + }, + { + "Key_name": "lieferantennummer", + "columns": [ + "lieferantennummer" + ] + }, + { + "Key_name": "usereditid", + "columns": [ + "usereditid" + ] + }, + { + "Key_name": "plz", + "columns": [ + "plz" + ] + }, + { + "Key_name": "email", + "columns": [ + "email" + ] + } + ] + }, + { + "name": "adresse_abosammelrechnungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichende_rechnungsadresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "adresse_accounts", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "benutzername", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwort", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltig_ab", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltig_bis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "adresse_filter", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "adresse_filter_gruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isand", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isnot", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "filter", + "columns": [ + "filter" + ] + } + ] + }, + { + "name": "adresse_filter_positionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ2", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isand", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isnot", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter3", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "filter", + "columns": [ + "filter" + ] + }, + { + "Key_name": "gruppe", + "columns": [ + "gruppe" + ] + } + ] + }, + { + "name": "adresse_import", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mobil", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internetseite", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegt_am", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "adresse_kontakhistorie", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "adresse_kontakte", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kontakt", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "adresse_rolle", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subjekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "praedikat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + } + ] + }, + { + "name": "adresse_typ", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "netto", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "adressetiketten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etikett", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verwenden_als", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "aktionscode_liste", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "code", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschriftung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "amainvoice_config", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "amainvoice_files", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filename", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "filename", + "columns": [ + "filename" + ] + } + ] + }, + { + "name": "amazon_article", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seller_sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_fba", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_check", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id" + ] + }, + { + "Key_name": "seller_sku", + "columns": [ + "seller_sku" + ] + } + ] + }, + { + "name": "amazon_rechnung_anlegen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fba", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopid", + "columns": [ + "shopid", + "auftrag", + "status" + ] + } + ] + }, + { + "name": "amazon_report", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reportid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "requestreportid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reporttype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplaces", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "requesttype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_processing_status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'_done_'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imported", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startdate", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "enddate", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liveimported", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "createreturnorders", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastchecked", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_options", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id", + "reportid" + ] + }, + { + "Key_name": "reporttype", + "columns": [ + "reporttype" + ] + }, + { + "Key_name": "requestreportid", + "columns": [ + "requestreportid" + ] + }, + { + "Key_name": "created_at", + "columns": [ + "created_at" + ] + } + ] + }, + { + "name": "amazon_report_schedule", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schedule", + "Type": "varchar(12)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "scheduled_date", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deleted", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id", + "report_type", + "schedule", + "scheduled_date", + "deleted" + ] + } + ] + }, + { + "name": "amazon_shipment_info", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(19)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderitemid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "merchantorderid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "merchantorderitemid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipmentitemid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "carrier", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "currency", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking_number", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sales_channel", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fulfillment_channel", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fulfillment_center_id", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_shipped", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipment_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "estimated_arrival_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_address_1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_address_2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_address_3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_city", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_state", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_postal_code", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_country", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_phone_number", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bill_address_1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bill_address_2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bill_address_3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bill_city", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bill_state", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bill_postal_code", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bill_country", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "recipient_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buyer_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_price", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_tax", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipping_price", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipping_tax", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gift_wrap_price", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gift_wrap_tax", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_promotion_discount", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ship_promotion_discount", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "orderid", + "columns": [ + "orderid" + ] + } + ] + }, + { + "name": "amazon_vat_report", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(19)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "transaction_type", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fullrow", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hash_sha1", + "Type": "varchar(40)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hash_nr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "on_orderimport", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_changed", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "invoice_changed", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "credit_note_changed", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "invoice_created", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "credit_note_created", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "invoicenumber", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipment_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tax_calculation_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "orderid", + "columns": [ + "orderid" + ] + }, + { + "Key_name": "hash_sha1", + "columns": [ + "hash_sha1" + ] + }, + { + "Key_name": "transaction_type", + "columns": [ + "transaction_type" + ] + }, + { + "Key_name": "position_id", + "columns": [ + "position_id" + ] + } + ] + }, + { + "name": "amazon_vatinvoice", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vat_invoice_number", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from_city", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from_state", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from_country", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from_postal_code", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from_location_code", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seller_tax_registration", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buyer_tax_registration", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipment_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isreturn", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopid", + "columns": [ + "shopid", + "orderid" + ] + } + ] + }, + { + "name": "amazoninvoice_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inv_rech_nr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inv_date", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amazonorderid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipmentdate", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buyeremail", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buyerphonenumber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buyername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "productname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantitypurchased", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantityshipped", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "currency", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mwst", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "taxrate", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "brutto_total", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "netto_total", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tax_total", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itemprice", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itemprice_netto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itemprice_tax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippingprice", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippingprice_netto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippingprice_tax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "giftwrapprice", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "giftwrapprice_netto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "giftwrapprice_tax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itempromotiondiscount", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itempromotiondiscount_netto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itempromotiondiscount_tax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippromotiondiscount", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippromotiondiscount_netto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippromotiondiscount_tax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "giftwrappromotiondiscount", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "giftwrappromotiondiscount_netto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "giftwrappromotiondiscount_tax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipservicelevel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "recipientname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipaddress1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipaddress2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipaddress3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipcity", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipstate", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippostalcode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipcountry", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipphonenumber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billaddress1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billaddress2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billaddress3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billcity", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billstate", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billpostalcode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billcountry", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "carrier", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "trackingnumber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fulfillmentcenterid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fulfillmentchannel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "saleschannel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "conditiontype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantityavailable", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isbusinessorder", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vatcheck", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "documentlink", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rem_gs_nr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rem_date", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "returndate", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buyercompanyname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "remreturnshipcost", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "remsondererstattung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itempromotionid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reason", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rem_gs_nr_real", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "create", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "create_order", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "anfrage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung_user", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "realrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "anfrage_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anfrage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabattsync", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "anfrage", + "columns": [ + "anfrage" + ] + } + ] + }, + { + "name": "anfrage_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anfrage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "anfrage", + "columns": [ + "anfrage" + ] + } + ] + }, + { + "name": "angebot", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltigbis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anfrage", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retyp", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retelefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retelefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reemail", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "readresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "restrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "replz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtsumme", + "Type": "decimal(18,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_institut", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_blz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_pruefnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_monat", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_jahr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendelieferadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichenderechnungsadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferplz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefertelefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefertelefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefermail", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinporto", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtsummeausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vermerk", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitragcalc", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloes_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision_summe", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinsteuersatz", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anfrageid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "realrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendebezeichnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kopievon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kopienummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefergln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferemail", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "planedorderdate", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_artikeltext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuer", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefertitel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontoberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internet", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "transaktionsnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_station", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_ident", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopextid", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "vertriebid", + "columns": [ + "vertriebid" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + }, + { + "Key_name": "belegnr", + "columns": [ + "belegnr" + ] + }, + { + "Key_name": "versandart", + "columns": [ + "versandart" + ] + } + ] + }, + { + "name": "angebot_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmdirektpraemie", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinrabatterlaubt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabattsync", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "optional", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreiswaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisurspruenglich", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ekwaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelpreis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohnepreis", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "textalternativpreis", + "Type": "varchar(50)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuerbetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontosperre", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "berechnen_aus_teile", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden_im_pdf", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "angebot", + "columns": [ + "angebot" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "angebot_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "angebot", + "columns": [ + "angebot" + ] + } + ] + }, + { + "name": "ansprechpartner", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bereich", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mobil", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner_land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorname", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geburtstag", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geburtstagkalender", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geburtstagskarte", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "interne_bemerkung", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketingsperre", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "ansprechpartner_gruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "api_account", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "initkey", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importwarteschlange_name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "event_url", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "remotedomain", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importwarteschlange", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cleanutf8", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragung_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "permissions", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_legacy", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ishtmltransformation", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "api_keys", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nonce", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "opaque", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nonce_count", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "api_mapping", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragung_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tabelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "id_int", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "id_ext", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragung_account", + "columns": [ + "uebertragung_account" + ] + }, + { + "Key_name": "id_ext", + "columns": [ + "id_ext" + ] + }, + { + "Key_name": "api", + "columns": [ + "api" + ] + } + ] + }, + { + "name": "api_permission", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "key", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "group", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "key", + "columns": [ + "key" + ] + } + ] + }, + { + "name": "api_regel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bedingung", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sofortuebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "api_request", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragung_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'angelegt'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1int", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeige", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragen_am", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahl_uebertragen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragung_account", + "columns": [ + "uebertragung_account" + ] + }, + { + "Key_name": "parameter1int", + "columns": [ + "parameter1int" + ] + } + ] + }, + { + "name": "api_request_response_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "raw_request", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "raw_response", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_incomming", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "api_id", + "columns": [ + "api_id" + ] + }, + { + "Key_name": "created_at", + "columns": [ + "created_at" + ] + } + ] + }, + { + "name": "arbeitsfreietage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + } + ] + }, + { + "name": "arbeitspaket", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aufgabe", + "Type": "varchar(255)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit_geplant", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgabe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgenommen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgenommen_von", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgenommen_bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "initiator", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgabedatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorgaenger", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kosten_geplant", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_geplant", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_BE", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_PR", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_AN", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_AB", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_LS", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_RE", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_GS", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_cache", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ek_geplant", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vk_geplant", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalkulationbasis", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'stundenbasis'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_PF", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "farbe", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vkkalkulationbasis", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektplanausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + } + ] + }, + { + "name": "article_label", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "label_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "printer_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "article_property_translation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "category_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language_from", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language_to", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "property_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "property_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "property_value_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "property_value_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id" + ] + }, + { + "Key_name": "category_id", + "columns": [ + "category_id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checksum", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inaktiv", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausverkauft", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "warengruppe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurztext_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurztext_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebersicht_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebersicht_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "links_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "links_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startseite_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startseite_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardbild", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herstellerlink", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hersteller", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilbar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nteile", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummern", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeitmanuell", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewicht", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "endmontage", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktionstest", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelcheckliste", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stueckliste", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "juststueckliste", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "barcode", + "Type": "varchar(7)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hinzugefuegt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pcbdecal", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerartikel", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "porto", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chargenverwaltung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provisionsartikel", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesperrt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sperrgrund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltigbis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopartikel", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unishopartikel", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "journalshopartikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalog", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalogtext_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalogtext_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalogbezeichnung_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalogbezeichnung_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "neu", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "topseller", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startseite", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wichtig", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mindestlager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mindestbestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerprogramm_sperre", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intern_gesperrt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intern_gesperrtuser", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intern_gesperrtgrund", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitunguser", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_lagerplatzinhaltmenge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anabregs_text", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autobestellung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herstellernummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "restmenge", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmdirektpraemie", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keineeinzelartikelanzeigen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mindesthaltbarkeitsdatum", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzteseriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "individualartikel", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinrabatterlaubt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt_prozent", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geraet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "serviceartikel", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoabgleicherlaubt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pseudopreis", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabenotwendig", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigaberegel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachbestellt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ean", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmpunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmbonuspunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmkeinepunkteeigenkauf", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop2", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop3", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webid", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeitmanuell_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variante", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variante_von", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktioninfo", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonderaktion", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonderaktion_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autolagerlampe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "leerfeld", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "laenge", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "breite", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hoehe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gebuehr", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pseudolager", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "downloadartikel", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "matrixprodukt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_normal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_normal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_ermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_ermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_steuerfrei", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_steuerfrei", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_innergemeinschaftlich", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_innergemeinschaftlich", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_eunormal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_nichtsteuerbar", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_euermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_nichtsteuerbar", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_eunormal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_euermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_export", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_import", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_art_produkt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_art_produkt_download", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "metadescription_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "metadescription_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "metakeywords_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "metakeywords_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anabregs_text_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "externeproduktion", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bildvorschau", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventursperre", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variante_kopie", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unikat", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "generierenummerbeioption", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "allelieferanten", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tagespreise", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rohstoffe", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nettogewicht", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xvp", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohnepreisimpdf", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provisionssperre", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dienstleistung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventurekaktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventurek", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hinweis_einfuegen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etikettautodruck", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerkorrekturwert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodrucketikett", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abckategorie", + "Type": "varchar(1)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "laststorage_changed", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "1970-01-01 23:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "laststorage_sync", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "1970-01-01 23:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext_innergemeinschaftlich", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext_export", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelpreis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ursprungsregion", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestandalternativartikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "metatitle_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "metatitle_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vkmeldungunterdruecken", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "altersfreigabe", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unikatbeikopie", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuergruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelautokalkulation", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelabschliessenkalkulation", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelfifokalkulation", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinskonto", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "berechneterek", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verwendeberechneterek", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "berechneterekwaehrung", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "has_preproduced_partlist", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preproduced_partlist", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "nummer", + "columns": [ + "nummer" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "laststorage_changed", + "columns": [ + "laststorage_changed" + ] + }, + { + "Key_name": "laststorage_sync", + "columns": [ + "laststorage_sync" + ] + }, + { + "Key_name": "variante_von", + "columns": [ + "variante_von" + ] + }, + { + "Key_name": "herstellernummer", + "columns": [ + "herstellernummer" + ] + }, + { + "Key_name": "geloescht", + "columns": [ + "geloescht" + ] + } + ] + }, + { + "name": "artikel_arbeitsanweisung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzelzeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsplatzgruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikel_artikelgruppe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelgruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikel_cached_fields", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "number", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ean", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "factory_number", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "manufactor", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "customfield1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "customfield2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ek_customnumber", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vk_customnumber", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eigenschaften", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_storage_article", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_variant", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variant_from_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variant_from_name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_partlist", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_shipping", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "locked", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_verfuegbar", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ek_netto", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ek_brutto", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vk_netto", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vk_brutto", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inzulauf", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imsperrlager", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inproduktion", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikel_freifelder", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikel_onlineshops", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausartikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerkorrekturwert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pseudolager", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autolagerlampe", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "restmenge", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeitmanuell", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pseudopreis", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "generierenummerbeioption", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variante_kopie", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unikat", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unikatbeikopie", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoabgeleicherlaubt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_article_hash", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_article_transfer", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_storage_transfer", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_cache", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pseudostorage_cache", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel", + "shop" + ] + } + ] + }, + { + "name": "artikel_permanenteinventur", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lager_platz", + "columns": [ + "lager_platz" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikel_shop", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checksum", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikel_texte", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(11)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurztext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_online", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meta_title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meta_description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meta_keywords", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalogartikel", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalog_bezeichnung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "katalog_text", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop", + "columns": [ + "shop" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikel_zu_optionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikeloption", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikel_zu_optionengruppe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikeloptionengruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisadd", + "Type": "decimal(8,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisart", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'absolut'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikelbaum_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "haupt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel", + "kategorie" + ] + } + ] + }, + { + "name": "artikeleigenschaften", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'einzeilig'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikeleigenschaftenwerte", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikeleigenschaften", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikeleigenschaften", + "columns": [ + "artikeleigenschaften" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikeleinheit", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikelgruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_en", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "id", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikelkalkulation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kosten", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtkosten", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesperrt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "automatischneuberechnen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikelkalkulation_menge", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "artikelkalkulation_tag", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "json", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikelkategorien", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_nummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "externenummer", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_normal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_normal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_ermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_ermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_steuerfrei", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_steuerfrei", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_innergemeinschaftlich", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_innergemeinschaftlich", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_eunormal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_nichtsteuerbar", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_euermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_nichtsteuerbar", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_eunormal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_euermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_export", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_import", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext_innergemeinschaftlich", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext_export", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "parent", + "columns": [ + "parent" + ] + } + ] + }, + { + "name": "artikelkontingente", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikelnummer_fremdnummern", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "scannable", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "shopid", + "columns": [ + "shopid" + ] + }, + { + "Key_name": "nummer", + "columns": [ + "nummer" + ] + } + ] + }, + { + "name": "artikeloptionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisadd", + "Type": "decimal(8,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisart", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'absolut'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "artikeloptionengruppe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardoption", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "aufgabe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aufgabe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "initiator", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegt_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startzeit", + "Type": "time", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intervall_tage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stunden", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgabe_bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startseite", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "oeffentlich", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailerinnerung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailerinnerung_tage", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "note_x", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "note_y", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "note_z", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "note_color", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pinwand", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorankuendigung", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ganztags", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeiterfassung_pflicht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeiterfassung_abrechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kunde", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pinwand_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgabe_bis_zeit", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_gesendet_vorankuendigung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_gesendet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "note_w", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "note_h", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "aufgabe_erledigt", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aufgabe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "auftrag", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internet", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_inner", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_institut", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_blz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_konto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_pruefnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_monat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_jahr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinporto", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinestornomail", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendelieferadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferplz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_station", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_ident", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autofreigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachbesserung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtsumme", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachlieferung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "porto_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "check_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorkasse_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachnahme_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reserviert_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "folgebestaetigung", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsmail", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornogrund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornosonstiges", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornorueckzahlung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobetrag", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankinhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankkonto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankblz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankbank", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornogutschrift", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornogutschriftbeleg", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornowareerhalten", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornomanuellebearbeitung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornokommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobezahlt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobezahltam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobezahltvon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornoabgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornorueckzahlungper", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornowareerhaltenretour", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerausgezahlt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerausgezahltam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kennen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinetrackingmail", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsmailcounter", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rma", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "transaktionsnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorabbezahltmarkieren", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitragcalc", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloes_netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tatsaechlicheslieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefertermin_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teillieferung_moeglich", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditlimit_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditlimit_freigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefersperre_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teillieferungvon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teillieferungnummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision_summe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anfrageid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopextid", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopextstatus", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ihrebestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "realrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzugsdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinsteuersatz", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebotid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragseingangper", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "systemfreitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferungtrotzsperre", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "saldo", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "saldogeprueft", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantenauftrag", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferant", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendebezeichnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatteportofestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesland", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefergln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferemail", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reservationdate", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deliverythresholdvatid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fastlane", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantkdrnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_artikeltext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuer", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cronjobkommissionierung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefertitel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontoberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionskonsignationslager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extsoll", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer_buchhaltung", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_country", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_status_update_attempt", + "Type": "int(3)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_status_update_last_attempt_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "vertriebid", + "columns": [ + "vertriebid" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + }, + { + "Key_name": "belegnr", + "columns": [ + "belegnr" + ] + }, + { + "Key_name": "gesamtsumme", + "columns": [ + "gesamtsumme" + ] + }, + { + "Key_name": "transaktionsnummer", + "columns": [ + "transaktionsnummer" + ] + }, + { + "Key_name": "internet", + "columns": [ + "internet" + ] + }, + { + "Key_name": "lieferantkdrnummer", + "columns": [ + "lieferantkdrnummer" + ] + }, + { + "Key_name": "teillieferungvon", + "columns": [ + "teillieferungvon" + ] + }, + { + "Key_name": "versandart", + "columns": [ + "versandart" + ] + } + ] + }, + { + "name": "auftrag_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert_menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmdirektpraemie", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinrabatterlaubt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabattsync", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webid", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachbestelltexternereinkauf", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreiswaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisurspruenglich", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ekwaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelpreis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohnepreis", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolleinzelwert", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollgesamtwert", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollwaehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolleinzelgewicht", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollgesamtgewicht", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "potentiellerliefertermin", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuerbetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontosperre", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden_im_pdf", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "auftrag", + "columns": [ + "auftrag", + "artikel" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "auftrag_2", + "columns": [ + "auftrag" + ] + }, + { + "Key_name": "explodiert_parent", + "columns": [ + "explodiert_parent" + ] + } + ] + }, + { + "name": "auftrag_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "auftrag", + "columns": [ + "auftrag" + ] + } + ] + }, + { + "name": "autoresponder_blacklist", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cachetime", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mailaddress", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "backup", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateiname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "beleg_chargesnmhd", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type2", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type3", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerplatz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "doctypeid", + "columns": [ + "doctypeid" + ] + }, + { + "Key_name": "pos", + "columns": [ + "pos" + ] + }, + { + "Key_name": "type", + "columns": [ + "type" + ] + }, + { + "Key_name": "type2", + "columns": [ + "type2" + ] + }, + { + "Key_name": "wert", + "columns": [ + "wert" + ] + } + ] + }, + { + "name": "beleg_zwischenpositionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "postype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "doctypeid", + "columns": [ + "doctypeid" + ] + } + ] + }, + { + "name": "belegeimport", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_status", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_datum", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferdatum", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_tatsaechlicheslieferdatum", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_versandart", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_zahlungsweise", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_belegnr", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_hauptbelegnr", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferantennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_land", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_aktion", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_internebezeichnung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_ihrebestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferbedingung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_art", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_ean", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_menge", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_preisfuermenge", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_rabatt", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_zolltarifnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_herkunftsland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_artikelnummerkunde", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld4", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld5", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld6", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld7", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld8", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld9", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld10", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld11", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld12", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld13", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld14", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld15", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld16", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld17", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld18", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld19", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_freifeld20", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_unterlistenexplodieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel_steuersatz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresscounter", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld4", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld5", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld6", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld7", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld8", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld9", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld10", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld11", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld12", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld13", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld14", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld15", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld16", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld17", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld18", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld19", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_freifeld20", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_sprache", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_auftragsnummer", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_rechnungsnumer", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_liefername", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferland", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferplz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_lieferansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_abschlagauftrag", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_abschlagauftragbezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_waehrung", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_bundesstaat", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beleg_internet", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "belegeimport_running", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filename", + "Type": "varchar(256)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "command", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "belegevorlagen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegtyp", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "json", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "berichte", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "struktur", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "spaltennamen", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "spaltenbreite", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "spaltenausrichtung", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variablen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sumcols", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_actionmenu", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_actionmenuname", + "Type": "varchar(256)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_actionmenufiletype", + "Type": "varchar(256)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'csv'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftpuebertragung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftppassivemode", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftphost", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftpport", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftpuser", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftppassword", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftpuhrzeit", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftpletzteuebertragung", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftpnamealternativ", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailuebertragung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailempfaenger", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailbetreff", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailuhrzeit", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailletzteuebertragung", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailnamealternativ", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'ftp'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "doctype", + "columns": [ + "doctype" + ] + } + ] + }, + { + "name": "bestbeforebatchtoposition", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestbeforedatebatch", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "doctype", + "columns": [ + "doctype", + "doctype_id", + "position_id" + ] + } + ] + }, + { + "name": "bestellung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungsart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendelieferadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferplz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaeufer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keineartikelnummern", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsstatus", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtsumme", + "Type": "decimal(18,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_institut", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_blz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paypalaccount", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellbestaetigung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerninfotext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungohnepreis", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeiteninfo", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_bestaetigt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestaetigteslieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungbestaetigtper", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungbestaetigtabnummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewuenschteslieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisanfrageid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummerlieferant", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_artikeltext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "langeartikelnummern", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendebezeichnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuer", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefertitel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontoberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + }, + { + "Key_name": "belegnr", + "columns": [ + "belegnr" + ] + }, + { + "Key_name": "versandart", + "columns": [ + "versandart" + ] + } + ] + }, + { + "name": "bestellung_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnunglieferant", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mengemanuellgeliefertaktiviert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "manuellgeliefertbearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisanfrage_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahlmenge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahletiketten", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahllagerplatz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "bestellung", + "columns": [ + "bestellung", + "artikel" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "bestellung_2", + "columns": [ + "bestellung" + ] + } + ] + }, + { + "name": "bestellung_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "bestellung", + "columns": [ + "bestellung" + ] + } + ] + }, + { + "name": "bestellvorschlag", + "type": "BASE TABLE", + "columns": [ + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "Index_type": "BTREE", + "columns": [ + "artikel", + "user" + ] + } + ] + }, + { + "name": "bestellvorschlag_app", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "-1.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bedarf", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imauftrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inproduktion", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbestellung", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbestellung_nichtversendet", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "promonat", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verkauf", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkauf", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferant", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahl", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufsid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bedarfgesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "user", + "columns": [ + "user" + ] + } + ] + }, + { + "name": "bestellvorschlag_app_staffeln", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bedarfstaffel", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "boxnachrichten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachricht", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ablaufzeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beep", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "bundesstaaten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "iso", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "caldav_changes", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uri", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "change_type", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "calendar", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "change_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tabelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tableid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "tableid", + "columns": [ + "tableid" + ] + } + ] + }, + { + "name": "change_log_field", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "change_log", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fieldname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "oldvalue", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "newvalue", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "change_log", + "columns": [ + "change_log" + ] + } + ] + }, + { + "name": "chargen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charge", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferung", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "chargen_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingang", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestand", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_interim", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_movement_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "doctypeid", + "columns": [ + "doctypeid" + ] + }, + { + "Key_name": "doctype", + "columns": [ + "doctype" + ] + } + ] + }, + { + "name": "chargenverwaltung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "chat", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_from", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_to", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user_from", + "columns": [ + "user_from" + ] + }, + { + "Key_name": "user_to", + "columns": [ + "user_to" + ] + } + ] + }, + { + "name": "chat_gelesen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user", + "columns": [ + "user", + "message" + ] + }, + { + "Key_name": "message", + "columns": [ + "message" + ] + } + ] + }, + { + "name": "checkaltertable", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checksum", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "collectivedebitor", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paymentmethod_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "channel_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "country", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "group_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "account", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "store_in_address", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "cronjob_kommissionierung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(40)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "cronjob_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cronjob_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "memory_usage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "memory_peak", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cronjob_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "change_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "cronjob_id", + "columns": [ + "cronjob_id", + "change_time" + ] + } + ] + }, + { + "name": "cronjob_starter_running", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uid", + "Type": "varchar(23)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "task_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uid", + "columns": [ + "uid", + "type" + ] + } + ] + }, + { + "name": "datei", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "datei_stichwoerter", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subjekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "datei", + "columns": [ + "datei" + ] + }, + { + "Key_name": "parameter", + "columns": [ + "parameter" + ] + } + ] + }, + { + "name": "datei_stichwortvorlagen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschriftung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "modul", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "datei_version", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ersteller", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "version", + "Type": "int(5)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateiname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "size", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "datei", + "columns": [ + "datei" + ] + } + ] + }, + { + "name": "dateibaum", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei_stichwoerter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pfad", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "datev_buchungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wkz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gegenkonto", + "Type": "int(255)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegfeld1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegfeld2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "haben", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kost1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kost2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchungstext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportiert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kontoauszug", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "datevconnect_online_export", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "timestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "delivery_problemcase", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "problemcase", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "device_jobs", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deviceidsource", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deviceiddest", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "job", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "docscan", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "docscan_metadata", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "docscan_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meta_key", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meta_value", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "document_customization_infoblock", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keyword", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fontstyle", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alignment", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "document_customization_infoblock_translation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "document_customization_infoblock_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language_code", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fontstyle", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alignment", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "document_customization_infoblock_id", + "columns": [ + "document_customization_infoblock_id" + ] + } + ] + }, + { + "name": "dokumente", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_from", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_to", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "an", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_an", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma_an", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(1023)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "signatur", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "send_as", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "printer", + "Type": "int(2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fax", + "Type": "tinyint(2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sent", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deleted", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_cc", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_bcc", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uhrzeit", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse_to", + "columns": [ + "adresse_to" + ] + } + ] + }, + { + "name": "dokumente_send", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dokument", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "text", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateiid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "dropshipping", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "gruppe", + "columns": [ + "gruppe" + ] + } + ] + }, + { + "name": "dropshipping_gruppe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungok", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumberechnen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellunganlegen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendelieferadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinanhaengen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnunganhaengen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftraganhaengen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungmail", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinmail", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungmail", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rueckmeldungshop", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungdrucken", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheindrucken", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungdrucken", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheincsv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragcsv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungabschliessen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegeautoversandkunde", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegeautoversand", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'standardauftrag'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "drucker", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "befehl", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tomail", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tomailtext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tomailsubject", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adapterboxip", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adapterboxseriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adapterboxpasswort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anbindung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "faxserver", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "format", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinhintergrund", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "json", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "drucker_spooler", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filename", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahl", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "befehl", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anbindung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gedruckt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "drucker", + "columns": [ + "drucker" + ] + }, + { + "Key_name": "user", + "columns": [ + "user" + ] + } + ] + }, + { + "name": "dsgvo_loeschauftrag", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "loeschauftrag_vom", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "dta", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "blz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vz1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vz2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vz3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastschrift", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kontointern", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzaenderung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzart", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatsreferenzwdhart", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "dta_datei", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inhalt", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "dta_datei_verband", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateiname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachricht", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_versendet", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verband", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variante", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "eangenerator", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ean", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "available", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_articles_to_sync", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "ebay_artikelzuordnungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itemid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variation", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erledigt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verkauft", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_auktionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itemid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startdatum", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dauer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzteaktualisierung", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingestellt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verfuegbar", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verkauf", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sofortkauf", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beobachtet", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_bulk_call", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "ebay_bulk_jobs", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "job_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "response_file_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uuid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "notes", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "job_id", + "columns": [ + "job_id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "ebay_fee_overview", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itemid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fee_date", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fee_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fee_description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fee_amount", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fee_vat", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fee_memo", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_kategoriespezifisch", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "primsec", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "spec", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "specname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cardinality", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "maxvalues", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "options", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "val", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatory", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_kategorievorschlag", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorschlagcategoryid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorschlagbezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorschlagparentsid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorschlagparentsbezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wahrscheinlichkeit", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_kategoriezustand", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_picture_hosting_service", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_staging_listing_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_staging_listing_variation_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "ebay_staging_listing_id", + "columns": [ + "ebay_staging_listing_id" + ] + }, + { + "Key_name": "ebay_staging_listing_variation_id", + "columns": [ + "ebay_staging_listing_variation_id" + ] + }, + { + "Key_name": "file_id", + "columns": [ + "file_id" + ] + } + ] + }, + { + "name": "ebay_rahmenbedingungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "profilid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "profiltype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "profilname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "profilsummary", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "category", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "defaultwert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_rest_token", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopexport_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "token", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "scope", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "valid_until", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_staging_listing", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "template_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_primary_category_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_primary_store_category_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_secondary_store_category_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_secondary_category_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_shipping_profile_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_return_profile_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_payment_profile_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_private_listing", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_price_suggestion", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_plus", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ean", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "listing_duration", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventory_tracking_method", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "condition_display_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "condition_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "condition_description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "delivery_time", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id" + ] + }, + { + "Key_name": "template_id", + "columns": [ + "template_id" + ] + } + ] + }, + { + "name": "ebay_staging_listing_specific", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_staging_listing_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "property", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "ebay_staging_listing_id", + "columns": [ + "ebay_staging_listing_id" + ] + } + ] + }, + { + "name": "ebay_staging_listing_variant", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_staging_listing_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id" + ] + }, + { + "Key_name": "ebay_staging_listing_id", + "columns": [ + "ebay_staging_listing_id" + ] + } + ] + }, + { + "name": "ebay_staging_listing_variant_specific", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebay_staging_listing_variant_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "property", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_storekategorien", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_template", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "template", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_variantenbilder", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_versand", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "carrier", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "customcarrier", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitmin", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitmax", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "service", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ebay_versand_zuordnung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ebayversand", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "eigenschaften", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hauptkategorie", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterkategorie", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "einkaufspreise", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ab_menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'1'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis_anfrage_vom", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltig_bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeit_standard", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeit_aktuell", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_lieferant", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_lagerlieferant", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnunglieferant", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sicherheitslager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standard", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "apichange", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rahmenvertrag", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rahmenvertrag_von", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rahmenvertrag_bis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rahmenvertrag_menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nichtberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeit_standard_einheit", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferzeit_aktuell_einheit", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "bestellnummer", + "columns": [ + "bestellnummer" + ] + } + ] + }, + { + "name": "emailbackup", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angezeigtername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebeschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "benutzername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "server", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticket", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imap_sentfolder_aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imap_sentfolder", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'inbox.sent'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imap_port", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "993", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imap_type", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "3", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoresponder", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geschaeftsbriefvorlage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoresponderbetreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autorespondertext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailbackup", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "loeschtage", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticketloeschen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticketabgeschlossen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticketqueue", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticketprojekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticketemaileingehend", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_extra", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_ssl", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_port", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "25", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_frommail", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_fromname", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "client_alias", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_authtype", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_authparam", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "smtp_loglevel", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autosresponder_blacklist", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eigenesignatur", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "signatur", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mutex", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "emailbackup_mails", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webmail", + "Type": "int(10)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subject", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sender", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action_html", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "empfang", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anhang", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gelesen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dsgvo", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checksum", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "spam", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "antworten", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "phpobj", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "flattenedparts", + "Type": "longblob", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "attachment", + "Type": "longblob", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "warteschlange", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticketnachricht", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mail_replyto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verfasser_replyto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "webmail", + "columns": [ + "webmail" + ] + }, + { + "Key_name": "gelesen", + "columns": [ + "gelesen" + ] + }, + { + "Key_name": "spam", + "columns": [ + "spam" + ] + }, + { + "Key_name": "geloescht", + "columns": [ + "geloescht" + ] + }, + { + "Key_name": "antworten", + "columns": [ + "antworten" + ] + }, + { + "Key_name": "warteschlange", + "columns": [ + "warteschlange" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "checksum", + "columns": [ + "checksum" + ] + } + ] + }, + { + "name": "epost_files", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "etiketten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xml", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verwendenals", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "labelbreite", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "labelhoehe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "18", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "labelabstand", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "3", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "labeloffsetx", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "labeloffsety", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "6", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "format", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "manuell", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahlprozeile", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "etsy_taxonomy", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "path", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "version", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent_id_external", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "etsy_transaction", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etsy_transaction_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etsy_listing_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etsy_title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etsy_buyer_email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etsy_creation_time", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fetched_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "event", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "event_api", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cachetime", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eventname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retries", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "exportlink_sent", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reg", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mail", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ident", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [] + }, + { + "name": "exportvorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ziel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fields", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fields_where", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzterexport", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiterletzterexport", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exporttrennzeichen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exporterstezeilenummer", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportdatenmaskierung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportzeichensatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filterdatum", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filterprojekt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "apifreigabe", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "extended_approval_protocol", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "requestertype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "requester_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "moneylimit", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "releasetype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "release_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "timestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "extended_approval_responsibility", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "requestertype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "requester_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "moneylimit", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "releasetype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "release_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "fee_reduction", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "price", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "price_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "currency", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "comment", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "doctype", + "columns": [ + "doctype" + ] + }, + { + "Key_name": "doctype_id", + "columns": [ + "doctype_id" + ] + }, + { + "Key_name": "price_type", + "columns": [ + "price_type" + ] + } + ] + }, + { + "name": "file_link", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "label", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_link", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internal_note", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "firma", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "firmendaten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logo", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "briefpapier", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "benutzername", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwort", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "host", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "port", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mailssl", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "signatur", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deviceserials", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lizenz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schluessel", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_mindestbetrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "50.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_letzter_tag", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_erster_tag", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_letzte_berechnung", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_01", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "15.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_02", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "20.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_03", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "28.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_04", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "32.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_05", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "36.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_06", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "40.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_07", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "44.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_08", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "44.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_09", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "44.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_10", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "44.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_11", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "50.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_12", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "54.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_13", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "45.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_14", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "48.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_15", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "60.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_rechnung_sofort_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_rechnung_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_vorkasse_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_lastschrift_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_nachnahme_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_bar_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_paypal_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_amazon_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_kreditkarte_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_ratenzahlung_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "briefpapier2", + "Type": "longblob", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firmenfarbehell", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firmenfarbedunkel", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firmenfarbeganzdunkel", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "navigationfarbe", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "navigationfarbeschrift", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unternavigationfarbe", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unternavigationfarbeschrift", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firmenlogo", + "Type": "longblob", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsnachweis_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provisionsgutschrift_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsnachweis_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provisionsgutschrift_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eu_lieferung_vermerk", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "export_lieferung_vermerk", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_amazon_bestellung_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_billsafe_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_sofortueberweisung_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_secupay_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung_eckarte_de", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "devicekey", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mailanstellesmtp", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "layout_iconbar", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bcc1", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bcc2", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firmenfarbe", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreffszeile", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dokumententext", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "barcode_y", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "265", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_html_template", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressefreifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "proformarechnung_header", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "proformarechnung_footer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "firmendaten_werte", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ1", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ2", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "default_value", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "default_null", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "darf_null", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "formeln", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kennung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formel", + "Type": "varchar(500)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "kennung", + "columns": [ + "kennung" + ] + } + ] + }, + { + "name": "formula_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formula", + "Type": "varchar(500)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "free_article", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "everyone", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "while_stocks_last", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "only_new_customer", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "free_article_included", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "free_article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "free_article_id", + "columns": [ + "free_article_id" + ] + }, + { + "Key_name": "order_id", + "columns": [ + "order_id" + ] + } + ] + }, + { + "name": "geschaeftsbrief_vorlagen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "text", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subjekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "gls", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlage", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hausnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "notiz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "goodspostingdocument", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'angelegt'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "document_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "document_type", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_location_from_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_location_to_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storagesort", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "document_info", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "goodspostingdocument_movement", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "goodspostingdocument_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_stored", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "serial", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "batch", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestbefore", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_location_from_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_location_to_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "goodspostingdocument_position_id", + "columns": [ + "goodspostingdocument_position_id" + ] + } + ] + }, + { + "name": "goodspostingdocument_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "goodspostingdocument_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reason", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "relation_document", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "relation_document_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "relation_document_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_stored", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_location_from_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_location_to_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "goodspostingdocument_id", + "columns": [ + "goodspostingdocument_id" + ] + } + ] + }, + { + "name": "goodspostingdocument_protocol", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "goodspostingdocument_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_by", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "goodspostingdocument_id", + "columns": [ + "goodspostingdocument_id" + ] + } + ] + }, + { + "name": "google_access_token", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "google_account_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "token", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "expires", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "google_account_id", + "columns": [ + "google_account_id" + ] + } + ] + }, + { + "name": "google_account", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "refresh_token", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "identifier", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id" + ] + } + ] + }, + { + "name": "google_account_property", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "google_account_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "varname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "google_account_scope", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "google_account_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "scope", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "google_account_id", + "columns": [ + "google_account_id" + ] + } + ] + }, + { + "name": "googleapi", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "password", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "redirect_uri", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "token", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "token_expires", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "refresh_token", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_auth", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "id_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "googleapi_calendar_sync", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "event_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "foreign_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "owner", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from_google", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "event_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "html_link", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "event_id", + "columns": [ + "event_id" + ] + } + ] + }, + { + "name": "googleapi_user", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "googleapi_id_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auto_sync", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "identifier", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "refresh_token", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "access_token", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "token_expires", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "gpsstechuhr", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "koordinaten", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "gruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kennziffer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonderrabatt_skonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_periode", + "Type": "tinyint(2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_dateiname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_mail", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_mail_betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_mail_text", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dtavariablen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_variante", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus1_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus2_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus3_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus4_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus5_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus6", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus6_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus7", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus7_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus8", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus8_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus9", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus9_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus10", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonus10_ab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "14", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portoartikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portofreiab", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erweiterteoptionen", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zentralerechnung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zentralregulierung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisgruppe", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbandsgruppe", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_periode", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_anzahlpapier", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_permail", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webid", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portofrei_aktiv", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objektname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekttyp", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objektname2", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekttyp2", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objektname3", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekttyp3", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "gruppen_kategorien", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "gruppenmapping", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "gruppe", + "columns": [ + "gruppe" + ] + } + ] + }, + { + "name": "gruppenrechnung_auswahl", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahl", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lieferschein", + "columns": [ + "lieferschein" + ] + }, + { + "Key_name": "auftrag", + "columns": [ + "auftrag" + ] + }, + { + "Key_name": "user", + "columns": [ + "user" + ] + } + ] + }, + { + "name": "gutschrift", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anlegeart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief_eingang", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief_eingang_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchhaltung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsstatus", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ist", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "soll", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtsumme", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_institut", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_blz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_pruefnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_monat", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_jahr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paypalaccount", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei_verband", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "manuell_vorabbezahlt", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "manuell_vorabbezahlt_hinweis", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nicht_umsatzmindernd", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitragcalc", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloes_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision_summe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ihrebestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "realrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinsteuersatz", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornorechnung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deliverythresholdvatid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_artikeltext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuer", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontoberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extsoll", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer_buchhaltung", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_country", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "vertriebid", + "columns": [ + "vertriebid" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + }, + { + "Key_name": "belegnr", + "columns": [ + "belegnr" + ] + }, + { + "Key_name": "versandart", + "columns": [ + "versandart" + ] + } + ] + }, + { + "name": "gutschrift_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent_artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinrabatterlaubt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabattsync", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreiswaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisurspruenglich", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ekwaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelpreis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohnepreis", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuerbetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontosperre", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden_im_pdf", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "gutschrift", + "columns": [ + "gutschrift" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "gutschrift_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "gutschrift", + "columns": [ + "gutschrift" + ] + } + ] + }, + { + "name": "hook", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alias", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parametercount", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + }, + { + "Key_name": "alias", + "columns": [ + "alias" + ] + } + ] + }, + { + "name": "hook_action", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hook_module", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "hook_layout", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dokumenttyp", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "block", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "blocktyp", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "hook_menu", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "module", + "columns": [ + "module" + ] + } + ] + }, + { + "name": "hook_menu_register", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hook_menu", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "module", + "columns": [ + "module" + ] + } + ] + }, + { + "name": "hook_module", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "hook_navigation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "first", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sec", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aftersec", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "hook_register", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hook_action", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "function", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hook", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module_parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "hook", + "columns": [ + "hook" + ] + } + ] + }, + { + "name": "importmasterdata", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "template_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "count_rows", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imported_rows", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filename", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "'created'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id" + ] + }, + { + "Key_name": "template_id", + "columns": [ + "template_id" + ] + } + ] + }, + { + "name": "importvorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ziel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fields", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzterimport", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiterletzterimport", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importtrennzeichen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importerstezeilenummer", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importdatenmaskierung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importzeichensatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "utf8decode", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charset", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'utf8'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "importvorlage_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importvorlage", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tabelle", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datensatz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ersterdatensatz", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "inhalt", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inhalt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurztext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "html", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keywords", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inhaltstyp", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sichtbarbis", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "template", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "finalparse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "navigation", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "inventur", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung_user", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "noprice", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "inventur_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventur", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "inventur", + "columns": [ + "inventur", + "artikel" + ] + } + ] + }, + { + "name": "inventur_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventur", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "inventur", + "columns": [ + "inventur" + ] + } + ] + }, + { + "name": "item_template", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "jqcalendar", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "public", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kalender", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'default'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "farbe", + "Type": "varchar(15)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'3300ff'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kalender_event", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalender", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "allDay", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "color", + "Type": "varchar(7)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'#6f93db'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "public", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresseintern", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtvon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erinnerung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uri", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uid", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "kalender_gruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "farbe", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kalender_gruppen_mitglieder", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalendergruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "benutzergruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "kalendergruppe", + "columns": [ + "kalendergruppe" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "kalender_temp", + "type": "BASE TABLE", + "columns": [ + { + "Field": "tId", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eId", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "szelle", + "Type": "varchar(15)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nanzbelegt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ndatum", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nbelegt", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nanzspalten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nposbelegt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [] + }, + { + "name": "kalender_user", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "event", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userid", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "userid", + "columns": [ + "userid" + ] + }, + { + "Key_name": "event", + "columns": [ + "event" + ] + } + ] + }, + { + "name": "kasse", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahl", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuergruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportiert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportiert_datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_brutto_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_steuer_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_brutto_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_steuer_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_brutto_befreit", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_steuer_befreit", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tagesabschluss", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storniert", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storniert_grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storniert_bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sachkonto", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + } + ] + }, + { + "name": "kasse_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasseid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kommissionierung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "improzess", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(40)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skipconfirmboxscan", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kommissionierung_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgeblendet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kommissionierung_position_ls", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgeblendet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kommissionskonsignationslager_positionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahl", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgelagert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "konfiguration", + "type": "BASE TABLE", + "columns": [ + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "konten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurzbezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstezeile", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datevkonto", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "blz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "swift", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "iban", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastschrift", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hbci", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hbcikennung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keineemail", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibbar", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importletztenzeilenignorieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liveimport", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liveimport_passwort", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liveimport_online", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importtrennzeichen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "codierung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importerstezeilenummer", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importdatenmaskierung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importnullbytes", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "glaeubiger", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "saldo_summieren", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "saldo_betrag", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "saldo_datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfelddatum", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfelddatumformat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfelddatumformatausgabe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldbetrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldbetragformat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldbuchungstext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldbuchungstextformat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldwaehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldwaehrungformat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldhabensollkennung", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldkennunghaben", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldkennungsoll", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importextrahabensoll", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldhaben", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfeldsoll", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cronjobaktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cronjobverbuchen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_import", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1979-01-01 23:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importperiode_in_hours", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "8", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + } + ] + }, + { + "name": "kontoauszuege", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchung", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "originalbuchung", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorgang", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "originalvorgang", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "soll", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "originalsoll", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "haben", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "originalhaben", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gebuehr", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "originalgebuehr", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "originalwaehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fertig", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datev_abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchungstext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gegenkonto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegfeld1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mailbenachrichtigung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pruefsumme", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importgroup", + "Type": "bigint(20)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "diff", + "Type": "decimal(12,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "diffangelegt", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importfehler", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorauswahltyp", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorauswahlparameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klaerfall", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klaergrund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezugtyp", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezugparameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorauswahlvorschlag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "konto", + "columns": [ + "konto" + ] + }, + { + "Key_name": "parent", + "columns": [ + "parent" + ] + }, + { + "Key_name": "gegenkonto", + "columns": [ + "gegenkonto" + ] + } + ] + }, + { + "name": "kontoauszuege_zahlungsausgang", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kontoauszuege", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "kontoauszuege", + "columns": [ + "kontoauszuege" + ] + }, + { + "Key_name": "parameter", + "columns": [ + "parameter" + ] + } + ] + }, + { + "name": "kontoauszuege_zahlungseingang", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kontoauszuege", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "kontoauszuege", + "columns": [ + "kontoauszuege" + ] + }, + { + "Key_name": "parameter", + "columns": [ + "parameter" + ] + } + ] + }, + { + "name": "kontorahmen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sachkonto", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschriftung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kontorahmen_checked", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kontorahmen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kopiebelegempfaenger", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegtyp", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "empfaenger_email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "empfaenger_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahl_ausdrucke", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kostenstelle", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verantwortlicher", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kostenstelle_buchung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchungstext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kostenstellen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "kundevorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "label_automatic", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "label_type_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "selection", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "label_group", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "group_table", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "group_table", + "columns": [ + "group_table" + ] + } + ] + }, + { + "name": "label_reference", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "label_type_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reference_table", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reference_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "label_type_id", + "columns": [ + "label_type_id", + "reference_table", + "reference_id" + ] + }, + { + "Key_name": "label_type_id_2", + "columns": [ + "label_type_id", + "reference_table", + "reference_id" + ] + }, + { + "Key_name": "label_type_id_3", + "columns": [ + "label_type_id", + "reference_table", + "reference_id" + ] + }, + { + "Key_name": "label_type_id_4", + "columns": [ + "label_type_id", + "reference_table", + "reference_id" + ] + }, + { + "Key_name": "label_type_id_5", + "columns": [ + "label_type_id", + "reference_table", + "reference_id" + ] + }, + { + "Key_name": "label_type_id_6", + "columns": [ + "label_type_id", + "reference_table", + "reference_id" + ] + } + ] + }, + { + "name": "label_type", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "label_group_id", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(24)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hexcolor", + "Type": "varchar(7)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'#ffffff'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "type", + "columns": [ + "type" + ] + } + ] + }, + { + "name": "laender", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "iso", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "iso3", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "num_code", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eu", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "lager", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "manuell", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "lager_bewegung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingang", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "referenz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestand", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "permanenteinventur", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketannahme", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_interim", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "lager_charge", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charge", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zwischenlagerid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lager_platz", + "columns": [ + "lager_platz" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "lager_differenzen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingang", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgang", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "berechnet", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestand", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "differenz", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "lager_mindesthaltbarkeitsdatum", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhddatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zwischenlagerid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charge", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lager_platz", + "columns": [ + "lager_platz" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "lager_platz", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurzbezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autolagersperre", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbrauchslager", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sperrlager", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "laenge", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "breite", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hoehe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "poslager", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abckategorie", + "Type": "varchar(1)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "regalart", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rownumber", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "allowproduction", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lager", + "columns": [ + "lager" + ] + } + ] + }, + { + "name": "lager_platz_inhalt", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventur", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz_vpe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "lager_platz", + "columns": [ + "lager_platz" + ] + } + ] + }, + { + "name": "lager_platz_vpe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventur", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "breite", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hoehe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "laenge", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewicht", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "breite2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hoehe2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "laenge2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewicht2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "lager_reserviert", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reserviertdatum", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "posid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse", + "artikel" + ] + }, + { + "Key_name": "objekt", + "columns": [ + "objekt" + ] + } + ] + }, + { + "name": "lager_seriennummern", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zwischenlagerid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charge", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhddatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "lagermindestmengen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumvon", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumbis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "max_menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel", + "lager_platz" + ] + } + ] + }, + { + "name": "lagerstueckliste", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sofortexplodieren", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "lagerwert", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewicht", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "volumen", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventurwert", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis_letzterek", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis_kalkulierterek", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzte_bewegung", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrungkalk", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrungletzt", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurskalk", + "Type": "decimal(19,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kursletzt", + "Type": "decimal(19,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + } + ] + }, + { + "name": "layouttemplate_attachment", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "articlecategory_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "group_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "layouttemplate_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "country", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filename", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "layouttemplate_attachment_items", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "object", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "layouttemplate_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "layoutvorlagen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdf_hintergrund", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "format", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "layoutvorlagen_positionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "layoutvorlage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_typ", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_x", + "Type": "double", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_y", + "Type": "double", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position_parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "breite", + "Type": "double", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hoehe", + "Type": "double", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schrift_art", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeilen_hoehe", + "Type": "double", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "5", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schrift_groesse", + "Type": "double", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schrift_farbe", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schrift_align", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hintergrund_farbe", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rahmen", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rahmen_farbe", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sichtbar", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inhalt_deutsch", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inhalt_englisch", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild_deutsch", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild_englisch", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schrift_fett", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schrift_kursiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schrift_underline", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild_deutsch_typ", + "Type": "varchar(5)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild_englisch_typ", + "Type": "varchar(5)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeichenbegrenzung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeichenbegrenzung_anzahl", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "layoutvorlage", + "columns": [ + "layoutvorlage" + ] + } + ] + }, + { + "name": "lieferadressen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlieferadresse", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "interne_bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hinweis", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "varchar(1)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "lieferantvorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "lieferbedingungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingungen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kennzeichen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "lieferschein", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung_user", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ihrebestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantenretoure", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantenretoureinfo", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferant", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale_eingelagert", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesland", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinerechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_artikeltext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendebezeichnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionskonsignationslager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teillieferungvon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teillieferungnummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kiste", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "auftragid", + "columns": [ + "auftragid" + ] + }, + { + "Key_name": "land", + "columns": [ + "land" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + }, + { + "Key_name": "belegnr", + "columns": [ + "belegnr" + ] + }, + { + "Key_name": "keinerechnung", + "columns": [ + "keinerechnung" + ] + }, + { + "Key_name": "versandart", + "columns": [ + "versandart" + ] + } + ] + }, + { + "name": "lieferschein_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent_artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenlos", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagertext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolleinzelwert", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollgesamtwert", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollwaehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolleinzelgewicht", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollgesamtgewicht", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nve", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstueck", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpemenge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzelstueckmenge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden_im_pdf", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lieferschein", + "columns": [ + "lieferschein" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "auftrag_position_id", + "columns": [ + "auftrag_position_id" + ] + } + ] + }, + { + "name": "lieferschein_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lieferschein", + "columns": [ + "lieferschein" + ] + } + ] + }, + { + "name": "lieferschwelle", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ursprungsland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "empfaengerland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschwelleeur", + "Type": "decimal(16,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatznormal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatzermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatzspezial", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatzspezialursprungsland", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloeskontonormal", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloeskontoermaessigt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloeskontobefreit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ueberschreitungsdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktuellerumsatz", + "Type": "decimal(16,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preiseanpassen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verwenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "jahr", + "Type": "varchar(4)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "use_storage", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "empfaengerland", + "columns": [ + "empfaengerland" + ] + } + ] + }, + { + "name": "lieferschwelle_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "empfaengerland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "empfaengerland", + "columns": [ + "empfaengerland" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "liefertermine_positionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "linkeditor", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(4)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rule", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "replacewith", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "varchar(1)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'1'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "log_time", + "Type": "datetime(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "level", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "class", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "method", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "line", + "Type": "int(11) unsigned", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "origin_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "origin_detail", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dump", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "logdatei", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "befehl", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "statement", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "app", + "Type": "blob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "logfile", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meldung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dump", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktionsname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "magento2_extended_mapping", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopexport_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "magento2_extended_mapping_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "magento2_extended_mapping_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "magento2_extended_mapping_parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "magento2_extended_mapping_visible", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "magento2_extended_mapping_filterable", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "magento2_extended_mapping_searchable", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopexport_id", + "columns": [ + "shopexport_id" + ] + } + ] + }, + { + "name": "mailausgang", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subject", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "body", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "managementboard_liquiditaet", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "enddatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "managementboard_liquiditaet_datum", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mandatory_field", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "field_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "error_message", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "min_length", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "max_length", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatory", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "comparator", + "Type": "varchar(15)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "compareto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "module", + "columns": [ + "module" + ] + }, + { + "Key_name": "action", + "columns": [ + "action" + ] + } + ] + }, + { + "name": "massenbearbeitung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feld", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subjekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "matrix_article_options_translation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "matrix_article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_external_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_external_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "articlenumber_suffix_from", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "articlenumber_suffix_to", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "matrix_article_translation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_external_from", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_external_to", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "matrix_list_view", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "matrix_article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_number", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hash", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension1", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id1", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension2", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension3", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id3", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension4", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id4", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension5", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id5", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension6", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id6", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension7", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id7", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension8", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id8", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension9", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id9", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension10", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id10", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension11", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id11", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension12", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id12", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension13", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id13", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension14", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id14", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension15", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id15", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension16", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id16", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension17", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id17", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension18", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id18", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension19", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id19", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dimension20", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id20", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "matrix_article_id", + "columns": [ + "matrix_article_id", + "hash" + ] + } + ] + }, + { + "name": "matrix_list_view_status", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "matrix_article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "UNI", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "toupdate", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "matrix_article_id", + "columns": [ + "matrix_article_id" + ] + } + ] + }, + { + "name": "matrixprodukt_eigenschaftengruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_ext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstellt", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pflicht", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "matrixprodukt_eigenschaftengruppen_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_ext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstellt", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pflicht", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "oeffentlich", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "matrixprodukt_eigenschaftenoptionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_ext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstellt", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummer", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "articlenumber_suffix", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "matrixprodukt_eigenschaftenoptionen_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "matrixprodukt_eigenschaftenoptionen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_ext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstellt", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummer", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "articlenumber_suffix", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "gruppe", + "columns": [ + "gruppe" + ] + } + ] + }, + { + "name": "matrixprodukt_optionen_zu_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "option_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "option_id", + "columns": [ + "option_id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "maximum_discount", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "discount", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mhd_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingang", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhddatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestand", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_interim", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_movement_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "doctypeid", + "columns": [ + "doctypeid" + ] + }, + { + "Key_name": "doctype", + "columns": [ + "doctype" + ] + } + ] + }, + { + "name": "mitarbeiterzeiterfassung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kuerzel", + "Type": "varchar(50)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dauer", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stechuhrvon", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stechuhrbis", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stechuhrvonid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stechuhrbisid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stechuhrdauer", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchungsart", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mitarbeiterzeiterfassung_einstellungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstellt", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagemo", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagedi", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagemi", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagedo", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagefr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagesa", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlageso", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rundenkommen", + "Type": "varchar(48)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'nicht_runden'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rundengehen", + "Type": "varchar(48)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'nicht_runden'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseabziehen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseab1", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer1", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseab2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseab3", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer3", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "urlaubimjahr", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "minutenprotag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "resturlaub2015", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "resturlaub2016", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "resturlaub2017", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "urlaubimjahr2017", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "urlaubimjahr2018", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardstartzeit", + "Type": "time", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "08:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauserunden", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "5", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "minstartzeit", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseaddieren", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mitarbeiterzeiterfassung_sollstunden", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "minuten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "istminuten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "berechnetminuten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "urlaubminuten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unbezahltminuten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "krankminuten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kuerzel", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardstartzeit", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "minstartzeit", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rundenkommen", + "Type": "varchar(48)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rundengehen", + "Type": "varchar(48)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseabziehen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseab1", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer1", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseab2", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer2", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseab3", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pausedauer3", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "minutenprotag", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauserunden", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stundenberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stunden", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pauseaddieren", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vacation_request_token", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internal_comment", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + } + ] + }, + { + "name": "mlm_abrechnung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_netto", + "Type": "decimal(20,10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahl", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mlm_abrechnung_adresse", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_netto", + "Type": "decimal(20,10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_ist", + "Type": "decimal(20,10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitsteuer", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmabrechnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alteposition", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "neueposition", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erreichteposition", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_strasse", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_ort", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_land", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuernummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt_bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt_datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt_status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mlm_abrechnung_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meldung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mlm_downline", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "downline", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mlm_positionierung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "positionierung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erneuert", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "temporaer", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rueckgaengig", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_abrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "mlm_wartekonto", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoabrechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "module_action", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "module", + "columns": [ + "module", + "action" + ] + } + ] + }, + { + "name": "module_lock", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userid", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "salt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "module_stat", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "view_count", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "created_date", + "columns": [ + "created_date", + "module", + "action" + ] + } + ] + }, + { + "name": "module_stat_detail", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "document_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "visible", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uid", + "Type": "varchar(40)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "start_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "end_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id", + "uid", + "module", + "action", + "document_id", + "visible", + "start_date" + ] + } + ] + }, + { + "name": "module_status", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "navigation_alternative", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "first", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sec", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "newsletter_blacklist", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "newslettercache", + "type": "BASE TABLE", + "columns": [ + { + "Field": "checksum", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "comment", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [] + }, + { + "name": "notification_message", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'default'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tags", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "options_json", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "priority", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id" + ] + } + ] + }, + { + "name": "object_stat", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "object_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "object_parameter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "event_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "event_count", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "created_at", + "columns": [ + "created_at", + "object_type", + "object_parameter", + "event_type" + ] + } + ] + }, + { + "name": "objekt_lager_platz", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lager_platz", + "columns": [ + "lager_platz" + ] + }, + { + "Key_name": "parameter", + "columns": [ + "parameter" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "objekt_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objektid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action_long", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meldung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "offenevorgaenge", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "href", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschriftung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "linkremove", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "onlineshop_transfer_cart", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cart_original", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cart_transfer", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "template", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internet", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "extid", + "columns": [ + "extid" + ] + } + ] + }, + { + "name": "onlineshops_tasks", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "command", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'inactive'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "counter", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastupdate", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "openstreetmap_status", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "paketannahme", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verpackungszustand", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "foto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewicht", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlage", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlageid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beipack_rechnung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beipack_lieferschein", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beipack_anschreiben", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beipack_gesamt", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter_distribution", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "postgrund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "renr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lsnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "paketdistribution", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketannahme", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etiketten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retoure_position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "partner", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ref", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "partner_verkauf", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partner", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "parts_list_alternative", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parts_list_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alternative_article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reason", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "payment_transaction", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "returnorder_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_account_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "currency", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_reason", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_json", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liability_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_transaction_group_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_info", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "returnorder_id", + "columns": [ + "returnorder_id" + ] + }, + { + "Key_name": "liabilitiy_id", + "columns": [ + "liability_id" + ] + }, + { + "Key_name": "payment_transaction_group_id", + "columns": [ + "payment_transaction_group_id" + ] + }, + { + "Key_name": "payment_account_id", + "columns": [ + "payment_account_id" + ] + } + ] + }, + { + "name": "payment_transaction_group", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_account_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "comment", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_by", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "payment_account_id", + "columns": [ + "payment_account_id" + ] + } + ] + }, + { + "name": "payment_transaction_preview", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "returnorder_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liability_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_account_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "selected", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "currency", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_reason", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_info", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id" + ] + }, + { + "Key_name": "returnorder_id", + "columns": [ + "returnorder_id" + ] + } + ] + }, + { + "name": "paymentaccount_import_job", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paymentaccount_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "from", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "to", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'created'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "paymentaccount_id", + "columns": [ + "paymentaccount_id", + "status" + ] + } + ] + }, + { + "name": "paymentaccount_import_scheduler", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paymentaccount_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hour", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "paymentaccount_id", + "columns": [ + "paymentaccount_id", + "hour" + ] + } + ] + }, + { + "name": "paymentimport_lock", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paymentaccount_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "locked_by_type", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "locked_by_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "script_process_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_update", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "paymentaccount_id", + "columns": [ + "paymentaccount_id" + ] + } + ] + }, + { + "name": "pdfarchiv", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checksum", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "table_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "table_name", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeorig", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateiname", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstesoriginal", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinhintergrund", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "table_id", + "columns": [ + "table_id" + ] + }, + { + "Key_name": "schreibschutz", + "columns": [ + "schreibschutz" + ] + } + ] + }, + { + "name": "pdfmirror_md5pool", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checksum", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "table_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "table_name", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstesoriginal", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiv_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "permissionhistory", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "granting_user_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "granting_user_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "receiving_user_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "receiving_user_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "permission", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "timeofpermission", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "pinwand", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "pinwand_user", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pinwand", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "pinwand", + "columns": [ + "pinwand", + "user" + ] + } + ] + }, + { + "name": "pos_abschluss", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bargeld", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "pos_kassierer", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kassenkennung", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inaktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "pos_order", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verkaeufer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wechselgeld", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gegeben", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_diff", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tip", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tip_konto", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + } + ] + }, + { + "name": "pos_rksv", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betragnormal", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betragermaessigt1", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betragermaessigt2", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betragbesonders", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betragnull", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzzaehler", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzzaehler_aes", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "signatur", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "jwscompact", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegart", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "pos_sessions", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kassierer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sesssionbezeichnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "data", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importiert", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "pos_tagesabschluss", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "brutto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + } + ] + }, + { + "name": "pos_zaehlungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur500", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur200", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur100", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur50", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur20", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur10", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur5", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur1", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur05", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur02", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur01", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur005", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur002", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eur001", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamt", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "diff", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "preisanfrage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung_user", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reservierart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auslagerart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'sammel'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumauslieferung", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumbereitstellung", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zusammenfassen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "preisanfrage_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisanfrage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "preisanfrage", + "columns": [ + "preisanfrage" + ] + } + ] + }, + { + "name": "preisanfrage_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisanfrage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "presta_image_association", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xentral_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "presta_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "presta_matrix_association", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "combination_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "produktion", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internet", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angebot", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'angelegt'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_inner", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_institut", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_blz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bank_konto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_pruefnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_monat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kreditkarte_jahr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinporto", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinestornomail", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendelieferadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferland", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferplz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_inhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_station", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_ident", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "packstation_ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autofreigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachbesserung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtsumme", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachlieferung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "porto_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "check_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorkasse_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachnahme_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reserviert_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellt_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "folgebestaetigung", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsmail", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornogrund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornosonstiges", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornorueckzahlung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobetrag", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankinhaber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankkonto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankblz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobankbank", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornogutschrift", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornogutschriftbeleg", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornowareerhalten", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornomanuellebearbeitung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornokommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobezahlt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobezahltam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornobezahltvon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornoabgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornorueckzahlungper", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornowareerhaltenretour", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerausgezahlt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "partnerausgezahltam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kennen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumproduktion", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reservierart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auslagerart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'sammel'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumauslieferung", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumbereitstellung", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterlistenexplodieren", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsschrittetextanzeigen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einlagern_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auslagern_ok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhd", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragmengenanpassen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mengeoriginal", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilproduktionvon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilproduktionnummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parentnummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mengeausschuss", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mengeerfolgreich", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abschlussbemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktionstest", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer_erstellen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterseriennummern_erfassen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumproduktionende", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "auftragid", + "columns": [ + "auftragid" + ] + } + ] + }, + { + "name": "produktion_arbeitsanweisung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzelzeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geplanter_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsplatzgruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + } + ] + }, + { + "name": "produktion_arbeitsanweisung_batch", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion_arbeitsanweisung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erfolgreich", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausschuss", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "batch", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion_arbeitsanweisung", + "columns": [ + "produktion_arbeitsanweisung" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + } + ] + }, + { + "name": "produktion_baugruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "baugruppennr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pruefer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "statusgeprueft", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hauptseriennummerok", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterseriennummerok", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "istausschuss", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + } + ] + }, + { + "name": "produktion_baugruppen_charge", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "baugruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "charge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chargennummer", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhd", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + }, + { + "Key_name": "baugruppe", + "columns": [ + "baugruppe" + ] + }, + { + "Key_name": "charge", + "columns": [ + "charge" + ] + } + ] + }, + { + "name": "produktion_charge", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chargennummer", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhd", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahl", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgelagert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + } + ] + }, + { + "name": "produktion_etiketten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etikett", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + } + ] + }, + { + "name": "produktion_funktionsprotokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bild", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'frage'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "widget", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klassen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_textfeld1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_textfeld2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "textfeld1", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "textfeld2", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "config", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "weiter_bei_fehler", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + } + ] + }, + { + "name": "produktion_funktionsprotokoll_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "baugruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktionsprotokoll", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "textfeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "textfeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingabejson", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingabehtml", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgabejson", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgabehtml", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ok", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fehler", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inaktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "funktionsprotokoll", + "columns": [ + "funktionsprotokoll" + ] + } + ] + }, + { + "name": "produktion_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert_menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachbestelltexternereinkauf", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beistellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "externeproduktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stuecklistestufe", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "explodiert_parent", + "columns": [ + "explodiert_parent" + ] + } + ] + }, + { + "name": "produktion_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "produktion", + "columns": [ + "produktion" + ] + } + ] + }, + { + "name": "produktion_unterseriennummern", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "baugruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inaktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "baugruppe", + "columns": [ + "baugruppe" + ] + } + ] + }, + { + "name": "produktionslager", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_pos", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produzent", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "proformarechnung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aborechnung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anlegeart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief_eingang", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief_eingang_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchhaltung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsstatus", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ist", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "soll", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skonto_gegeben", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_mahnwesen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen_datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen_gesperrt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen_internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datev_abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doppel", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_rz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_periode", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_done", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_anzahlverband", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_anzahlkunde", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_mailverband", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_mailkunde", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei_verband", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitragcalc", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloes_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesenfestsetzen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision_summe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ihrebestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "realrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzugsdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "forderungsverlust_datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "forderungsverlust_betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinsteuersatz", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "systemfreitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendebezeichnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt_am", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendelieferadresse", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferland", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferplz", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefertitel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefergln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zollinformation", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungadresse", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollinformationen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungland", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungplz", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verzollungtitel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuer", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "proformarechnung_lieferschein", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "proformarechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "proformarechnung_position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "proformarechnung_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "proformarechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent_artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinrabatterlaubt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmdirektpraemie", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabattsync", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelpreis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "proformarechnung", + "columns": [ + "proformarechnung" + ] + } + ] + }, + { + "name": "proformarechnung_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "proformarechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "projekt", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abkuerzung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verantwortlicher", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "farbe", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checkok", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portocheck", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "automailrechnung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checkname", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungserinnerung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsmailbedinungen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "folgebestaetigung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornomail", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundenfreigabe_loeschen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autobestellung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "speziallieferschein", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinbriefpapier", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "speziallieferscheinbeschriftung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eigenesteuer", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "druckerlogistikstufe1", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "druckerlogistikstufe2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "selbstabholermail", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eanherstellerscan", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reservierung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verkaufszahlendiagram", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "oeffentlich", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopzwangsprojekt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kunde", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dpdkundennr", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhlkundennr", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhlformat", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dpdformat", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketmarke_einzeldatei", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dpdpfad", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhlpfad", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "upspfad", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhlintodb", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_enabled", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_testmode", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_user", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_signature", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_ekp", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_api_user", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_api_password", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_company_name", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_street_name", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_street_number", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_zip", + "Type": "varchar(12)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_country", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'germany'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_city", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_email", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_phone", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_internet", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_contact_person", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_account_owner", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_account_number", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_bank_code", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_bank_name", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_iban", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_bic", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_WeightInKG", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "5", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_LengthInCM", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_WidthInCM", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_HeightInCM", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_PackageType", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'pl'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnungsart", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierverfahren", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wechselaufeinstufig", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektuebergreifendkommisionieren", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "absendeadresse", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "absendename", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "absendesignatur", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckrechnung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckversandbestaetigung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "automailversandbestaetigung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodrucklieferschein", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "automaillieferschein", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckstorno", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckanhang", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "automailanhang", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckerrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckerlieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckeranhang", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckrechnungmenge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodrucklieferscheinmenge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eigenernummernkreis", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_angebot", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_auftrag", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_rechnung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_lieferschein", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_arbeitsnachweis", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_reisekosten", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_bestellung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_gutschrift", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_kundennummer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_lieferantennummer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_mitarbeiternummer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_waren", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_produktion", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_sonstiges", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_anfrage", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_artikelnummer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtstunden_max", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhlzahlungmandant", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhlretourenschein", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'de'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etiketten_positionen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etiketten_drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etiketten_art", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummernerfassen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandzweigeteilt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachnahmecheck", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_lieferschein_anlegen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_lagerprozess", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_belegausgabe", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_preisgruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_text_bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'interne bemerkung'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_text_freitext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'text auf beleg'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_lieferschein_doppel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_lager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_laufkundschaft", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rabatt_artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_bar", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_ec", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_kreditkarte", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_ueberweisung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_paypal", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_extra_keinbeleg", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_extra_rechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_extra_quittung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_extra_gutschein", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_extra_rabatt_prozent", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_extra_rabatt_euro", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_adresse_erweitert", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlungsauswahl_zwang", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_button_entnahme", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_button_trinkgeld", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_vorauswahl_anrede", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'herr'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_erweiterte_lagerabfrage", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filialadresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandprojektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "differenz_auslieferung_tage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "2", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autostuecklistenanpassung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dpdendung", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'.csv'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dhlendung", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'.csv'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking_substr_start", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "8", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking_remove_kundennummer", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking_substr_length", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_apiurl_prefix", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_apiurl_postfix", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_apiurl_user", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_username", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_password", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_ax4nr", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_name1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_name2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_abteilung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_strasse1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_strasse2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_hausnummer", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_plz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_ort", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_land", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_standardgewicht", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_format", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "go_ausgabe", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_exportgrund", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billsafe_merchantId", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billsafe_merchantLicenseSandbox", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billsafe_merchantLicenseLive", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billsafe_applicationSignature", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "billsafe_applicationVersion", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "secupay_apikey", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "secupay_url", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "secupay_demo", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'gestartet'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bondrucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bondrucker_aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bondrucker_qrcode", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bon_zeile1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'xentral store'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bon_zeile2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bon_zeile3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_bar_bezahlt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_ec_bezahlt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_kreditkarte_bezahlt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_ueberweisung_bezahlt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_zahlung_paypal_bezahlt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_quittung_rechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_button_einlage", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_button_schublade", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktionauftragautomatischfreigeben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandlagerplatzanzeigen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandartikelnameausstammdaten", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektlager", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracing_substr_length", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_partnerid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'01'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_retourenlabel", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_retourenaccount", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "absendegrussformel", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckrechnungdoppel", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_partnerid_welt", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_kalkulation", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_preisanfrage", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_proformarechnung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_verbindlichkeit", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen_abweichender_versender", + "Type": "varchar(40)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerplatzlieferscheinausblenden", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etiketten_sort", + "Type": "tinyint(2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eanherstellerscanerlauben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chargenerfassen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhderfassen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckrechnungstufe1", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckrechnungstufe1menge", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckrechnungstufe1mail", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckkommissionierscheinstufe1", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruckkommissionierscheinstufe1menge", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bondrucker_freifeld", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_bondrucker_anzahl", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_tool", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_kartenleser", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_karteseriennummer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_kartepin", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_aeskey", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_publiczertifikat", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_publiczertifikatkette", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_rksv_kassenid", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_gutschrift", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungerzeugen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_artikeltexteuebernehmen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_anzeigenetto", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_zwischenspeichern", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_button_belegladen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_button_storno", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_kundenalleprojekte", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_artikelnurausprojekt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "allechargenmhd", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuerbelege", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_grosseansicht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisberechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuernummer", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketmarkeautodrucken", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderpicking_sort", + "Type": "varchar(26)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deactivateautoshipping", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_sumarticles", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "manualtracking", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweiselieferant", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_api_user", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_api_password", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_api_key", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_accountnumber", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_company_name", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_street_name", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_street_number", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_zip", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_country", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_city", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_email", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_phone", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_internet", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_contact_person", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_WeightInKG", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_LengthInCM", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_WidthInCM", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_HeightInCM", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_ausgabe", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'gif'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_package_code", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'02'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_package_description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'customer supplied'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_service_code", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'11'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ups_service_description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'ups standard'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_html_template", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "druckanhang", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mailanhang", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_retoure", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_goodspostingdocument", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_disable_single_entries", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_disable_single_day", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_disable_counting_protocol", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos_disable_signature", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_normal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_normal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_ermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_ermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_nichtsteuerbar", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_nichtsteuerbar", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_innergemeinschaftlich", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_innergemeinschaftlich", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_eunormal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_eunormal", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_euermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_euermaessigt", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_erloese_inland_export", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuer_aufwendung_inland_import", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "create_proformainvoice", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "print_proformainvoice", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "proformainvoice_amount", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuerbelegebestellung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autobestbeforebatch", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "allwaysautobestbeforebatch", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierlauflieferschein", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intraship_exportdrucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "multiorderpicking", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlagerproduktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klarna_merchantid", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klarna_sharedsecret", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nurlagerartikel", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketmarkedrucken", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinedrucken", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinedruckenmenge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragdrucken", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragdruckenmenge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "druckennachtracking", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportdruckrechnungstufe1", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportdruckrechnungstufe1menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportdruckrechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportdruckrechnungmenge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierlistestufe1", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierlistestufe1menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fremdnummerscanerlauben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zvt100url", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zvt100port", + "Type": "varchar(5)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "production_show_only_needed_storages", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion_extra_seiten", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_button_trinkgeldeckredit", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_autologout", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_autologout_abschluss", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kasse_print_qr", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "next_receiptdocument", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "taxfromdoctypesettings", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "abkuerzung", + "columns": [ + "abkuerzung" + ] + }, + { + "Key_name": "kunde", + "columns": [ + "kunde" + ] + } + ] + }, + { + "name": "projekt_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geplant", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_BE", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_PR", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_AN", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_AB", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_LS", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_RE", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_GS", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_WE", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ek_geplant", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vk_geplant", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalkulationbasis", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'prostueck'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nr", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_WA", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_PF", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cache_PRO", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastcheck", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_cache", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "showinmonitoring", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "projekt_inventar", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meldung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dump", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktionsname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "argumente", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "provision_regeln", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "absolut", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegtyp", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "gruppe", + "columns": [ + "gruppe" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "provisionenartikel_abrechnungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumvon", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumbis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegt_von", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dynamisch", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "berechnungstyp", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "userid", + "columns": [ + "userid" + ] + } + ] + }, + { + "name": "provisionenartikel_abrechnungen_provisionen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelkategorie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatznetto", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provisionbetrag", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebsleiteradresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebsleiterprovision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebsleiterprovisionbetrag", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "provisionenartikel_provision", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltigvon", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltigbis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provisiontyp", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kunde", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "prozessstarter", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bedingung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startzeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzteausfuerhung", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "periode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'1440'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mutex", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mutexcounter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art_filter", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status_zeit", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "recommended_period", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "parameter", + "columns": [ + "parameter" + ] + } + ] + }, + { + "name": "pseudostorage_shop", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formula", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "real_article_mapping", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ignore", + "Type": "int(2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ext_sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ext_ean", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ext_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ext_item_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ext_unit_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "real_kategoriespezifisch", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mandatory", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "specwert", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "specbezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "specname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "multipleallowed", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typevalue", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "real_kategorievorschlag", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorschlagid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorschlagbezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorschlagparentid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "level", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferkategorie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "real_versandgruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "receiptdocument", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "creditnote_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parcel_receipt_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredit_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status_qs", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_by", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "document_number", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "supplier_order_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "return_order_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredit_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "receiptdocument_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "receiptdocument_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "log", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_by", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "receiptdocument_id", + "columns": [ + "receiptdocument_id" + ] + } + ] + }, + { + "name": "receiptdocument_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "receiptdocument_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount_good", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount_bad", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "receiptdocument_id", + "columns": [ + "receiptdocument_id" + ] + } + ] + }, + { + "name": "rechnung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aborechnung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anlegeart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief_eingang", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustbrief_eingang_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchhaltung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsstatus", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ist", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "soll", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skonto_gegeben", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_mahnwesen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen_datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen_gesperrt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesen_internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datev_abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doppel", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_rz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_periode", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_done", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_anzahlverband", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_anzahlkunde", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_mailverband", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autodruck_mailkunde", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei_verband", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitragcalc", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloes_netto", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mahnwesenfestsetzen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision_summe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ihrebestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "realrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzugsdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "forderungsverlust_datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "forderungsverlust_betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinsteuersatz", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartnerid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "systemfreitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendebezeichnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt_am", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesland", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deliverythresholdvatid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_artikeltext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzeigesteuer", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontoberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extsoll", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilstorno", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer_buchhaltung", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_country", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "auftragid", + "columns": [ + "auftragid" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + }, + { + "Key_name": "belegnr", + "columns": [ + "belegnr" + ] + }, + { + "Key_name": "soll", + "columns": [ + "soll" + ] + }, + { + "Key_name": "zahlungsstatus", + "columns": [ + "zahlungsstatus" + ] + }, + { + "Key_name": "provdatum", + "columns": [ + "provdatum" + ] + }, + { + "Key_name": "lieferschein", + "columns": [ + "lieferschein" + ] + }, + { + "Key_name": "versandart", + "columns": [ + "versandart" + ] + } + ] + }, + { + "name": "rechnung_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent_artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "punkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bonuspunkte", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlmdirektpraemie", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mlm_abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinrabatterlaubt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundrabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabattsync", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloese", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloesefestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreiswaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisurspruenglich", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaufspreisid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ekwaehrung", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelmenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "formelpreis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohnepreis", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobetrag_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuerbetrag", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontosperre", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden_im_pdf", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_netto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_einzeln", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatz_brutto_gesamt", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "rechnung", + "columns": [ + "rechnung" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "auftrag_position_id", + "columns": [ + "auftrag_position_id" + ] + } + ] + }, + { + "name": "rechnung_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "rechnung", + "columns": [ + "rechnung" + ] + } + ] + }, + { + "name": "reisekosten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prefix", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reisekostenart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung_user", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_normal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "19.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_zwischen", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_ermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_starkermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz_dienstleistung", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "7.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anlass", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von_zeit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis_zeit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "reisekosten_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reisekosten", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reisekostenart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verrechnungsart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "float", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitspaket", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt_wie", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uststeuersatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keineust", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnen", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet_objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet_parameter", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportiert", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "exportiert_am", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "reisekosten", + "columns": [ + "reisekosten" + ] + } + ] + }, + { + "name": "reisekosten_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reisekosten", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "reisekosten", + "columns": [ + "reisekosten" + ] + } + ] + }, + { + "name": "reisekostenart", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "report", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sql_query", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "remark", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "category", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "readonly", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_delimiter", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_enclosure", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "report_column", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "key_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "width", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alignment", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sum", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sequence", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sorting", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "format_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "format_statement", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "report_favorite", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "report_parameter", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "varname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "displayname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "default_value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "options", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "control_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "editable", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variable_extern", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "report_share", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_public", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_axislabel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_x_column", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "data_columns", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_group_column", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_dateformat", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_interval_value", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_interval_mode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_public", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_pdf_enabled", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_csv_enabled", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_xls_enabled", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menu_public", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menu_doctype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menu_label", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menu_format", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tab_public", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tab_module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tab_action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tab_label", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tab_position", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "report_transfer", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_active", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_host", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_port", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_user", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_password", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_interval_mode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_interval_value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_daytime", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_format", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_filename", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ftp_last_transfer", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_active", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_recipient", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_subject", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_interval_mode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_interval_value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_daytime", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_format", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_filename", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_last_transfer", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url_format", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url_begin", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url_end", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url_address", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url_token", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api_active", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api_account_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api_format", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "report_user", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart_enabled", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_enabled", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menu_enabled", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tab_enabled", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "retoure", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendelieferadresse", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "liefername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferunterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferstrasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferadresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferplz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferland", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_durch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung_user", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_befreit", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ihrebestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anschreiben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "usereditid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "useredittimestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantenretoure", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantenretoureinfo", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferant", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviert", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pdfarchiviertversion", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'firma'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_briefpapier", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartnerid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projektfiliale_eingelagert", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuarchivieren", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionierung", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesland", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiterid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinerechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ohne_artikeltext", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abweichendebezeichnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bodyzusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferbedingung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "titel", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardlager", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommissionskonsignationslager", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teillieferungvon", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teillieferungnummer", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fortschritt", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_ok", + "Type": "tinyint(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "replacementorder_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + }, + { + "Key_name": "versandart", + "columns": [ + "versandart" + ] + } + ] + }, + { + "name": "retoure_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retoure", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(10)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geliefert", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent_artikel", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zolltarifnummer", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "herkunftsland", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerkunde", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld6", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld7", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld8", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld9", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld10", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld11", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld12", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld13", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld14", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld15", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld16", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld17", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld18", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld19", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld20", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld21", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld22", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld23", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld24", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld25", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld26", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld27", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld28", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld29", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld30", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld31", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld32", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld33", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld34", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld35", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld36", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld37", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld38", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld39", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld40", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatumkw", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenlos", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagertext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "explodiert_parent", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden_im_pdf", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grundbeschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktionbeschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge_eingang", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge_gutschrift", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "default_storagelocation", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "retoure", + "columns": [ + "retoure" + ] + } + ] + }, + { + "name": "retoure_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retoure", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "retoure", + "columns": [ + "retoure" + ] + } + ] + }, + { + "name": "returnorder_quantity", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "delivery_note_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "serialnumber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "batch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestbefore", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "delivery_note_id", + "columns": [ + "delivery_note_id" + ] + } + ] + }, + { + "name": "rma", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(222)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterabteilung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresszusatz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefax", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellbestaetigung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszielskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungszieltageskonto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellbestaetigungsdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einkaeufer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "rma_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wareneingang", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pos", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wunsch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "techniker", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchhaltung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "rma_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rma_artikel", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'offen'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzter_kommentar", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "rma_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rma_artikel", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rma_position", + "Type": "int(15)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "link", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "interngrund", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "externgrund", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "rma_vorlagen_grund", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rmakategorie", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "default_storagelocation", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "rmakategorie", + "columns": [ + "rmakategorie" + ] + } + ] + }, + { + "name": "rma_vorlagen_kategorien", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "rohstoffe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rohstoffvonartikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerwert", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "referenz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'material'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "sammelrechnung_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein_position_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahl", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lieferschein_position_id", + "columns": [ + "lieferschein_position_id" + ] + }, + { + "Key_name": "auftrag_position_id", + "columns": [ + "auftrag_position_id" + ] + }, + { + "Key_name": "rechnung", + "columns": [ + "rechnung" + ] + } + ] + }, + { + "name": "scheck_checked", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "scheck_druck", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "layout", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "konto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "scheck_gutschrift", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "druck", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "seriennummern", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferung", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferscheinpos", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "seriennummern_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingang", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestbeforedate", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "batch", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_movement_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "service", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuweisen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'niedrig'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingangart", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erledigenbis", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_html", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "antwortankunden", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegtvonuser", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'angelegt'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seriennummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "antwortpermail", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlte_zusatzleistung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe_datum", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe_bearbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dauer_geplant", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bereich", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld3", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld4", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld5", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "version", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "antwortankundenempfaenger", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "antwortankundenkopie", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "antwortankundenblindkopie", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "antwortankundenbetreff", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "nummer", + "columns": [ + "nummer" + ] + } + ] + }, + { + "name": "sevensenders_shipment", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "carrier", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipment_id", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipment_reference", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "token", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "challenge", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cms", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelporto", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnachnahme", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelimport", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelimporteinzeln", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "demomodus", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerexport", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelexport", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "multiprojekt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnachnahme_extraartikel", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorabbezahltmarkieren_ohnevorkasse_bar", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzelsync", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "utf8codierung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragabgleich", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rabatteportofestschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummernummerkreis", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "holealle", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ab_nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "direktimport", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ust_ok", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzgleichzeitig", + "Type": "int(15)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumvon", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumbis", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tmpdatumvon", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tmpdatumbis", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "holeallestati", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cronjobaktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummersyncstatusaendern", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweisenmapping", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandartenmapping", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummeruebernehmen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelbeschreibungauswawision", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelbeschreibungenuebernehmen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stuecklisteergaenzen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressupdate", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundenurvonprojekt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "add_debitorennummer", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "debitorennummer", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sendonlywithtracking", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api_account_id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api_account_token", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autosendarticle", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autosendarticle_last", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopbilderuebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressennichtueberschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftraegeaufspaeter", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversandbeikommentardeaktivieren", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikeltexteuebernehmen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelportoermaessigt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelrabatt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelrabattsteuer", + "Type": "decimal(4,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "-1.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "positionsteuersaetzeerlauben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "json", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelbezeichnungauswawision", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angeboteanlegen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversandoption", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'standard'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelnummerbeimanlegenausshop", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shoptyp", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "modulename", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einstellungen_json", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "maxmanuell", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisgruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "variantenuebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "crosssellingartikeluebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "staffelpreiseuebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagergrundlage", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "portoartikelanlegen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nurneueartikel", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startdate", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ueberschreibe_lagerkorrekturwert", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerkorrekturwert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertrieb", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eigenschaftenuebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorienuebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornoabgleich", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nurpreise", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuerfreilieferlandexport", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutscheineuebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtbetragfestsetzen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastschriftdatenueberschreiben", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gesamtbetragfestsetzendifferenz", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_adressenuebertragen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_archiv", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahl", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erfolgreich", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzteabgeholtenummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumvon", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datumbis", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummervon", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummerbis", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abschliessen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stornierteabholen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_erzeugen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung_bezahlt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "donotimport", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop", + "columns": [ + "shop" + ] + } + ] + }, + { + "name": "shopexport_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopid", + "columns": [ + "shopid", + "artikel" + ] + } + ] + }, + { + "name": "shopexport_artikeluebertragen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "check_nr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_artikeluebertragen_check", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_change_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "username", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "diff", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "creation_timestamp", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plaindiff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_freifelder", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld_wawi", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freifeld_shop", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatedby", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_getarticles", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop", + "columns": [ + "shop" + ] + } + ] + }, + { + "name": "shopexport_kampange", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "banner", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterbanner", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "link", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "views", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "clicks", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_kategorien", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kategorie", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extsort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extparent", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatedby", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop", + "columns": [ + "shop" + ] + }, + { + "Key_name": "kategorie", + "columns": [ + "kategorie" + ] + } + ] + }, + { + "name": "shopexport_kundengruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "apply_to_new_customers", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'mitglied'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extgruppename", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatedby", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter4", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopid", + "columns": [ + "shopid", + "typ", + "parameter3", + "parameter4" + ] + } + ] + }, + { + "name": "shopexport_mapping", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tabelle", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intid2", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop", + "columns": [ + "shop" + ] + }, + { + "Key_name": "tabelle", + "columns": [ + "tabelle" + ] + }, + { + "Key_name": "intid", + "columns": [ + "intid" + ] + } + ] + }, + { + "name": "shopexport_sprachen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatedby", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_status", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikelexport", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "befehl", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_subshop", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subshopkennung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatedby", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_versandarten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart_shop", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart_wawision", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart_ausgehend", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatedby", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fastlane", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopexport_voucher_cache", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "voucher_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "voucher_id", + "columns": [ + "voucher_id" + ] + } + ] + }, + { + "name": "shopexport_zahlungsstatus", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop", + "columns": [ + "shop" + ] + }, + { + "Key_name": "auftrag", + "columns": [ + "auftrag" + ] + } + ] + }, + { + "name": "shopexport_zahlweisen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlweise_shop", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlweise_wawision", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorabbezahltmarkieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoversand", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinerechnung", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatedby", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fastlane", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopimport_amazon_aufrufe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktion", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "daten", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "maxpuffer", + "Type": "int(3)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "timeout", + "Type": "int(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgefuehrt", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preismenge", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "apifunktion", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feedid", + "Type": "varchar(50)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "relatedtoid", + "Type": "int(4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fehlertext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "json_encoded", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopimport_amazon_gotorders", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(30)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderitemid", + "Type": "varchar(30)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nextordertoken", + "Type": "varchar(30)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nextitemtoken", + "Type": "varchar(30)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sent", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isprime", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isprimenextday", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imported", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isfba", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "orderid", + "columns": [ + "orderid" + ] + } + ] + }, + { + "name": "shopimport_amazon_throttling", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "apifunktion", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(50)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "max", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stunde", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "restore", + "Type": "float", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zaehlermax", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zaehlerstunde", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ersteraufruf", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzteraufruf", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "maxpuffer", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "minpuffer", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "timeout", + "Type": "int(4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zaehleraufrufe", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopid", + "columns": [ + "shopid" + ] + } + ] + }, + { + "name": "shopimport_auftraege", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sessionid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "warenkorb", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imported", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "trash", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "jsonencoded", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopimport_checkorder", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ext_order", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fetch_counter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'unpaid'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "date_created", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "date_last_modified", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_attachedoffers", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_fba", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "merchantgroup", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "condition", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'new'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "currency", + "Type": "varchar(4)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status_article", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status_storage", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status_price", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status_flat", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "price", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feed_submission_id", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feed_submission_id_price", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feed_submission_id_storage", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feed_submission_id_flat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "error_code", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "error_message", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id" + ] + }, + { + "Key_name": "sku", + "columns": [ + "sku" + ] + }, + { + "Key_name": "asin", + "columns": [ + "asin" + ] + } + ] + }, + { + "name": "shopimporter_amazon_browsetree", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "browsenodeid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "browseNodename", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "browseNodestorecontextname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "browsepathbyid", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "browsepathbyname", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "haschildren", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "producttypedefinitions", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "refinementsinformationcount", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deprecated", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "browsenodeid", + "columns": [ + "browsenodeid" + ] + }, + { + "Key_name": "parent_id", + "columns": [ + "parent_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_categorie", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "root_node", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "node_de", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "node_uk", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "node_fr", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "node_it", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "node_es", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + }, + { + "Key_name": "node_de", + "columns": [ + "node_de" + ] + } + ] + }, + { + "name": "shopimporter_amazon_creditnotes_adjustmentid", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "creditnote_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "invoice_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adjustmentid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "creditnote_id", + "columns": [ + "creditnote_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_feedsubmission", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feed_submission_id", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feed_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feed_processing_status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "started_processing_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "submitted_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "completed_processing_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastcheck", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id", + "feed_submission_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_flatfile_article", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "flatfile_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "feedsubmissionid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "error_message", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "all_required_ok", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_flatfile_article_image", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopimporter_amazon_flatfile_article_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopimporter_amazon_flatfile_article_id", + "columns": [ + "shopimporter_amazon_flatfile_article_id" + ] + }, + { + "Key_name": "file_id", + "columns": [ + "file_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_flatfile_article_value", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopimporter_amazon_flatfile_article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shopimporter_amazon_flatfile_article_id", + "columns": [ + "shopimporter_amazon_flatfile_article_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_flatfiledefinition", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "country", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "definitions_json", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "requirements_json", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "allowed_values_json", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "shopimporter_amazon_flatfilefields", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fieldname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "fieldname", + "columns": [ + "fieldname" + ] + } + ] + }, + { + "name": "shopimporter_amazon_invoice_address", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(19)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "addressfieldone", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "addressfieldtwo", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "addressfieldthree", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "city", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "region", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "postalcode", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "countrycode", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "phonenumber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "orderid", + "columns": [ + "orderid" + ] + } + ] + }, + { + "name": "shopimporter_amazon_invoice_upload", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "int_order_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "invoice_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "credit_note_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(19)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shippingid", + "Type": "varchar(19)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sent_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "error_code", + "Type": "varchar(5)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "error_message", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "invoice_number", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "total_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "total_vat_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "transaction_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "count_sent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "orderid", + "columns": [ + "orderid" + ] + } + ] + }, + { + "name": "shopimporter_amazon_listing", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace_request", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request_date_listing", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request_date_listing_inactive", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "seller_sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_name", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "listing_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "price", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "open_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "image_url", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_is_marketplace", + "Type": "varchar(1)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "product_id_type", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zshop_shipping_fee", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_note", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "item_condition", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zshop_category1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zshop_browse_path", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zshop_storefron_feature", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin2", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin3", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "will_ship_internationally", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "expedited_shipping", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zshop_boldface", + "Type": "varchar(1)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "product_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bid_for_fetatured_placement", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "add_delete", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pending_quantity", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fulfillment_channel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "business_price", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_price_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_lower_bound1", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_price1", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_lower_bound2", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_price2", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_lower_bound3", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_price3", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_lower_bound4", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_price4", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_lower_bound5", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quantity_price5", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "merchant_shipping_group", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_fba", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "recommended_article_id", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id" + ] + }, + { + "Key_name": "seller_sku", + "columns": [ + "seller_sku" + ] + } + ] + }, + { + "name": "shopimporter_amazon_merchantgroup", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "groupname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_order_status", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(19)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id", + "orderid", + "status" + ] + } + ] + }, + { + "name": "shopimporter_amazon_orderadjustment", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "payment_transaction_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "submitfeedid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + } + ] + }, + { + "name": "shopimporter_amazon_orderinfo", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "orderid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isprime", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "isfba", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "trackingsent", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "orderid", + "columns": [ + "orderid" + ] + } + ] + }, + { + "name": "shopimporter_amazon_recommendation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "recommendationtype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "itemname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "defectgroup", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "recommendationid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "recommendationreason", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "defectattribute", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "recommendationid", + "columns": [ + "recommendationid" + ] + } + ] + }, + { + "name": "shopimporter_amazon_report_scheduler", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request_period", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace_request", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "report_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_reportrequestid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_generatedreportid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_report_status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "imported", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id", + "report_type", + "marketplace_request" + ] + } + ] + }, + { + "name": "shopimporter_amazon_requestinfo", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shopimporter_amazon_aufrufe_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "error", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id", + "type" + ] + }, + { + "Key_name": "shopimporter_amazon_aufrufe_id", + "columns": [ + "shopimporter_amazon_aufrufe_id" + ] + }, + { + "Key_name": "status", + "columns": [ + "status" + ] + } + ] + }, + { + "name": "shopimporter_amazon_service_status", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + }, + { + "Key_name": "updated_at", + "columns": [ + "updated_at" + ] + } + ] + }, + { + "name": "shopimporter_amazon_small_and_light", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace_request", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "request_date", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sku", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fnsku", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "asin", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "protuct_name", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "enrolled_in_snl", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "marketplace", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "your_snl_price", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventory_in_snl_fc", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inventory_in_non_snl_fc", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "shopimporter_amazon_token", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "token", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id", + "type" + ] + } + ] + }, + { + "name": "shopimporter_amazon_xsd_enumerations", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "direct_parent", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "element_name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "element_value", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "enumeration_type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "restriction", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "file", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "enumeration_type", + "columns": [ + "enumeration_type" + ] + }, + { + "Key_name": "element_name", + "columns": [ + "element_name" + ] + } + ] + }, + { + "name": "shopimporter_shopify_auftraege", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "extid", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "transaction_id", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop", + "columns": [ + "shop" + ] + }, + { + "Key_name": "extid", + "columns": [ + "extid" + ] + } + ] + }, + { + "name": "shopnavigation", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plugin", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "pluginparameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "target", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "singleshipment_order", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deliverynote_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "date", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "trackingnumber", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quality", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "snapaddy_address", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "contact_list", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firstName", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastName", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "phone", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "city", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "website", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zip", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xentral_id", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "snap_created", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "snap_hash", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "snap_hash", + "columns": [ + "snap_hash" + ] + } + ] + }, + { + "name": "snapaddy_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lvl", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "msg", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "sprachen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "iso", + "Type": "varchar(2)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung_de", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung_en", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alias", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "spryker_data", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internal_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reference", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "time_of_validity", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "spryker_online_number", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_reference", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_shipment", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_number", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "order_reference", + "columns": [ + "order_reference" + ] + }, + { + "Key_name": "order_shipment", + "columns": [ + "order_shipment" + ] + } + ] + }, + { + "name": "spryker_order_reference", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shop_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_reference", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shipment_id", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "order_item_reference", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "shop_id", + "columns": [ + "shop_id" + ] + } + ] + }, + { + "name": "sqlcache", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abfrage", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ergebnis", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shortcode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sekunden", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "120", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "standardpackage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "width", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "height", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "length", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xvp", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "color", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "stechuhr", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebernommen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiterzeiterfassungid", + "Type": "int(15)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "datum", + "columns": [ + "datum" + ] + } + ] + }, + { + "name": "stechuhrdevice", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reduziert", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "code", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "IP", + "Type": "int(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "submask", + "Type": "int(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "steuersaetze", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "satz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "valid_from", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "valid_to", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "country_code", + "Type": "varchar(8)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "set_data", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "stock_replenishment_list", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "article_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_area_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "amount_to_relocate", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_min_amount", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "storage_max_amount", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "is_replenishment", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "needed", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inorder", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "article_id", + "columns": [ + "article_id", + "is_replenishment" + ] + } + ] + }, + { + "name": "stueckliste", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "referenz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "place", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "layer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stuecklistevonartikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bauform", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alternative", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zachse", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xpos", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ypos", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "stuecklistevonartikel", + "columns": [ + "stuecklistevonartikel" + ] + } + ] + }, + { + "name": "stundensatz", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "satz", + "Type": "float", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "supersearch_index_group", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(38)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_full_update", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_diff_update", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "supersearch_index_item", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "index_name", + "Type": "varchar(16)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "index_id", + "Type": "varchar(38)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subtitle", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "additional_infos", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "link", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "search_words", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "outdated", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "index_identifier", + "columns": [ + "index_name", + "index_id" + ] + }, + { + "Key_name": "project_id", + "columns": [ + "project_id" + ] + }, + { + "Key_name": "FullText", + "columns": [ + "search_words" + ] + } + ] + }, + { + "name": "supportapp", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitgeplant", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "version", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "phase", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "intervall", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "supportapp_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "supportapp_auftrag_check", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schritt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragposition", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "supportapp_gruppen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "supportapp_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "details", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "supportapp_schritte", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorgaenger", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filter", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "supportapp_vorlagen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "taetigkeit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "survey", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "once_per_user", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "send_to_xentral", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "survey_user", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "survey_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "data", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "survey_id", + "columns": [ + "survey_id" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id" + ] + } + ] + }, + { + "name": "system_disk_free", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "disk_free_kb_start", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "disk_free_kb_end", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "db_size", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userdata_mb_size", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "created_at", + "columns": [ + "created_at" + ] + } + ] + }, + { + "name": "systemhealth", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "systemhealth_category_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastupdate", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "resetable", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "last_reset", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "systemhealth_category_id", + "columns": [ + "systemhealth_category_id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "systemhealth_category", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "systemhealth_custom_error_lvl", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "systemhealth_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "systemhealth_id", + "columns": [ + "systemhealth_id" + ] + } + ] + }, + { + "name": "systemhealth_event", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "systemhealth_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "systemhealth_id", + "columns": [ + "systemhealth_id" + ] + }, + { + "Key_name": "created_at", + "columns": [ + "created_at" + ] + } + ] + }, + { + "name": "systemhealth_notification", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "systemhealth_notification_item", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "systemhealth_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "systemlog", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "meldung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dump", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "funktionsname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "argumente", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "level", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "systemtemplates", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filename", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "footer_icons", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "category", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hidden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "system_pkey", + "columns": [ + "id", + "hidden" + ] + } + ] + }, + { + "name": "task_subscription", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "task_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "task_id", + "columns": [ + "task_id" + ] + } + ] + }, + { + "name": "task_timeline", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "task_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "task_id", + "columns": [ + "task_id" + ] + } + ] + }, + { + "name": "teilprojekt_geplante_zeiten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stundensatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stunden", + "Type": "decimal(8,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "telefonrueckruf", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "time", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressetext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticket", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angenommenvon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rueckrufvon", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefonnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "tinyint(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "rueckrufvon", + "columns": [ + "rueckrufvon" + ] + } + ] + }, + { + "name": "telefonrueckruf_versuche", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "telefonrueckruf", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "time", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "telefonrueckruf", + "columns": [ + "telefonrueckruf" + ] + } + ] + }, + { + "name": "templatemessage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "message", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user", + "columns": [ + "user" + ] + } + ] + }, + { + "name": "textvorlagen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "text", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stichwoerter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ticket", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schluessel", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "quelle", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kunde", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "warteschlange", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mailadresse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zugewiesen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbearbeitung_user", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "notiz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bitteantworten", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "service", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "privat", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dsgvo", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tags", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachrichten_anz", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "schluessel", + "columns": [ + "schluessel" + ] + }, + { + "Key_name": "service", + "columns": [ + "service" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "warteschlange", + "columns": [ + "warteschlange" + ] + } + ] + }, + { + "name": "ticket_category", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ticket_header", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticket_nachricht", + "Type": "int(15)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ticket_nachricht", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticket", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verfasser", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mail", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitausgang", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "text", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "textausgang", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "medium", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mail_cc", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verfasser_replyto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mail_replyto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "ticket", + "columns": [ + "ticket" + ] + }, + { + "Key_name": "FullText", + "Index_type": "FULLTEXT", + "columns": [ + "betreff", + "verfasser", + "text" + ] + } + ] + }, + { + "name": "ticket_regeln", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "empfaenger_email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sender_email", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betreff", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "spam", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "persoenlich", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dsgvo", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "warteschlange", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ticket_vorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagenname", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlage", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sichtbar", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ticket_category_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "ticket_category_id", + "columns": [ + "ticket_category_id" + ] + } + ] + }, + { + "name": "transfer_account_label", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "transfer_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filter_type", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "transfer_sellingreport_job", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "transfer_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "date_from", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "date_to", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'created'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "uebersetzung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "label", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschriftung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "original", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "sprache", + "columns": [ + "sprache" + ] + }, + { + "Key_name": "label", + "columns": [ + "label" + ] + } + ] + }, + { + "name": "uebertragungen_account", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "server", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "port", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "username", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter4", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "authmethod", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "publickeyfile", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "privatekeyfile", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "publickey", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "privatekey", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ssl_aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sammeln", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "minwartezeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzte_uebertragung", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "letzter_status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "loeschen_nach_download", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xml_pdf", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'xml'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegtyp", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "documenttype_incoming", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegstatus", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegab_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegab_datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "briefpapierimxml", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "maxbelege", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "10", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "emailbody", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "importwarteschlange", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "xml_zusatz", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gln_freifeld", + "Type": "int(4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "trackingmail", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungmail", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einzelnexml", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_codierung", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_trennzeichen", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_tracking", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_lagerzahl", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_lieferschein", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_auftrag", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csv_bestellung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_lager", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_lagerplatz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_zeit1", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_zeit2", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_zeit3", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_zeit4", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_zeit5", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlen_letzteuebertragung", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrageingang", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummernuebernehmen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "createarticleifnotexists", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "createarticleasstoragearticle", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellungeingang", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikeleingang", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "trackingeingang", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahleneingang", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresselieferant", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerplatzignorieren", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "neueartikeluebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateianhanguebertragen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateianhangtyp", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'datei'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csvheader_lagerzahlen", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csvheader_tracking", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csvnowrap", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahlenverfuegbaremenge", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "autoshopexport", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einstellungen_json", + "Type": "mediumtext", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnunganlegen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferantenbestellnummer", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "send_sales_report", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sales_report_type", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "createproduction", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ownaddress", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updatearticles", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logarticlenotfound", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "alldoctypes", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "csvseparator", + "Type": "varchar(4)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "';'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "coding", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "uebertragungen_account_oauth", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragungen_account_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "client_id", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "client_secret", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "url", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "access_token", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "expiration_date", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragungen_account_id", + "columns": [ + "uebertragungen_account_id" + ] + } + ] + }, + { + "name": "uebertragungen_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragungen_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragungen_account", + "columns": [ + "uebertragungen_account", + "artikel" + ] + } + ] + }, + { + "name": "uebertragungen_dateien", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragung_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei_wawi", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "download", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht_von_server", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempelupdate", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filesize", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "-1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragung_account", + "columns": [ + "uebertragung_account", + "datei" + ] + } + ] + }, + { + "name": "uebertragungen_event", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragung_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eventname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cachetime", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retries", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragung_account", + "columns": [ + "uebertragung_account" + ] + } + ] + }, + { + "name": "uebertragungen_event_einstellungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragung_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eventname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingang", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragung_account", + "columns": [ + "uebertragung_account", + "eventname" + ] + } + ] + }, + { + "name": "uebertragungen_fileconvert_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragungen_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "uebertragungen_lagercache", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_platz", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lagerzahl", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragungen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "uebertragungen_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragungen_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragungen_account", + "columns": [ + "uebertragungen_account" + ] + } + ] + }, + { + "name": "uebertragungen_monitor", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragungen_account", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "api_request", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nachricht", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "element1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "element2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "element3", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctype", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "doctypeid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausgeblendet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "uebertragungen_account", + "columns": [ + "uebertragungen_account", + "datei", + "api_request", + "doctypeid" + ] + } + ] + }, + { + "name": "uebertragungen_trackingnummern", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebertragungen", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "umsatzstatistik", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundennummer", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_brutto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloes_netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "unterprojekt", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verantwortlicher", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ups", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "account_nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auswahl", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "user", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "username", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "password", + "Type": "varchar(255)", + "Collation": "utf8mb3_bin", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "repassword", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "settings", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parentuser", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "activ", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fehllogins", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standarddrucker", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "startseite", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hwtoken", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hwkey", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hwcounter", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "motppin", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "motpsecret", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwordmd5", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "externlogin", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt_bevorzugen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "email_bevorzugen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rfidtag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlage", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalender_passwort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalender_ausblenden", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kalender_aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gpsstechuhr", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardetikett", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardfax", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hwdatablock", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "standardversanddrucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwordsha512", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "salt", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketmarkendrucker", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprachebevorzugen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vergessencode", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vergessenzeit", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chat_popup", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "defaultcolor", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwordhash", + "Type": "char(60)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "docscan_aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "docscan_passwort", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "callcenter_notification", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stechuhrdevice", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "role", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "user_totp", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "secret", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "modified_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id" + ] + } + ] + }, + { + "name": "userkonfiguration", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "value", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user", + "columns": [ + "user" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "useronline", + "type": "BASE TABLE", + "columns": [ + { + "Field": "user_id", + "Type": "int(5)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "login", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sessionid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ip", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "time", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "sessionid", + "columns": [ + "sessionid" + ] + } + ] + }, + { + "name": "userrights", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "permission", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user", + "columns": [ + "user" + ] + } + ] + }, + { + "name": "uservorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "uservorlagerights", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlage", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "permission", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ustprf", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "land", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plz", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechtsform", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "strasse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_online", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_brief", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "briefbestellt", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "ustprf_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustprf_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "daten", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "verbindlichkeit", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status_beleg", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "schreibschutz", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlbarbis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustid", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "summenormal", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "summeermaessigt", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "summesatz3", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "summesatz4", + "Type": "decimal(10,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatzname3", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatzname4", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skonto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontobis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skontofestsetzen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabe", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigabemitarbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahlt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kontoauszuege", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung1", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung1betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung1bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung1projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung1kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung1auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung2", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung2betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung2bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung2kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung2auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung2projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung3", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung3betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung3bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung3kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung3auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung3projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung4", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung4betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung4bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung4kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung4auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung4projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung5", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung5betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung5bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung5kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung5auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung5projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung6", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung6betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung6bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung6kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung6auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung6projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung7", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung7betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung7bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung7kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung7auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung7projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung8", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung8betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung8bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung8kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung8auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung8projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung9", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung9betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung9bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung9kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung9auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung9projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung10", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung10betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung10bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung10kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung10auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung10projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung11", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung11betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung11bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung11kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung11auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung11projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung12", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung12betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung12bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung12projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung12kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung12auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung13", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung13betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung13bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung13kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung13auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung13projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung14", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung14betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung14bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung14kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung14auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung14projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung15", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung15betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung15bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung15kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung15auftrag", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung15projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "eingangsdatum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_konto1", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_belegfeld1", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_betrag1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_konto2", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_belegfeld2", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_betrag2", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_konto3", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_belegfeld3", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_betrag3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_konto4", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_belegfeld4", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_betrag4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_konto5", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_belegfeld5", + "Type": "varchar(200)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buha_betrag5", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungsdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungsfreigabe", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sachkonto", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verwendungszweck", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "frachtkosten", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustnormal", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ustermaessigt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uststuer3", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uststuer4", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betragbezahlt", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezahltam", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klaerfall", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klaergrund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skonto_erhalten", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(25)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "bestellung", + "columns": [ + "bestellung" + ] + } + ] + }, + { + "name": "verbindlichkeit_bestellungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_betrag", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_betrag_netto", + "Type": "decimal(14,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_kostenstelle", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung_bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "verbindlichkeit", + "columns": [ + "verbindlichkeit" + ] + } + ] + }, + { + "name": "verbindlichkeit_kontierung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(18,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegfeld", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchungstext", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gegenkonto", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "verbindlichkeit", + "columns": [ + "verbindlichkeit" + ] + } + ] + }, + { + "name": "verbindlichkeit_ocr", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "address_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "property", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "search_term", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "search_direction", + "Type": "varchar(5)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'right'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "verbindlichkeit_position", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestellnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einheit", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "umsatzsteuer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuersatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "steuertext", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "verbindlichkeit", + "columns": [ + "verbindlichkeit" + ] + } + ] + }, + { + "name": "verbindlichkeit_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeit", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "verbindlichkeit", + "columns": [ + "verbindlichkeit" + ] + } + ] + }, + { + "name": "verbindlichkeit_regelmaessig", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "'0'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "filter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "soll", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "haben", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gebuehr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnungnr", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verwendungszweck", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsweise", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gegenkonto", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wepruefung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "repruefung", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "verbindlichkeit_regelmaessig_beleg", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeit_regelmaessig", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verbindlichkeit", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "verbindlichkeit_regelmaessig", + "columns": [ + "verbindlichkeit_regelmaessig" + ] + } + ] + }, + { + "name": "verkaufspreise", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis", + "Type": "decimal(18,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ab_menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'1'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe_menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "angelegt_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltig_bis", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kundenartikelnummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'kunde'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "apichange", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nichtberechnet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "inbelegausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltig_ab", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "-1.0000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kursdatum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "artikel", + "columns": [ + "artikel" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "kundenartikelnummer", + "columns": [ + "kundenartikelnummer" + ] + } + ] + }, + { + "name": "verkaufszahlen_chart", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "regs", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "monat", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "verkaufszahlen_chart_projekt", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chart", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "chart", + "columns": [ + "chart", + "projekt" + ] + } + ] + }, + { + "name": "verrechnungsart", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "versand", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lieferschein", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewicht", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freigegeben", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versender", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandunternehmen", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "download", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinetrackingmail", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am_zeitstempel", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "weitererlieferschein", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anzahlpakete", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gelesen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketmarkegedruckt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "papieregedruckt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandzweigeteilt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "improzess", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "improzessuser", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastspooler_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastprinter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastexportspooler_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastexportprinter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking_link", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cronjob", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adressvalidation", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "retoure", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "klaergrund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bundesstaat", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "lieferschein", + "columns": [ + "lieferschein" + ] + }, + { + "Key_name": "projekt", + "columns": [ + "projekt" + ] + }, + { + "Key_name": "cronjob", + "columns": [ + "cronjob" + ] + } + ] + }, + { + "name": "versandarten", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "modul", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "keinportocheck", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketmarke_drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "export_drucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einstellungen_json", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausprojekt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandmail", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geschaeftsbrief_vorlage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "versandpakete", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versand", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nr", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "tracking", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versender", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gewicht", + "Type": "varchar(10)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "versandzentrum_log", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktion", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wert", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versandid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "vertreterumsatz", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vertriebid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "userid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "belegnr", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag_brutto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erloes_netto", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "deckungsbeitrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung", + "Type": "varchar(3)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'eur'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gruppe", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "provision_summe", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "vorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "waage_artikel", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "reihenfolge", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschriftung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mhddatum", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etikettendrucker", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etikett", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "etikettxml", + "Type": "longblob", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "waehrung_umrechnung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung_von", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "waehrung_nach", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs", + "Type": "decimal(16,8)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1.00000000", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gueltig_bis", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kommentar", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "warteschlangen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "warteschlange", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "label", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiedervorlage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "wawision_uebersetzung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sprache", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "original", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "uebersetzung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ1", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ2", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user", + "columns": [ + "user", + "sprache" + ] + } + ] + }, + { + "name": "webmail", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "benutzername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "passwort", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "server", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "webmail_mails", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(15)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "webmail", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subject", + "Type": "varchar(255)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sender", + "Type": "varchar(255)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "cc", + "Type": "varchar(255)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bcc", + "Type": "varchar(255)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "replyto", + "Type": "varchar(255)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "plaintext", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "htmltext", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "empfang", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anhang", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gelesen", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checksum", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "webmail_zuordnungen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "mail", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zuordnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiedervorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeier", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ergebnis", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erinnerung", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erinnerung_per_mail", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erinnerung_empfaenger", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "link", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "module", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "action", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_angelegt", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit_angelegt", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_erinnerung", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeit_erinnerung", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "oeffentlich", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgeschlossen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ansprechpartner_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subproject_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chance", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_abschluss", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum_status", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "prio", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stages", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "color", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'#a2d624'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + }, + { + "Key_name": "adresse_mitarbeiter", + "columns": [ + "adresse_mitarbeiter" + ] + } + ] + }, + { + "name": "wiedervorlage_aufgabe", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "resubmission_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "task_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "required_completion_stage_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "resubmission_task", + "columns": [ + "resubmission_id", + "task_id" + ] + } + ] + }, + { + "name": "wiedervorlage_aufgabe_vorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "required_from_stage_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "add_task_at_stage_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "employee_address_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "subproject_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "submission_date_days", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "submission_time", + "Type": "time", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "state", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "priority", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiedervorlage_board_member", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "board_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiedervorlage_freifeld_inhalt", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "resubmission_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "resubmission_id", + "columns": [ + "resubmission_id" + ] + } + ] + }, + { + "name": "wiedervorlage_freifeld_konfiguration", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "available_from_stage_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "required_from_stage_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "show_in_pipeline", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "show_in_tables", + "Type": "tinyint(1) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiedervorlage_protokoll", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorgaengerid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiedervorlageid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeier", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erinnerung_alt", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erinnerung_neu", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ergebnis", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "wiedervorlageid", + "columns": [ + "wiedervorlageid" + ] + } + ] + }, + { + "name": "wiedervorlage_stages", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurzbezeichnung", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hexcolor", + "Type": "varchar(7)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'#a2d624'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stageausblenden", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "sort", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "view", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "chance", + "Type": "int(3)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiedervorlage_timeline", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiedervorlage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "css", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "color", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "fix", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stage", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "leadtype", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiedervorlage_view", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "shortname", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "project", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "hide_collection_stage", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiedervorlage_zu_aufgabe_vorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiedervorlage_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aufgabe_vorlage_id", + "Type": "int(10) unsigned", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "wiki", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "longtext", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lastcontent", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiki_workspace_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parent_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "language", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "wiki_changelog", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiki_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "comment", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_by", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "content", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "notify", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "wiki_id", + "columns": [ + "wiki_id" + ] + } + ] + }, + { + "name": "wiki_faq", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiki_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "question", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "answer", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_by", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "on update current_timestamp()", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "wiki_id", + "columns": [ + "wiki_id" + ] + } + ] + }, + { + "name": "wiki_subscription", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wiki_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "wiki_id", + "columns": [ + "wiki_id" + ] + } + ] + }, + { + "name": "wiki_workspace", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "name", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "foldername", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "savein", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "name", + "columns": [ + "name" + ] + } + ] + }, + { + "name": "wizard", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "user_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "key", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "skip_link_text", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "params", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "options", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "user_id", + "columns": [ + "user_id", + "key" + ] + } + ] + }, + { + "name": "wizard_step", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "wizard_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "key", + "Type": "varchar(32)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "link", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "title", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "caption", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "description", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "options", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "position", + "Type": "tinyint(3)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "checked", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "wizard_id", + "columns": [ + "wizard_id", + "key" + ] + } + ] + }, + { + "name": "zahlungsavis", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_am", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet_per", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ersteller", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bic", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "iban", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bemerkung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dta_datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "betrag", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zahlungsavis_gutschrift", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsavis", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gutschrift", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zahlungsavis_mailausgang", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "avis_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versendet", + "Type": "int(2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "versucht", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zeitstempel", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "current_timestamp()", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zahlungsavis_rechnung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zahlungsavis", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "rechnung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zahlungsweisen", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "type", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bezeichnung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "freitext", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aktiv", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "geloescht", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "automatischbezahlt", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "automatischbezahltverbindlichkeit", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorkasse", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verhalten", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "'vorkasse'", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "modul", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "einstellungen_json", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zeiterfassung", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "von", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bis", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0000-00-00 00:00:00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aufgabe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitspaket", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "buchungsart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kostenstelle", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(10)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abgerechnet", + "Type": "int(10)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "status", + "Type": "varchar(64)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gps", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsnachweispositionid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_abrechnung", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnen", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ist_abgerechnet", + "Type": "int(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "gebucht_von_user", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ort", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnung_dokument", + "Type": "varchar(1024)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dokumentid", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "verrechnungsart", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsnachweis", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internerkommentar", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "aufgabe_id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "auftragpositionid", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "produktion", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "stundensatz", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "arbeitsanweisung", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "serviceauftrag", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "anz_mitarbeiter", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + }, + { + "Key_name": "adresse_abrechnung", + "columns": [ + "adresse_abrechnung" + ] + }, + { + "Key_name": "abgerechnet", + "columns": [ + "abgerechnet" + ] + }, + { + "Key_name": "abrechnen", + "columns": [ + "abrechnen" + ] + }, + { + "Key_name": "adresse", + "columns": [ + "adresse" + ] + } + ] + }, + { + "name": "zeiterfassungvorlage", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlage", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "ausblenden", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vorlagedetail", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "art", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "teilprojekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kunde", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "abrechnen", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zertifikatgenerator", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_deutsch", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung_englisch", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestell_anmerkung_deutsch", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bestell_anmerkung_englisch", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "interne_anmerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "unterschrift", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "dateofsale_stamp", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preisfaktor", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "kurs_usd", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "typ_text", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_kunde", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "adresse_absender", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "layout", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "zertifikate", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis_eur", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis_usd", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erstellt_datum", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "preis_eur_retail", + "Type": "varchar(128)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "datei", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zolltarifnummer", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "nummer", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "beschreibung", + "Type": "varchar(512)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "internebemerkung", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + }, + { + "name": "zwischenlager", + "type": "BASE TABLE", + "columns": [ + { + "Field": "id", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": "", + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "bearbeiter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "projekt", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "artikel", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "menge", + "Type": "decimal(14,4)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "vpe", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "grund", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_von", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "lager_nach", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "richtung", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "erledigt", + "Type": "int(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "objekt", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "parameter", + "Type": "varchar(255)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "firma", + "Type": "int(11)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "logdatei", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + { + "Field": "paketannahme", + "Type": "int(11)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + ], + "keys": [ + { + "Key_name": "PRIMARY", + "columns": [ + "id" + ] + } + ] + } + ], + "views": [ + { + "name": "belege", + "type": "VIEW", + "Create": "CREATE VIEW `belege` AS select `rechnung`.`id` AS `id`,`rechnung`.`adresse` AS `adresse`,`rechnung`.`datum` AS `datum`,`rechnung`.`belegnr` AS `belegnr`,`rechnung`.`status` AS `status`,`rechnung`.`land` AS `land`,'rechnung' AS `typ`,`rechnung`.`umsatz_netto` AS `umsatz_netto`,`rechnung`.`erloes_netto` AS `erloes_netto`,`rechnung`.`deckungsbeitrag` AS `deckungsbeitrag`,`rechnung`.`provision_summe` AS `provision_summe`,`rechnung`.`vertriebid` AS `vertriebid`,`rechnung`.`gruppe` AS `gruppe` from `rechnung` where `rechnung`.`status` <> 'angelegt' union all select `gutschrift`.`id` AS `id`,`gutschrift`.`adresse` AS `adresse`,`gutschrift`.`datum` AS `datum`,`gutschrift`.`belegnr` AS `belegnr`,`gutschrift`.`status` AS `status`,`gutschrift`.`land` AS `land`,'gutschrift' AS `typ`,`gutschrift`.`umsatz_netto` * -1 AS `umsatz_netto*-1`,`gutschrift`.`erloes_netto` * -1 AS `erloes_netto*-1`,`gutschrift`.`deckungsbeitrag` * -1 AS `deckungsbeitrag*-1`,`gutschrift`.`provision_summe` * -1 AS `provision_summe*-1`,`gutschrift`.`vertriebid` AS `vertriebid`,`gutschrift`.`gruppe` AS `gruppe` from `gutschrift` where `gutschrift`.`status` <> 'angelegt'" + }, + { + "name": "belegegesamt", + "type": "VIEW", + "Create": "CREATE VIEW `belegegesamt` AS select `rechnung`.`id` AS `id`,`rechnung`.`adresse` AS `adresse`,`rechnung`.`datum` AS `datum`,`rechnung`.`belegnr` AS `belegnr`,`rechnung`.`status` AS `status`,`rechnung`.`land` AS `land`,'rechnung' AS `typ`,`rechnung`.`umsatz_netto` AS `umsatz_netto`,`rechnung`.`soll` AS `umsatz_brutto`,`rechnung`.`erloes_netto` AS `erloes_netto`,`rechnung`.`deckungsbeitrag` AS `deckungsbeitrag`,`rechnung`.`provision_summe` AS `provision_summe`,`rechnung`.`vertriebid` AS `vertriebid`,`rechnung`.`gruppe` AS `gruppe`,`rechnung`.`projekt` AS `projekt` from `rechnung` union all select `gutschrift`.`id` AS `id`,`gutschrift`.`adresse` AS `adresse`,`gutschrift`.`datum` AS `datum`,`gutschrift`.`belegnr` AS `belegnr`,`gutschrift`.`status` AS `status`,`gutschrift`.`land` AS `land`,'gutschrift' AS `typ`,`gutschrift`.`umsatz_netto` * -1 AS `umsatz_netto*-1`,`gutschrift`.`soll` * -1 AS `umsatz_brutto*-1`,`gutschrift`.`erloes_netto` * -1 AS `erloes_netto*-1`,`gutschrift`.`deckungsbeitrag` * -1 AS `deckungsbeitrag*-1`,`gutschrift`.`provision_summe` * -1 AS `provision_summe*-1`,`gutschrift`.`vertriebid` AS `vertriebid`,`gutschrift`.`gruppe` AS `gruppe`,`gutschrift`.`projekt` AS `projekt` from `gutschrift` union all select `auftrag`.`id` AS `id`,`auftrag`.`adresse` AS `adresse`,`auftrag`.`datum` AS `datum`,`auftrag`.`belegnr` AS `belegnr`,`auftrag`.`status` AS `status`,`auftrag`.`land` AS `land`,'auftrag' AS `typ`,`auftrag`.`umsatz_netto` AS `umsatz_netto`,`auftrag`.`gesamtsumme` AS `umsatz_brutto`,`auftrag`.`erloes_netto` AS `erloes_netto`,`auftrag`.`deckungsbeitrag` AS `deckungsbeitrag`,`auftrag`.`provision_summe` AS `provision_summe`,`auftrag`.`vertriebid` AS `vertriebid`,`auftrag`.`gruppe` AS `gruppe`,`auftrag`.`projekt` AS `projekt` from `auftrag` union all select `bestellung`.`id` AS `id`,`bestellung`.`adresse` AS `adresse`,`bestellung`.`datum` AS `datum`,`bestellung`.`belegnr` AS `belegnr`,`bestellung`.`status` AS `status`,`bestellung`.`land` AS `land`,'bestellung' AS `typ`,`bestellung`.`gesamtsumme` AS `umsatz_netto`,`bestellung`.`gesamtsumme` AS `umsatz_brutto`,'0' AS `erloes_netto`,'0' AS `deckungsbeitrag`,'0' AS `provision_summe`,'0' AS `vertriebid`,'0' AS `gruppe`,`bestellung`.`projekt` AS `projekt` from `bestellung` union all select `lieferschein`.`id` AS `id`,`lieferschein`.`adresse` AS `adresse`,`lieferschein`.`datum` AS `datum`,`lieferschein`.`belegnr` AS `belegnr`,`lieferschein`.`status` AS `status`,`lieferschein`.`land` AS `land`,'lieferschein' AS `typ`,'0' AS `umsatz_netto`,'0' AS `umsatz_brutto`,'0' AS `erloes_netto`,'0' AS `deckungsbeitrag`,'0' AS `provision_summe`,'0' AS `vertriebid`,'0' AS `gruppe`,`lieferschein`.`projekt` AS `projekt` from `lieferschein` union all select `angebot`.`id` AS `id`,`angebot`.`adresse` AS `adresse`,`angebot`.`datum` AS `datum`,`angebot`.`belegnr` AS `belegnr`,`angebot`.`status` AS `status`,`angebot`.`land` AS `land`,'angebot' AS `typ`,`angebot`.`umsatz_netto` AS `umsatz_netto`,`angebot`.`gesamtsumme` AS `umsatz_brutto`,'0' AS `erloes_netto`,`angebot`.`deckungsbeitrag` AS `deckungsbeitrag`,'0' AS `provision_summe`,`angebot`.`vertriebid` AS `vertriebid`,'0' AS `gruppe`,`angebot`.`projekt` AS `projekt` from `angebot`" + }, + { + "name": "belegeregs", + "type": "VIEW", + "Create": "CREATE VIEW `belegeregs` AS select `rechnung`.`id` AS `id`,`rechnung`.`adresse` AS `adresse`,`rechnung`.`datum` AS `datum`,`rechnung`.`belegnr` AS `belegnr`,`rechnung`.`status` AS `status`,`rechnung`.`land` AS `land`,'rechnung' AS `typ`,`rechnung`.`umsatz_netto` AS `umsatz_netto`,`rechnung`.`erloes_netto` AS `erloes_netto`,`rechnung`.`deckungsbeitrag` AS `deckungsbeitrag`,`rechnung`.`provision_summe` AS `provision_summe`,`rechnung`.`vertriebid` AS `vertriebid`,`rechnung`.`gruppe` AS `gruppe`,`rechnung`.`projekt` AS `projekt` from `rechnung` union all select `gutschrift`.`id` AS `id`,`gutschrift`.`adresse` AS `adresse`,`gutschrift`.`datum` AS `datum`,`gutschrift`.`belegnr` AS `belegnr`,`gutschrift`.`status` AS `status`,`gutschrift`.`land` AS `land`,'gutschrift' AS `typ`,`gutschrift`.`umsatz_netto` * -1 AS `umsatz_netto*-1`,`gutschrift`.`erloes_netto` * -1 AS `erloes_netto*-1`,`gutschrift`.`deckungsbeitrag` * -1 AS `deckungsbeitrag*-1`,`gutschrift`.`provision_summe` * -1 AS `provision_summe*-1`,`gutschrift`.`vertriebid` AS `vertriebid`,`gutschrift`.`gruppe` AS `gruppe`,`gutschrift`.`projekt` AS `projekt` from `gutschrift`" + } + ] +} diff --git a/upgrade/data/remote.json b/upgrade/data/remote.json new file mode 100644 index 00000000..d8567241 --- /dev/null +++ b/upgrade/data/remote.json @@ -0,0 +1,4 @@ +{ + "host": "https://github.com/openxe-org/openxe.git", + "branch": "master" +} diff --git a/upgrade/data/upgrade.php b/upgrade/data/upgrade.php new file mode 100644 index 00000000..538e4045 --- /dev/null +++ b/upgrade/data/upgrade.php @@ -0,0 +1,482 @@ + 1) { + + if (in_array('-v', $argv)) { + $verbose = true; + } else { + $verbose = false; + } + + if (in_array('-e', $argv)) { + $export_db = true; + } else { + $export_db = false; + } + + if (in_array('-f', $argv)) { + $force = true; + } else { + $force = false; + } + + if (in_array('-o', $argv)) { + $origin = true; + } else { + $origin = false; + } + + if (in_array('-connection', $argv)) { + $connection = true; + } else { + $connection = false; + } + + if (in_array('-s', $argv)) { + $check_git = true; + } else { + } + + if (in_array('-db', $argv)) { + $check_db = true; + } else { + } + + if (in_array('-do', $argv)) { + if (!$check_git && !$check_db) { + $do_git = true; + $do_db = true; + } + if ($check_git) { + $do_git = true; + } + if ($check_db) { + $do_db = true; + } + } + + if ($check_git || $check_db || $do_git || $do_db) { + upgrade_main($directory,$verbose,$check_git,$do_git,$export_db,$check_db,$do_db,$force,$connection,$origin); + } else { + info(); + } + + } else { + info(); + } + +} +// -------------------------------- END + +function upgrade_main(string $directory,bool $verbose, bool $check_git, bool $do_git, bool $export_db, bool $check_db, bool $do_db, bool $force, bool $connection, bool $origin) { + + $mainfolder = dirname($directory); + $datafolder = $directory."/data"; + $lockfile_name = $datafolder."/.in_progress.flag"; + $remote_file_name = $datafolder."/remote.json"; + $schema_file_name = "db_schema.json"; + + echo_out("--------------- OpenXE upgrade ---------------\n"); + echo_out("--------------- ".date("Y-m-d H:i:s")." ---------------\n"); + + //require_once($directory.'/../cronjobs/githash.php'); + + if ($origin) { + $remote_info = array('host' => 'origin','branch' => 'master'); + } else { + $remote_info_contents = file_get_contents($remote_file_name); + if (!$remote_info_contents) { + abort("Unable to load $remote_file_name"); + return(-1); + } + $remote_info = json_decode($remote_info_contents, true); + } + + if ($check_git || $do_git) { + + $retval = git("log HEAD --", $output,$verbose,false,""); + // Not a git repository -> Create it and then go ahead + if ($retval == 128) { + if (!$do_git) { + abort("Git not initialized, use -do to initialize."); + return(-1); + } + + echo_out("Setting up git..."); + $retval = git("init $mainfolder", $output,$verbose,$verbose,"Error while initializing git!"); + if ($retval != 0) { + abort(""); + return(-1); + } + $retval = git("add $mainfolder", $output,$verbose,$verbose,"Error while initializing git!"); + if ($retval != 0) { + abort(""); + return(-1); + } + $retval = git("fetch ".$remote_info['host']." ".$remote_info['branch'],$output,$verbose,$verbose,"Error while initializing git!"); + if ($retval != 0) { + abort(""); + return(-1); + } + + $retval = git("checkout FETCH_HEAD -f --", $output,$verbose,$verbose,"Error while initializing git!"); + if ($retval != 0) { + abort(""); + return(-1); + } + } else if ($retval != 0) { + abort("Error while executing git!"); + return(-1); + } + + // Get changed files on system -> Should be empty + $modified_files = false; + $output = array(); + $retval = git("ls-files -m $mainfolder", $output,$verbose,false,"Error while checking Git status."); + if (!empty($output)) { + $modified_files = true; + echo_out("There are modified files:\n"); + echo_output($output); + } + + if ($verbose) { + echo_out("--------------- Upgrade history ---------------\n"); + $retval = git("log --date=short-local --pretty=\"%cd (%h): %s\" HEAD --not HEAD~5 --",$output,$verbose,$verbose,"Error while showing history!"); + if ($retval != 0) { + abort(""); + return(-1); + } + } else { + echo_out("--------------- Current version ---------------\n"); + $retval = git("log -1 --date=short-local --pretty=\"%cd (%h): %s\" HEAD --",$output,$verbose,true,"Error while showing history!"); + if ($retval != 0) { + return(-1); + } + } + + if ($do_git) { + + if ($modified_files && !$force) { + abort("Clear modified files or use -f"); + return(-1); + } + + echo_out("--------------- Pulling files... ---------------\n"); + + if ($force) { + $retval = git("reset --hard",$output,$verbose,$verbose,"Error while resetting modified files!"); + if ($retval != 0) { + abort(""); + return(-1); + } + } + + $retval = git("pull ".$remote_info['host']." ".$remote_info['branch'],$output,$verbose,$verbose,"Error while pulling files!"); + if ($retval != 0) { + abort(""); + return(-1); + } + + $retval = git("reset --hard",$output,$verbose,$verbose,"Error while applying files!"); + if ($retval != 0) { + abort(""); + return(-1); + } + + echo_out("--------------- Files upgrade completed ---------------\n"); + $retval = git("log -1 ",$output,$verbose,$verbose,"Error while checking files!"); + if ($retval != 0) { + abort(""); + return(-1); + } + echo_output($output); + } // $do_git + else { // Dry run + echo_out("--------------- Dry run, use -do to upgrade ---------------\n"); + echo_out("--------------- Fetching files... ---------------\n"); + + $retval = git("fetch ".$remote_info['host']." ".$remote_info['branch'],$output,$verbose,$verbose,"Error while fetching files!"); + if ($retval != 0) { + abort(""); + } + + echo_out("--------------- Pending upgrades: ---------------\n"); + + $retval = git("log --date=short-local --pretty=\"%cd (%h): %s\" FETCH_HEAD --not HEAD",$output,$verbose,true,"Error while fetching files!"); + if (empty($output)) { + echo_out("No upgrades pending.\n"); + } + if ($retval != 0) { + abort(""); + } + } // Dry run + } // $check_git + + if ($check_db || $do_db || $export_db) { + + if ($connection) { + $connection_file_name = $directory."/data/connection.json"; + $connection_file_contents = file_get_contents($connection_file_name); + if (!$connection_file_contents) { + abort("Unable to load $connection_file_name"); + return(-1); + } + $connection_info = json_decode($connection_file_contents, true); + + $host = $connection_info['host']; + $user = $connection_info['user']; + $passwd = $connection_info['passwd']; + $schema = $connection_info['schema']; + + } else { + + class DatabaseConnectionInfo { + function __construct($dir) { + require($dir."/../conf/user.inc.php"); + } + } + + $dbci = new DatabaseConnectionInfo($directory); + + $host = $dbci->WFdbhost; + $user = $dbci->WFdbuser; + $passwd = $dbci->WFdbpass; + $schema = $dbci->WFdbname; + } + + require_once($directory.'/../vendor/mustal/mustal_mysql_upgrade_tool.php'); + + echo_out("--------------- Loading from database '$schema@$host'... ---------------\n"); + $db_def = mustal_load_tables_from_db($host, $schema, $user, $passwd, $mustal_replacers); + + if (empty($db_def)) { + echo_out("Could not load from $schema@$host\n"); + exit; + } + + if ($export_db) { + $export_file_name = "exported_db_schema.json"; + if (mustal_save_tables_to_json($db_def, $datafolder, $export_file_name, true) == 0) { + echo_out("Database exported to $datafolder/$export_file_name\n"); + } + else { + echo_out("Could not export database to $datafolder/$export_file_name\n"); + } + } + + $compare_differences = array(); + + echo_out("--------------- Loading from JSON... ---------------\n"); + $compare_def = mustal_load_tables_from_json($datafolder, $schema_file_name); + + if (empty($compare_def)) { + abort("Could not load from JSON $schema_file_name\n"); + return(-1); + } + echo_out("Table count database ".count($db_def['tables'])." vs. JSON ".count($compare_def['tables'])."\n"); + echo_out("--------------- Comparing JSON '".$compare_def['database']."@".$compare_def['host']."' vs. database '$schema@$host' ---------------\n"); + $compare_differences = mustal_compare_table_array($db_def,"in DB",$compare_def,"in JSON",false,true); + if ($verbose) { + foreach ($compare_differences as $compare_difference) { + $comma = ""; + foreach ($compare_difference as $key => $value) { + echo_out($comma."$key => [$value]"); + $comma = ", "; + } + echo_out("\n"); + } + } + echo_out((empty($compare_differences)?0:count($compare_differences))." differences.\n"); + + echo_out("--------------- Comparing database '$schema@$host' vs. JSON '".$compare_def['database']."@".$compare_def['host']."' ---------------\n"); + $compare_differences = mustal_compare_table_array($compare_def,"in JSON",$db_def,"in DB",true,true); + if ($verbose) { + foreach ($compare_differences as $compare_difference) { + $comma = ""; + foreach ($compare_difference as $key => $value) { + echo_out($comma."$key => [$value]"); + $comma = ", "; + } + echo_out("\n"); + } + } + echo_out((empty($compare_differences)?0:count($compare_differences))." differences.\n"); + + echo_out("--------------- Calculating database upgrade for '$schema@$host'... ---------------\n"); + + $upgrade_sql = array(); + $result = mustal_calculate_db_upgrade($compare_def, $db_def, $upgrade_sql, $mustal_replacers); + + if (!empty($result)) { + abort(count($result)." errors.\n"); + if ($verbose) { + foreach($result as $error) { + echo_out("Code: ".$error[0]." '".$error[1]."'\n"); + } + } + return(-1); + } + + if ($verbose) { + foreach($upgrade_sql as $statement) { + echo_out($statement."\n"); + } + } + + echo_out(count($upgrade_sql)." upgrade statements\n"); + + if ($do_db) { + echo_out("--------------- Executing database upgrade for '$schema@$host' database... ---------------\n"); + // First get the contents of the database table structure + $mysqli = mysqli_connect($host, $user, $passwd, $schema); + + /* Check if the connection succeeded */ + if (!$mysqli) { + echo ("Failed to connect!\n"); + } else { + + $counter = 0; + $error_counter = 0; + $number_of_statements = count($upgrade_sql); + + foreach ($upgrade_sql as $sql) { + + $counter++; + echo_out("\rUpgrade step $counter of $number_of_statements... "); + + $query_result = mysqli_query($mysqli, $sql); + if (!$query_result) { + $error = " not ok: ". mysqli_error($mysqli); + echo_out($error); + echo_out("\n"); +// file_put_contents("./errors.txt",date()." ".$error.$sql."\n",FILE_APPEND); + $error_counter++; + } else { + echo_out("ok.\r"); + } + + } + + echo_out("\n"); + echo_out("$error_counter errors.\n"); + if ($error_counter > 0) { +// echo_out("See 'errors.txt'\n"); + } + + echo_out("--------------- Checking database upgrade for '$schema@$host'... ---------------\n"); + $db_def = mustal_load_tables_from_db($host, $schema, $user, $passwd, $mustal_replacers); + + echo_out("--------------- Comparing database '$schema@$host' vs. JSON '".$compare_def['database']."@".$compare_def['host']."' ---------------\n"); + $compare_differences = mustal_compare_table_array($compare_def,"in JSON",$db_def,"in DB",true,true); + echo_out((empty($compare_differences)?0:count($compare_differences))." differences.\n"); + } + } // $do_db + } // $check_db + +/* + echo_out("--------------- Locking system ---------------\n"); + if (file_exists($lockfile_name)) { + echo_out("System is already locked.\n"); + } else { + file_put_contents($lockfile_name," "); + } + + echo_out("--------------- Unlocking system ---------------\n"); + unlink($lockfile_name); +*/ + + echo_out("--------------- Done! ---------------\n"); + echo_out("--------------- ".date("Y-m-d H:i:s")." ---------------\n"); + return(0); +} + +function info() { + echo_out("OpenXE upgrade tool\n"); + echo_out("Copyright 2022 (c) OpenXE project\n"); + echo_out("\n"); + echo_out("Upgrade files and database\n"); + echo_out("Options:\n"); + echo_out("\t-s: check/do system upgrades\n"); + echo_out("\t-db: check/do database upgrades\n"); + echo_out("\t-e: export database schema\n"); + echo_out("\t-do: execute all upgrades\n"); + echo_out("\t-v: verbose output\n"); + echo_out("\t-f: force override of existing files\n"); + echo_out("\t-o: update from origin instead of remote.json\n"); + echo_out("\t-connection use connection.json in data folder instead of user.inc.php\n"); + echo_out("\t-clean: (not yet implemented) create the needed SQL to remove items from the database not in the JSON\n"); + echo_out("\n"); +} + + diff --git a/upgrade/upgrade.sh b/upgrade/upgrade.sh new file mode 100755 index 00000000..944827c1 --- /dev/null +++ b/upgrade/upgrade.sh @@ -0,0 +1,2 @@ +#!/bin/bash +sudo -u www-data php data/upgrade.php "$@" diff --git a/upgradedbonly.php b/upgradedbonly.php deleted file mode 100644 index 091676d8..00000000 --- a/upgradedbonly.php +++ /dev/null @@ -1,98 +0,0 @@ -WFuserdata . '/tmp/' . $config->WFdbname); -$serviceCacheFile = $installConf->getServiceCacheFile(); -@unlink($serviceCacheFile); - -$app = new ApplicationCore(); - -$DEBUG = 0; - -$app->Conf = $config; -$app->DB = new DB($app->Conf->WFdbhost,$app->Conf->WFdbname,$app->Conf->WFdbuser,$app->Conf->WFdbpass, $app, $app->Conf->WFdbport); -if(class_exists('erpAPICustom')) -{ - $erp = new erpAPICustom($app); -}else{ - $erp = new erpAPI($app); -} - -echo "STARTE DB Upgrade\r\n"; -$erp->UpgradeDatabase(); -echo "ENDE DB Upgrade\r\n\r\n"; - -try { - echo "STARTE Installer\r\n"; - - $resolver = new Psr4ClassNameResolver(); - $resolver->addNamespace('Xentral\\', __DIR__ . '/classes'); - $resolver->excludeFile(__DIR__ . '/classes/bootstrap.php'); - - $generator = new ClassMapGenerator($resolver, __DIR__); - $installer = new Installer($generator, $resolver); - $writer = new InstallerCacheWriter($installConf, $installer); - - $dbConfig = new DatabaseConfig( - $app->Conf->WFdbhost, - $app->Conf->WFdbuser, - $app->Conf->WFdbpass, - $app->Conf->WFdbname, - null, - $app->Conf->WFdbport - ); - $tableSchemaCreator = new TableSchemaEnsurer( - $app->Container->get('SchemaCreator'), - $installConf, - $dbConfig - ); - - echo "SCHREIBE ServiceMap\r\n"; - $writer->writeServiceCache(); - - echo "SCHREIBE JavascriptMap\r\n"; - $writer->writeJavascriptCache(); - - echo "ERZEUGE Table Schemas\r\n"; - $schemaCollection = $installer->getTableSchemas(); - $tableSchemaCreator->ensureSchemas($schemaCollection); - - echo "ENDE Installer\r\n"; - // -} catch (Exception $e) { - echo "FEHLER " . $e->getMessage() . "\r\n"; -} diff --git a/upgradesystem.php b/upgradesystem.php deleted file mode 100644 index 5b2b3261..00000000 --- a/upgradesystem.php +++ /dev/null @@ -1,7 +0,0 @@ -Conf = new Config(); -$app->DB = new DB($app->Conf->WFdbhost,$app->Conf->WFdbname,$app->Conf->WFdbuser,$app->Conf->WFdbpass,null,$app->Conf->WFdbport); -$erp = new erpAPI($app); - -$WAWISION['host'] = $app->Conf->updateHost ?? 'removed.upgrade.host'; -$WAWISION['port']="443"; - -$myUpd = new UpgradeClient($WAWISION); - - -echo "STARTE UPDATE\n"; -echo "Im folgenden stehen die Dateien die geaendert wurden.\n -Erscheinen keine Dateien sind Sie auf der neusten Version.\n"; - -$myUpd->Connect(); -//$myUpd->CheckCRT(); -$myUpd->CheckUpdate(); -$myUpd->CheckUpdateCustom(); -$myUpd->CheckUpdateModules(); - -echo "ENDE UPDATE\n"; - -//echo "STARTE DB UPGRADE\n"; -//$erp->UpgradeDatabase(); -//echo "ENDE DB UPGRADE\n"; - -//include("version.php"); -//echo "\r\nRevision: $version_revision\r\n"; - - -//$myUpd->Request(); - - - -//echo - - - -class UpgradeClient -{ - var $localmd5sums; - - function __construct($conf) - { - $this->conf = $conf; - - } - - - function Connect() - { - // check connection then stop - - } - - - function CheckCRT() - { - $cert = shell_exec("openssl s_client -connect {$this->conf['host']}:{$this->conf['port']} < /dev/null 2>/dev/null | openssl x509 -in /dev/stdin"); - if($cert==$this->conf['cert']."\n") return 1; - else { - echo "wrong\n"; - exit; - } - - } - - function CheckUpdate() - { - $parameter['version']=@$this->conf['version']; - $result = $this->Request("md5list",$parameter); - - if($result=="ERROR") { echo "Updates: ERROR FROM SERVER (Perhaps a wrong license?)\n"; return;} - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - - $file = $single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$file; - $parameter['md5sum']=$md5sum; - - if($file=="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update <- $file\n"; - $result = $this->Request("getfile",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfile",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - - function CheckUpdateModules() - { - $parameter['version']=@$this->conf['version']; - $result = $this->Request("md5listmodules",$parameter); - - if($result=="ERROR") { echo "Modules: ERROR FROM SERVER (Perhaps a wrong license?)\n"; return;} - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - - $file = $single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$file; - $parameter['md5sum']=$md5sum; - - if($file=="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update (M) <- $file\n"; - $result = $this->Request("getfilemodules",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update (M) ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei (M) <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis (M) <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfilemodules",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei (M) ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - function CheckUpdateCustom() - { - $parameter['version']=@$this->conf['version']; - $result = $this->Request("md5listcustom",$parameter); - - if($result=="ERROR") { echo "Custom: ERROR FROM SERVER (Perhaps a wrong license?)\n"; return;} - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - - $file = $single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$file; - $parameter['md5sum']=$md5sum; - - if($file=="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update (C) <- $file\n"; - $result = $this->Request("getfilecustom",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update (C) ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei (C) <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis (C) <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfilecustom",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei (C) ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - - function DownloadUpdate() - { - - - } - - function CheckDownloadedUpdate() - { - - - } - - function ExecuteUpdate() - { - - } - - - function Request($command,$parameter) - { - global $erp; - $auth['serial']=trim($erp->Firmendaten("lizenz"));//$this->conf['serial']; - $auth['authkey']=trim($erp->Firmendaten("schluessel"));//$this->conf['authkey']; - - $auth = base64_encode(json_encode($auth)); - $parameter = base64_encode(json_encode($parameter)); - - $client = new HttpClient($this->conf['host'],$this->conf['port']); - $client->post('/upgradesystem.php', array( "authjson" => $auth, "parameterjson"=>$parameter,"command"=>"$command" )); - $pageContents = $client->getContent(); - return $pageContents; - } - - function dir_rekursiv($verzeichnis) - { - $handle = opendir($verzeichnis); - - while ($datei = readdir($handle)) - { - if ($datei != "." && $datei != "..") - { - if (is_dir($verzeichnis.$datei)) // Wenn Verzeichniseintrag ein Verzeichnis ist - { - // Erneuter Funktionsaufruf, um das aktuelle Verzeichnis auszulesen - $this->dir_rekursiv($verzeichnis.$datei.'/'); - } - else - { - // Wenn Verzeichnis-Eintrag eine Datei ist, diese ausgeben - $this->localmd5sums[$verzeichnis.$datei] = md5_file($verzeichnis.$datei); - } - } - } - closedir($handle); - } - - - -} - - -/* Version 0.9, 6th April 2003 - Simon Willison ( http://simon.incutio.com/ ) - Manual: http://scripts.incutio.com/httpclient/ -*/ - -class HttpClient { - // Request vars - var $host; - var $port; - var $path; - var $method; - var $postdata = ''; - var $cookies = array(); - var $referer; - var $accept = 'text/xml,application/xml,application/xhtml+xml,text/html,text/plain,image/png,image/jpeg,image/gif,*/*'; - var $accept_encoding = 'gzip'; - var $accept_language = 'en-us'; - var $user_agent = 'Incutio HttpClient v0.9'; - // Options - var $timeout = 20; - var $use_gzip = true; - var $persist_cookies = true; // If true, received cookies are placed in the $this->cookies array ready for the next request - // Note: This currently ignores the cookie path (and time) completely. Time is not important, - // but path could possibly lead to security problems. - var $persist_referers = true; // For each request, sends path of last request as referer - var $debug = false; - var $handle_redirects = true; // Auaomtically redirect if Location or URI header is found - var $max_redirects = 5; - var $headers_only = false; // If true, stops receiving once headers have been read. - // Basic authorization variables - var $username; - var $password; - // Response vars - var $status; - var $headers = array(); - var $content = ''; - var $errormsg; - // Tracker variables - var $redirect_count = 0; - var $cookie_host = ''; - function __construct($host, $port=80) { - $this->host = $host; - $this->port = $port; - } - function get($path, $data = false) { - $this->path = $path; - $this->method = 'GET'; - if ($data) { - $this->path .= '?'.$this->buildQueryString($data); - } - return $this->doRequest(); - } - function post($path, $data) { - $this->path = $path; - $this->method = 'POST'; - $this->postdata = $this->buildQueryString($data); - return $this->doRequest(); - } - function buildQueryString($data) { - $querystring = ''; - if (is_array($data)) { - // Change data in to postable data - foreach ($data as $key => $val) { - if (is_array($val)) { - foreach ($val as $val2) { - $querystring .= urlencode($key).'='.urlencode($val2).'&'; - } - } else { - $querystring .= urlencode($key).'='.urlencode($val).'&'; - } - } - $querystring = substr($querystring, 0, -1); // Eliminate unnecessary & - } else { - $querystring = $data; - } - return $querystring; - } - function doRequest() { - // Performs the actual HTTP request, returning true or false depending on outcome - - if(!fsockopen("ssl://".$this->host, $this->port, $errno, $errstr, $this->timeout) && $this->port==443) - { - $this->port=80; - } - - if($this->port==443) - $url = "ssl://".$this->host; - else - $url = $this->host; - - if (!$fp = @fsockopen($url, $this->port, $errno, $errstr, $this->timeout)) { - // Set error message - switch($errno) { - case -3: - $this->errormsg = 'Socket creation failed (-3)'; - case -4: - $this->errormsg = 'DNS lookup failure (-4)'; - case -5: - $this->errormsg = 'Connection refused or timed out (-5)'; - default: - $this->errormsg = 'Connection failed ('.$errno.')'; - $this->errormsg .= ' '.$errstr; - $this->debug($this->errormsg); - } - return false; - } - stream_set_timeout($fp, $this->timeout); - $request = $this->buildRequest(); - $this->debug('Request', $request); - fwrite($fp, $request); - // Reset all the variables that should not persist between requests - $this->headers = array(); - $this->content = ''; - $this->errormsg = ''; - // Set a couple of flags - $inHeaders = true; - $atStart = true; - // Now start reading back the response - while (!feof($fp)) { - $line = fgets($fp, 4096); - if ($atStart) { - // Deal with first line of returned data - $atStart = false; - if (!preg_match('/HTTP\/(\\d\\.\\d)\\s*(\\d+)\\s*(.*)/', $line, $m)) { - $this->errormsg = "Status code line invalid: ".htmlentities($line); - $this->debug($this->errormsg); - //return false; - } - $http_version = $m[1]; // not used - $this->status = $m[2]; - $status_string = $m[3]; // not used - $this->debug(trim($line)); - continue; - } - if ($inHeaders) { - if (trim($line) == '') { - $inHeaders = false; - $this->debug('Received Headers', $this->headers); - if ($this->headers_only) { - break; // Skip the rest of the input - } - continue; - } - if (!preg_match('/([^:]+):\\s*(.*)/', $line, $m)) { - // Skip to the next header - continue; - } - $key = strtolower(trim($m[1])); - $val = trim($m[2]); - // Deal with the possibility of multiple headers of same name - if (isset($this->headers[$key])) { - if (is_array($this->headers[$key])) { - $this->headers[$key][] = $val; - } else { - $this->headers[$key] = array($this->headers[$key], $val); - } - } else { - $this->headers[$key] = $val; - } - continue; - } - // We're not in the headers, so append the line to the contents - $this->content .= $line; - } - fclose($fp); - // If data is compressed, uncompress it - if (isset($this->headers['content-encoding']) && $this->headers['content-encoding'] == 'gzip') { - $this->debug('Content is gzip encoded, unzipping it'); - $this->content = substr($this->content, 10); // See http://www.php.net/manual/en/function.gzencode.php - $this->content = gzinflate($this->content); - } - // If $persist_cookies, deal with any cookies - if ($this->persist_cookies && isset($this->headers['set-cookie']) && $this->host == $this->cookie_host) { - $cookies = $this->headers['set-cookie']; - if (!is_array($cookies)) { - $cookies = array($cookies); - } - foreach ($cookies as $cookie) { - if (preg_match('/([^=]+)=([^;]+);/', $cookie, $m)) { - $this->cookies[$m[1]] = $m[2]; - } - } - // Record domain of cookies for security reasons - $this->cookie_host = $this->host; - } - // If $persist_referers, set the referer ready for the next request - if ($this->persist_referers) { - $this->debug('Persisting referer: '.$this->getRequestURL()); - $this->referer = $this->getRequestURL(); - } - // Finally, if handle_redirects and a redirect is sent, do that - if ($this->handle_redirects) { - if (++$this->redirect_count >= $this->max_redirects) { - $this->errormsg = 'Number of redirects exceeded maximum ('.$this->max_redirects.')'; - $this->debug($this->errormsg); - $this->redirect_count = 0; - return false; - } - $location = isset($this->headers['location']) ? $this->headers['location'] : ''; - $uri = isset($this->headers['uri']) ? $this->headers['uri'] : ''; - if ($location || $uri) { - $url = parse_url($location.$uri); - // This will FAIL if redirect is to a different site - return $this->get($url['path']); - } - } - return true; - } - function buildRequest() { - $headers = array(); - $headers[] = "{$this->method} {$this->path} HTTP/1.0"; // Using 1.1 leads to all manner of problems, such as "chunked" encoding - $headers[] = "Host: {$this->host}"; - $headers[] = "User-Agent: {$this->user_agent}"; - $headers[] = "Accept: {$this->accept}"; - if ($this->use_gzip) { - $headers[] = "Accept-encoding: {$this->accept_encoding}"; - } - $headers[] = "Accept-language: {$this->accept_language}"; - if ($this->referer) { - $headers[] = "Referer: {$this->referer}"; - } - // Cookies - if ($this->cookies) { - $cookie = 'Cookie: '; - foreach ($this->cookies as $key => $value) { - $cookie .= "$key=$value; "; - } - $headers[] = $cookie; - } - // Basic authentication - if ($this->username && $this->password) { - $headers[] = 'Authorization: BASIC '.base64_encode($this->username.':'.$this->password); - } - // If this is a POST, set the content type and length - if ($this->postdata) { - $headers[] = 'Content-Type: application/x-www-form-urlencoded'; - $headers[] = 'Content-Length: '.strlen($this->postdata); - } - $request = implode("\r\n", $headers)."\r\n\r\n".$this->postdata; - return $request; - } - function getStatus() { - return $this->status; - } - function getContent() { - return $this->content; - } - function getHeaders() { - return $this->headers; - } - function getHeader($header) { - $header = strtolower($header); - if (isset($this->headers[$header])) { - return $this->headers[$header]; - } else { - return false; - } - } - function getError() { - return $this->errormsg; - } - function getCookies() { - return $this->cookies; - } - function getRequestURL() { - $url = 'http://'.$this->host; - if ($this->port != 80) { - $url .= ':'.$this->port; - } - $url .= $this->path; - return $url; - } - // Setter methods - function setUserAgent($string) { - $this->user_agent = $string; - } - function setAuthorization($username, $password) { - $this->username = $username; - $this->password = $password; - } - function setCookies($array) { - $this->cookies = $array; - } - // Option setting methods - function useGzip($boolean) { - $this->use_gzip = $boolean; - } - function setPersistCookies($boolean) { - $this->persist_cookies = $boolean; - } - function setPersistReferers($boolean) { - $this->persist_referers = $boolean; - } - function setHandleRedirects($boolean) { - $this->handle_redirects = $boolean; - } - function setMaxRedirects($num) { - $this->max_redirects = $num; - } - function setHeadersOnly($boolean) { - $this->headers_only = $boolean; - } - function setDebug($boolean) { - $this->debug = $boolean; - } - // "Quick" static methods - function quickGet($url) { - $bits = parse_url($url); - $host = $bits['host']; - $port = isset($bits['port']) ? $bits['port'] : 80; - $path = isset($bits['path']) ? $bits['path'] : '/'; - if (isset($bits['query'])) { - $path .= '?'.$bits['query']; - } - $client = new HttpClient($host, $port); - if (!$client->get($path)) { - return false; - } else { - return $client->getContent(); - } - } - function quickPost($url, $data) { - $bits = parse_url($url); - $host = $bits['host']; - $port = isset($bits['port']) ? $bits['port'] : 80; - $path = isset($bits['path']) ? $bits['path'] : '/'; - $client = new HttpClient($host, $port); - if (!$client->post($path, $data)) { - return false; - } else { - return $client->getContent(); - } - } - function debug($msg, $object = false) { - if ($this->debug) { - print '
HttpClient Debug: '.$msg; - if ($object) { - ob_start(); - print_r($object); - $content = htmlentities(ob_get_contents()); - ob_end_clean(); - print '
'.$content.'
'; - } - print '
'; - } - } -} diff --git a/upgradesystemclient2_include.php b/upgradesystemclient2_include.php deleted file mode 100644 index ff74008b..00000000 --- a/upgradesystemclient2_include.php +++ /dev/null @@ -1,783 +0,0 @@ -updateHost ?: 'removed.upgrade.host'; -}else{ - $updateHost = 'removed.upgrade.host'; -} - -$WAWISION['host']=$updateHost; -$WAWISION['port']="443"; - -$myUpd = new UpgradeClient($WAWISION,$this->app); - - -echo "STARTE UPDATE\n"; -echo "Im folgenden stehen die Dateien die geaendert wurden.\n -Erscheinen keine Dateien sind Sie auf der neusten Version.\n"; - -$myUpd->Connect(); -//$myUpd->CheckCRT(); -$myUpd->CheckUpdate(); -$myUpd->CheckUpdateCustom(); -$myUpd->CheckUpdateModules(); - - -class UpgradeClient -{ - var $localmd5sums; - - function __construct($conf,&$app) - { - $this->conf = $conf; - $this->app=&$app; - } - - - function Connect() - { - // check connection then stop - - } - - - function CheckCRT() - { - - $cert = shell_exec("openssl s_client -connect update.embedded-projects.net:443 < /dev/null 2>/dev/null | openssl x509 -in /dev/stdin"); - if($cert==$this->conf['cert']."\n") return 1; - else { - echo "wrong\n"; - exit; - } - - } - - function CheckUpdate() - { - $parameter['version']=@$this->conf['version']; - $result = $this->Request("md5list",$parameter); - - if($result=="ERROR") { echo "Updates: ERROR FROM SERVER (Perhaps a wrong license?)\n"; return;} - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - - $filename = $single_row[0]; - $file = __DIR__."/".$single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$filename; - $parameter['md5sum']=$md5sum; - - - if($file=="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update <- $file\n"; - $result = $this->Request("getfile",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfile",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - - function CheckUpdateModules() - { - $parameter['version']=@$this->conf['version']; - $result = $this->Request("md5listmodules",$parameter); - - if($result=="ERROR") { echo "Modules: ERROR FROM SERVER (Perhaps a wrong license?)\n"; return;} - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - $filename = $single_row[0]; - $file = dirname(__FILE__)."/".$single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$filename; - $parameter['md5sum']=$md5sum; - - if($file=="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update (M) <- $file\n"; - $result = $this->Request("getfilemodules",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update (M) ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei (M) <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis (M) <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfilemodules",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei (M) ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - function CheckUpdateCustom() - { - $parameter['version']=@$this->conf['version']; - $result = $this->Request("md5listcustom",$parameter); - - if($result=="ERROR") { echo "Custom: ERROR FROM SERVER (Perhaps a wrong license?)\n"; return;} - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - $filename = $single_row[0]; - $file = __DIR__."/".$single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$filename; - $parameter['md5sum']=$md5sum; - - if($file=="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update (C) <- $file\n"; - $result = $this->Request("getfilecustom",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update (C) ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei (C) <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis (C) <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfilecustom",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei (C) ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - - function DownloadUpdate() - { - - - } - - function CheckDownloadedUpdate() - { - - - } - - function ExecuteUpdate() - { - - } - - - function Request($command,$parameter) - { - global $erp; - $auth['serial']=$this->app->erp->Firmendaten("lizenz");//$this->conf['serial']; - $auth['authkey']=$this->app->erp->Firmendaten("schluessel");//$this->conf['authkey']; - - $auth = base64_encode(json_encode($auth)); - $parameter = base64_encode(json_encode($parameter)); - $client = new HttpClientUpgrade($this->conf['host'],$this->conf['port']); - $client->post('/upgradesystem.php', array( "authjson" => $auth, "parameterjson"=>$parameter,"command"=>"$command" )); - $pageContents = $client->getContent(); - return $pageContents; - } - - function dir_rekursiv($verzeichnis) - { - $handle = opendir($verzeichnis); - - while ($datei = readdir($handle)) - { - if ($datei != "." && $datei != "..") - { - if (is_dir($verzeichnis.$datei)) // Wenn Verzeichniseintrag ein Verzeichnis ist - { - // Erneuter Funktionsaufruf, um das aktuelle Verzeichnis auszulesen - $this->dir_rekursiv($verzeichnis.$datei.'/'); - } - else - { - // Wenn Verzeichnis-Eintrag eine Datei ist, diese ausgeben - $this->localmd5sums[$verzeichnis.$datei] = md5_file($verzeichnis.$datei); - } - } - } - closedir($handle); - } - - - -} - - -/* Version 0.9, 6th April 2003 - Simon Willison ( http://simon.incutio.com/ ) -Manual: http://scripts.incutio.com/httpclient/ - */ - -class HttpClientUpgrade { - // Request vars - var $host; - var $port; - var $path; - var $method; - var $postdata = ''; - var $cookies = array(); - var $referer; - var $accept = 'text/xml,application/xml,application/xhtml+xml,text/html,text/plain,image/png,image/jpeg,image/gif,*/*'; - var $accept_encoding = 'gzip'; - var $accept_language = 'en-us'; - var $user_agent = 'Incutio HttpClientUpgrade v0.9'; - // Options - var $timeout = 20; - var $use_gzip = true; - var $persist_cookies = true; // If true, received cookies are placed in the $this->cookies array ready for the next request - // Note: This currently ignores the cookie path (and time) completely. Time is not important, - // but path could possibly lead to security problems. - var $persist_referers = true; // For each request, sends path of last request as referer - var $debug = false; - var $handle_redirects = true; // Auaomtically redirect if Location or URI header is found - var $max_redirects = 5; - var $headers_only = false; // If true, stops receiving once headers have been read. - // Basic authorization variables - var $username; - var $password; - // Response vars - var $status; - var $headers = array(); - var $content = ''; - var $errormsg; - // Tracker variables - var $redirect_count = 0; - var $cookie_host = ''; - function __construct($host, $port=80) { - $this->host = $host; - $this->port = $port; - } - function get($path, $data = false) { - $this->path = $path; - $this->method = 'GET'; - if ($data) { - $this->path .= '?'.$this->buildQueryString($data); - } - return $this->doRequest(); - } - function post($path, $data) { - $this->path = $path; - $this->method = 'POST'; - $this->postdata = $this->buildQueryString($data); - return $this->doRequest(); - } - function buildQueryString($data) { - $querystring = ''; - if (is_array($data)) { - // Change data in to postable data - foreach ($data as $key => $val) { - if (is_array($val)) { - foreach ($val as $val2) { - $querystring .= urlencode($key).'='.urlencode($val2).'&'; - } - } else { - $querystring .= urlencode($key).'='.urlencode($val).'&'; - } - } - $querystring = substr($querystring, 0, -1); // Eliminate unnecessary & - } else { - $querystring = $data; - } - return $querystring; - } - function doRequest() { - // Performs the actual HTTP request, returning true or false depending on outcome - // check if port is available - if(!fsockopen("ssl://".$this->host, $this->port, $errno, $errstr, $this->timeout) && $this->port==443) - { - $this->port=80; - } - - if($this->port==443) - $url = "ssl://".$this->host; - else - $url = $this->host; - - if (!$fp = @fsockopen($url, $this->port, $errno, $errstr, $this->timeout)) { - // Set error message - switch($errno) { - case -3: - $this->errormsg = 'Socket creation failed (-3)'; - case -4: - $this->errormsg = 'DNS lookup failure (-4)'; - case -5: - $this->errormsg = 'Connection refused or timed out (-5)'; - default: - $this->errormsg = 'Connection failed ('.$errno.')'; - $this->errormsg .= ' '.$errstr; - $this->debug($this->errormsg); - } - return false; - } - stream_set_timeout($fp, $this->timeout); - $request = $this->buildRequest(); - $this->debug('Request', $request); - fwrite($fp, $request); - // Reset all the variables that should not persist between requests - $this->headers = array(); - $this->content = ''; - $this->errormsg = ''; - // Set a couple of flags - $inHeaders = true; - $atStart = true; - // Now start reading back the response - while (!feof($fp)) { - $line = fgets($fp, 4096); - if ($atStart) { - // Deal with first line of returned data - $atStart = false; - if (!preg_match('/HTTP\/(\\d\\.\\d)\\s*(\\d+)\\s*(.*)/', $line, $m)) { - $this->errormsg = "Status code line invalid: ".htmlentities($line); - $this->debug($this->errormsg); - //return false; - } - $http_version = $m[1]; // not used - $this->status = $m[2]; - $status_string = $m[3]; // not used - $this->debug(trim($line)); - continue; - } - if ($inHeaders) { - if (trim($line) == '') { - $inHeaders = false; - $this->debug('Received Headers', $this->headers); - if ($this->headers_only) { - break; // Skip the rest of the input - } - continue; - } - if (!preg_match('/([^:]+):\\s*(.*)/', $line, $m)) { - // Skip to the next header - continue; - } - $key = strtolower(trim($m[1])); - $val = trim($m[2]); - // Deal with the possibility of multiple headers of same name - if (isset($this->headers[$key])) { - if (is_array($this->headers[$key])) { - $this->headers[$key][] = $val; - } else { - $this->headers[$key] = array($this->headers[$key], $val); - } - } else { - $this->headers[$key] = $val; - } - continue; - } - // We're not in the headers, so append the line to the contents - $this->content .= $line; - } - fclose($fp); - // If data is compressed, uncompress it - if (isset($this->headers['content-encoding']) && $this->headers['content-encoding'] == 'gzip') { - $this->debug('Content is gzip encoded, unzipping it'); - $this->content = substr($this->content, 10); // See http://www.php.net/manual/en/function.gzencode.php - $this->content = gzinflate($this->content); - } - // If $persist_cookies, deal with any cookies - if ($this->persist_cookies && isset($this->headers['set-cookie']) && $this->host == $this->cookie_host) { - $cookies = $this->headers['set-cookie']; - if (!is_array($cookies)) { - $cookies = array($cookies); - } - foreach ($cookies as $cookie) { - if (preg_match('/([^=]+)=([^;]+);/', $cookie, $m)) { - $this->cookies[$m[1]] = $m[2]; - } - } - // Record domain of cookies for security reasons - $this->cookie_host = $this->host; - } - // If $persist_referers, set the referer ready for the next request - if ($this->persist_referers) { - $this->debug('Persisting referer: '.$this->getRequestURL()); - $this->referer = $this->getRequestURL(); - } - // Finally, if handle_redirects and a redirect is sent, do that - if ($this->handle_redirects) { - if (++$this->redirect_count >= $this->max_redirects) { - $this->errormsg = 'Number of redirects exceeded maximum ('.$this->max_redirects.')'; - $this->debug($this->errormsg); - $this->redirect_count = 0; - return false; - } - $location = isset($this->headers['location']) ? $this->headers['location'] : ''; - $uri = isset($this->headers['uri']) ? $this->headers['uri'] : ''; - if ($location || $uri) { - $url = parse_url($location.$uri); - // This will FAIL if redirect is to a different site - return $this->get($url['path']); - } - } - return true; - } - function buildRequest() { - $headers = array(); - $headers[] = "{$this->method} {$this->path} HTTP/1.0"; // Using 1.1 leads to all manner of problems, such as "chunked" encoding - $headers[] = "Host: {$this->host}"; - $headers[] = "User-Agent: {$this->user_agent}"; - $headers[] = "Accept: {$this->accept}"; - if ($this->use_gzip) { - $headers[] = "Accept-encoding: {$this->accept_encoding}"; - } - $headers[] = "Accept-language: {$this->accept_language}"; - if ($this->referer) { - $headers[] = "Referer: {$this->referer}"; - } - // Cookies - if ($this->cookies) { - $cookie = 'Cookie: '; - foreach ($this->cookies as $key => $value) { - $cookie .= "$key=$value; "; - } - $headers[] = $cookie; - } - // Basic authentication - if ($this->username && $this->password) { - $headers[] = 'Authorization: BASIC '.base64_encode($this->username.':'.$this->password); - } - // If this is a POST, set the content type and length - if ($this->postdata) { - $headers[] = 'Content-Type: application/x-www-form-urlencoded'; - $headers[] = 'Content-Length: '.strlen($this->postdata); - } - $request = implode("\r\n", $headers)."\r\n\r\n".$this->postdata; - return $request; - } - function getStatus() { - return $this->status; - } - function getContent() { - return $this->content; - } - function getHeaders() { - return $this->headers; - } - function getHeader($header) { - $header = strtolower($header); - if (isset($this->headers[$header])) { - return $this->headers[$header]; - } else { - return false; - } - } - function getError() { - return $this->errormsg; - } - function getCookies() { - return $this->cookies; - } - function getRequestURL() { - $url = 'http://'.$this->host; - if ($this->port != 80) { - $url .= ':'.$this->port; - } - $url .= $this->path; - return $url; - } - // Setter methods - function setUserAgent($string) { - $this->user_agent = $string; - } - function setAuthorization($username, $password) { - $this->username = $username; - $this->password = $password; - } - function setCookies($array) { - $this->cookies = $array; - } - // Option setting methods - function useGzip($boolean) { - $this->use_gzip = $boolean; - } - function setPersistCookies($boolean) { - $this->persist_cookies = $boolean; - } - function setPersistReferers($boolean) { - $this->persist_referers = $boolean; - } - function setHandleRedirects($boolean) { - $this->handle_redirects = $boolean; - } - function setMaxRedirects($num) { - $this->max_redirects = $num; - } - function setHeadersOnly($boolean) { - $this->headers_only = $boolean; - } - function setDebug($boolean) { - $this->debug = $boolean; - } - // "Quick" static methods - function quickGet($url) { - $bits = parse_url($url); - $host = $bits['host']; - $port = isset($bits['port']) ? $bits['port'] : 80; - $path = isset($bits['path']) ? $bits['path'] : '/'; - if (isset($bits['query'])) { - $path .= '?'.$bits['query']; - } - $client = new HttpClientUpgrade($host, $port); - if (!$client->get($path)) { - return false; - } else { - return $client->getContent(); - } - } - function quickPost($url, $data) { - $bits = parse_url($url); - $host = $bits['host']; - $port = isset($bits['port']) ? $bits['port'] : 80; - $path = isset($bits['path']) ? $bits['path'] : '/'; - $client = new HttpClientUpgrade($host, $port); - if (!$client->post($path, $data)) { - return false; - } else { - return $client->getContent(); - } - } - function debug($msg, $object = false) { - if ($this->debug) { - print '
HttpClientUpgrade Debug: '.$msg; - if ($object) { - ob_start(); - print_r($object); - $content = htmlentities(ob_get_contents()); - ob_end_clean(); - print '
'.$content.'
'; - } - print '
'; - } - } -} - diff --git a/upgradesystemclient2_includekey.php b/upgradesystemclient2_includekey.php deleted file mode 100644 index 8a3ed511..00000000 --- a/upgradesystemclient2_includekey.php +++ /dev/null @@ -1,928 +0,0 @@ -updateHost ?: 'removed.upgrade.host'; -}else{ - $updateHost = 'removed.upgrade.host'; -} -define('XENTRAL_UPDATE_HOST', $updateHost); - -$WAWISION['host']=XENTRAL_UPDATE_HOST; -$WAWISION['port']="443"; - -$myUpd = new UpgradeClient($WAWISION,$this->app); - - -$myUpd->Connect(); -if(isset($sendStats)) { -} -elseif(isset($buy)) { -} -elseif(isset($getBuyList)) { -} -elseif(isset($getBuyInfo)) { -} -elseif(isset($setBeta)) { -} -elseif(isset($setDevelopmentVersion)) { -} -elseif(isset($buyFromDemo)) { -} -elseif(isset($resetXentral)) { -} -elseif(isset($fiskalyCommand)) { -} -elseif(isset($createFiskalyClientFromClientId) && isset($tseId) && isset($organizationId)) { -} -elseif(isset($sma) && isset($sendSmaErrorMessage)) { -} -else{ -} -if(!class_exists('Md5Dateien')) -{ - class Md5Dateien - { - var $Dateien; - function __construct($quellverzeichnis) - { - $this->getVerzeichnis($quellverzeichnis, '', 0, ''); - } - - function getVerzeichnis($quellverzeichnis, $zielverzeichnis, $lvl, $relativ){ - //echo "Verzeichnis: ".$quellverzeichnis." ".$zielverzeichnis. "\r\n"; - - $quelllast = $quellverzeichnis; - if($quellverzeichnis[strlen($quellverzeichnis) - 1] == '/')$quelllast = substr($quellverzeichnis, 0, strlen($quellverzeichnis) - 1); - - $path_parts = pathinfo($quelllast); - - $quelllast = $path_parts['basename']; - - if(file_exists($quellverzeichnis)) - { - if($quelllast != 'importer' || $lvl != 1){ - if ($handle = opendir($quellverzeichnis)) { - while (false !== ($entry = readdir($handle))) { - - if($entry != '.' && $entry != '..' && $entry != '.git' && $entry != '.svn' && $entry != 'main.conf.php' && $entry != 'user.inc.php' && $entry != 'user_db_version.php' && $entry != 'pygen') - { - if(is_dir($quellverzeichnis.'/'.$entry)) - { - if(!($lvl == 1 && $entry == 'vorlagen' && strpos($quellverzeichnis,'www'))) - $this->getVerzeichnis($quellverzeichnis.(strrpos($quellverzeichnis,'/')!==strlen($quellverzeichnis)-1?'/':'').$entry,$zielverzeichnis .(strrpos($zielverzeichnis,'/')!==strlen($zielverzeichnis)-1?'/':'').$entry, $lvl + 1,$relativ.'/'.$entry); - } else { - if(!($lvl == 0 && ($entry == 'INSTALL' || $entry == 'LICENSE_LIST' || $entry == 'LICENSE' || $entry == 'README' || $entry == 'gitlog.txt'))) - { - //$this->getFile($quellverzeichnis.(strrpos($quellverzeichnis,'/')!==strlen($quellverzeichnis)-1?'/':'').$entry,$zielverzeichnis .(strrpos($zielverzeichnis,'/')!==strlen($zielverzeichnis)-1?'/':'').$entry,$relativ.'/'.$entry); - if(strtolower(substr($entry,-4)) == '.php')$this->Dateien[$relativ.'/'.$entry] = md5_file($quellverzeichnis.(strrpos($quellverzeichnis,'/')!==strlen($quellverzeichnis)-1?'/':'').$entry); - } - } - } - } - @closedir($handle); - } else { - - } - } - - } else { - - } - - return true; - } - } -} - -class UpgradeClient -{ - var $localmd5sums; - - /** - * UpgradeClient constructor. - * - * @param Config $conf - * @param ApplicationCore $app - */ - public function __construct($conf, $app) - { - $this->conf = $conf; - $this->app = $app; - } - - - function Connect() - { - // check connection then stop - - } - - - function CheckCRT() - { - $updateHost = XENTRAL_UPDATE_HOST; - $cert = shell_exec("openssl s_client -connect {$updateHost}:443 < /dev/null 2>/dev/null | openssl x509 -in /dev/stdin"); - if($cert==$this->conf['cert']."\n") return 1; - else { - echo "wrong\n"; - exit; - } - - } - - function CheckUpdate() - { - //$this->dir_rekursiv("./"); - //$parameter['md5sums'] = $this->localmd5sums; - //shell_exec('find ./ -exec md5sum "{}" \;'); - $lines = null; - $funktions_ind = null; - $dateien = new Md5Dateien(__DIR__.'/'); - if(!empty($dateien->Dateien) && is_array($dateien->Dateien)) { - foreach($dateien->Dateien as $k => $v) { - if( - strtolower(substr($k,-4)) === '.php' - && strpos($k, '_custom') !== false - && strpos($k,'/vendor/') === false - ) { - $datei = __DIR__.$k; - if(!file_exists($datei)) { - continue; - } - $fh = fopen($datei, 'r'); - if(!$fh) { - continue; - } - $f_ind = -1; - if(isset($lines)) { - unset($lines); - } - $i = -1; - while(($line = fgets($fh)) !== false) { - $i++; - $lines[$i] = $line; - if(isset($funktions_ind) && isset($funktions_ind[$k])) { - foreach($funktions_ind[$k] as $k2 => $v2) { - if($v2 + 5 >= $i) { - $funktions[$k][$k2][] = $line; - } - } - } - if(strpos($line, 'function') !== false) { - $f_ind++; - for($j = $i-5; $j <= $i; $j++) { - if($j > -1) { - $funktions[$k][$f_ind][] = $lines[$j]; - } - } - $funktions_ind[$k][$f_ind] = $i; - } - } - fclose($fh); - } - } - } - $parameter['version'] = @$this->conf['version']; - if(isset($funktions)) { - $parameter['funktionen'] = $funktions; - $this->Request("versionen", $parameter); - } - - if (is_file(__DIR__ . '/marketing_labels.txt')) { - $parameter['marketing_labels'] = explode(',', (string)@file_get_contents(__DIR__ . '/marketing_labels.txt')); - } - $result = $this->Request("md5list",$parameter); - - if($result==="ERROR") { - echo "Updates: ERROR FROM SERVER (Perhaps a wrong license?)\n"; - return; - } - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - - $filename = $single_row[0]; - $file = __DIR__."/".$single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$filename; - $parameter['md5sum']=$md5sum; - - - if($file==="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update <- $file\n"; - $result = $this->Request("getfile",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfile",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - - function CheckUpdateModules() - { - $parameter['version']=@$this->conf['version']; - $result = $this->Request("md5listmodules",$parameter); - - if($result=="ERROR") { echo "Modules: ERROR FROM SERVER (Perhaps a wrong license?)\n"; return;} - - $rows = explode(";",$result); - - if(count($rows)>0) - { - foreach($rows as $value) - { - unset($single_row); - $single_row = explode(":",$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) - { - $filename = $single_row[0]; - $file = dirname(__FILE__)."/".$single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$filename; - $parameter['md5sum']=$md5sum; - - if($file=="./upgradesystemclient.php") - { - - } - else if(is_file($file)) - { - // pruefe md5sum - if(md5_file($file)!=$md5sum) - { - // wenn update dann UPD_ - echo "update (M) <- $file\n"; - $result = $this->Request("getfilemodules",$parameter); - $output = (base64_decode($result)); - //$output = preg_replace('/[^(\x22-\x7F)\x0A]*/','', $output); - file_put_contents($file."UPD", $output); - /* - $fp = fopen($file."UPD","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - // pruefsuemme neu berechnen wenn passt umbenennen und ins archiv - echo md5_file($file."UPD"); - echo "-".$md5sum."\n"; - if(md5_file($file."UPD")==$md5sum) - { - echo "update (M) ok $file\n"; - rename($file."UPD",$file); - } - } - } else if($file!="") { - echo "datei (M) <- $file\n"; - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis)) - { - echo "verzeichnis (M) <- $verzeichnis\n"; - mkdir($verzeichnis,0777,true); - } - $result = $this->Request("getfilemodules",$parameter); - $output = base64_decode($result); - //$output = iconv("UTF-8","ISO-8859-1//IGNORE",$output); - //$output = iconv("ISO-8859-1","UTF-8",$output); - //$output = preg_replace('/[^(\x20-\x7F)\x0A]*/','', $output); - file_put_contents($file."NEW", $output); - /*$fp = fopen($file."NEW","wb+"); - fwrite($fp,base64_decode($result)); - fclose($fp); - */ - if(md5_file($file."NEW")==$md5sum) - { - echo "datei (M) ok $file\n"; - rename($file."NEW",$file); - } else { - // echo "datei XX $file local: ".md5_file($file."NEW")." remote: ".$md5sum."\n"; - - } - } else { } - } - } - - - } - //pruefe, update, lege verzeichnis an, lege datei an, loesche datei???? - - - - // download all files with UPD_ prefix - - - // get md5 liste von server - - // pruefe ob alle dateien passen, wenn ja dann alle updaten am schluss - - // wenn nein fehler abbrechen und ganzen prozess nochmal starten - - //echo $md5sums; - - - } - - /** - * @param array $data - * - * @return string|null - */ - public function sendSetDevelopmentStatus($data) - { - $parameter['version'] = isset($this->conf['version']) ? $this->conf['version']: null; - $parameter['data'] = $data; - - return $this->Request('setdevelopmentversion', $parameter); - } - - /** - * @param array $data - * - * @return string|null - */ - public function sendSetBetaStatus($data) - { - $parameter['version'] = isset($this->conf['version']) ? $this->conf['version']: null; - $parameter['data'] = $data; - - return $this->Request('setbeta', $parameter); - } - - - function CheckUpdateKey() - { - $parameter['SERVER_NAME'] = $_SERVER['SERVER_NAME']; - if(!empty($_SERVER['HTTP_HOST']) && (empty($parameter['SERVER_NAME']) || $parameter['SERVER_NAME'] === '_')) { - $parameter['SERVER_NAME'] = $_SERVER['HTTP_HOST']; - } - $parameter['phpversion'] = (String)phpversion(); - $parameter['mysqlversion'] = $this->app->DB->GetVersion(); - $parameter['version']=@$this->conf['version']; - $result = $this->Request('md5listcustom',$parameter); - - if($result==='ERROR') { - return false; - } - - $rows = explode(';',$result); - - $return = false; - - if(count($rows) <= 0) { - return false; - } - - foreach($rows as $value) { - unset($single_row); - $single_row = explode(':',$value); - - if(count($single_row)>=2 && strlen($single_row[0])>3 && strlen($single_row[1])>3) { - $filename = $single_row[0]; - $file = __DIR__.'/'.$single_row[0]; - $md5sum = $single_row[1]; - - $parameter['file']=$filename; - $parameter['md5sum']=$md5sum; - - $fileOk = $filename === './key.php'; - if(!$fileOk && strpos($md5sum, 'DEL') === false) { - if($filename === './www/themes/new/templates/loginslider.tpl') { - $fileOk = true; - } - elseif(strpos($filename ,'./www/themes/new/templates/') === 0 - && (substr($filename,-4) === '.jpg' || substr($filename,-5) === '.jpeg') - && strpos($filename, '/', 28) === false) { - $fileOk = true; - } - } - if(!$fileOk) { - continue; - } - - if(is_file($file)) { - - // pruefe md5sum - if(md5_file($file)!=$md5sum) { - // wenn update dann UPD_ - $result = $this->Request('getfilecustom',$parameter); - $output = (base64_decode($result)); - file_put_contents($file.'UPD', $output); - - if(md5_file($file.'UPD')==$md5sum && $result) { - $return = rename($file.'UPD',$file); - } - } - else { - $return = true; - } - continue; - } - - // pruefe ob es verzeichnis gibt - $verzeichnis = dirname($file); - if(!is_dir($verzeichnis) && !mkdir($verzeichnis,0777,true) && !is_dir($verzeichnis)) { - } - $result = $this->Request('getfilecustom',$parameter); - $output = base64_decode($result); - file_put_contents($file.'NEW', $output); - if(md5_file($file.'NEW')==$md5sum) { - $return = rename($file.'NEW',$file); - } - } - } - - - return $return; - } - - - function DownloadUpdate() - { - - - } - - function CheckDownloadedUpdate() - { - - - } - - function ExecuteUpdate() - { - - } - - - function Request($command,$parameter) - { - global $erp; - $auth['serial']=$this->app->erp->Firmendaten("lizenz");//$this->conf['serial']; - $auth['authkey']=$this->app->erp->Firmendaten("schluessel");//$this->conf['authkey']; - $auth['SERVER_NAME'] = (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] != '')?$_SERVER['SERVER_NAME']:(isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:''); - $auth = base64_encode(json_encode($auth)); - $parameter = base64_encode(json_encode($parameter)); - $client = new HttpClientUpgrade($this->conf['host'],$this->conf['port']); - $client->post('/upgradesystem.php', array( "authjson" => $auth, "parameterjson"=>$parameter,"command"=>"$command" )); - $pageContents = $client->getContent(); - return $pageContents; - } - - function dir_rekursiv($verzeichnis) - { - $handle = opendir($verzeichnis); - - while ($datei = readdir($handle)) - { - if ($datei != "." && $datei != "..") - { - if (is_dir($verzeichnis.$datei)) // Wenn Verzeichniseintrag ein Verzeichnis ist - { - // Erneuter Funktionsaufruf, um das aktuelle Verzeichnis auszulesen - $this->dir_rekursiv($verzeichnis.$datei.'/'); - } - else - { - // Wenn Verzeichnis-Eintrag eine Datei ist, diese ausgeben - $this->localmd5sums[$verzeichnis.$datei] = md5_file($verzeichnis.$datei); - } - } - } - closedir($handle); - } - - - -} - - -/* Version 0.9, 6th April 2003 - Simon Willison ( http://simon.incutio.com/ ) -Manual: http://scripts.incutio.com/httpclient/ - */ - -class HttpClientUpgrade { - // Request vars - var $host; - var $port; - var $path; - var $method; - var $postdata = ''; - var $cookies = array(); - var $referer; - var $accept = 'text/xml,application/xml,application/xhtml+xml,text/html,text/plain,image/png,image/jpeg,image/gif,*/*'; - var $accept_encoding = 'gzip'; - var $accept_language = 'en-us'; - var $user_agent = 'Incutio HttpClientUpgrade v0.9'; - // Options - var $timeout = 20; - var $use_gzip = true; - var $persist_cookies = true; // If true, received cookies are placed in the $this->cookies array ready for the next request - // Note: This currently ignores the cookie path (and time) completely. Time is not important, - // but path could possibly lead to security problems. - var $persist_referers = true; // For each request, sends path of last request as referer - var $debug = false; - var $handle_redirects = true; // Auaomtically redirect if Location or URI header is found - var $max_redirects = 5; - var $headers_only = false; // If true, stops receiving once headers have been read. - // Basic authorization variables - var $username; - var $password; - // Response vars - var $status; - var $headers = array(); - var $content = ''; - var $errormsg; - // Tracker variables - var $redirect_count = 0; - var $cookie_host = ''; - function __construct($host, $port=80) { - $this->host = $host; - $this->port = $port; - } - function get($path, $data = false) { - $this->path = $path; - $this->method = 'GET'; - if ($data) { - $this->path .= '?'.$this->buildQueryString($data); - } - return $this->doRequest(); - } - function post($path, $data) { - $this->path = $path; - $this->method = 'POST'; - $this->postdata = $this->buildQueryString($data); - return $this->doRequest(); - } - function buildQueryString($data) { - $querystring = ''; - if (is_array($data)) { - // Change data in to postable data - foreach ($data as $key => $val) { - if (is_array($val)) { - foreach ($val as $val2) { - $querystring .= urlencode($key).'='.urlencode($val2).'&'; - } - } else { - $querystring .= urlencode($key).'='.urlencode($val).'&'; - } - } - $querystring = substr($querystring, 0, -1); // Eliminate unnecessary & - } else { - $querystring = $data; - } - return $querystring; - } - function doRequest() { - // Performs the actual HTTP request, returning true or false depending on outcome - // check if port is available - if(!fsockopen("ssl://".$this->host, $this->port, $errno, $errstr, $this->timeout) && $this->port==443) - { - $this->port=80; - } - - if($this->port==443) - $url = "ssl://".$this->host; - else - $url = $this->host; - - if (!$fp = @fsockopen($url, $this->port, $errno, $errstr, $this->timeout)) { - // Set error message - switch($errno) { - case -3: - $this->errormsg = 'Socket creation failed (-3)'; - case -4: - $this->errormsg = 'DNS lookup failure (-4)'; - case -5: - $this->errormsg = 'Connection refused or timed out (-5)'; - default: - $this->errormsg = 'Connection failed ('.$errno.')'; - $this->errormsg .= ' '.$errstr; - $this->debug($this->errormsg); - } - return false; - } - socket_set_timeout($fp, $this->timeout); - $request = $this->buildRequest(); - $this->debug('Request', $request); - fwrite($fp, $request); - // Reset all the variables that should not persist between requests - $this->headers = array(); - $this->content = ''; - $this->errormsg = ''; - // Set a couple of flags - $inHeaders = true; - $atStart = true; - // Now start reading back the response - while (!feof($fp)) { - $line = fgets($fp, 4096); - if ($atStart) { - // Deal with first line of returned data - $atStart = false; - if (!preg_match('/HTTP\/(\\d\\.\\d)\\s*(\\d+)\\s*(.*)/', $line, $m)) { - $this->errormsg = "Status code line invalid: ".htmlentities($line); - $this->debug($this->errormsg); - //return false; - } - $http_version = $m[1]; // not used - $this->status = $m[2]; - $status_string = $m[3]; // not used - $this->debug(trim($line)); - continue; - } - if ($inHeaders) { - if (trim($line) == '') { - $inHeaders = false; - $this->debug('Received Headers', $this->headers); - if ($this->headers_only) { - break; // Skip the rest of the input - } - continue; - } - if (!preg_match('/([^:]+):\\s*(.*)/', $line, $m)) { - // Skip to the next header - continue; - } - $key = strtolower(trim($m[1])); - $val = trim($m[2]); - // Deal with the possibility of multiple headers of same name - if (isset($this->headers[$key])) { - if (is_array($this->headers[$key])) { - $this->headers[$key][] = $val; - } else { - $this->headers[$key] = array($this->headers[$key], $val); - } - } else { - $this->headers[$key] = $val; - } - continue; - } - // We're not in the headers, so append the line to the contents - $this->content .= $line; - } - fclose($fp); - // If data is compressed, uncompress it - if (isset($this->headers['content-encoding']) && $this->headers['content-encoding'] == 'gzip') { - $this->debug('Content is gzip encoded, unzipping it'); - $this->content = substr($this->content, 10); // See http://www.php.net/manual/en/function.gzencode.php - $this->content = gzinflate($this->content); - } - // If $persist_cookies, deal with any cookies - if ($this->persist_cookies && isset($this->headers['set-cookie']) && $this->host == $this->cookie_host) { - $cookies = $this->headers['set-cookie']; - if (!is_array($cookies)) { - $cookies = array($cookies); - } - foreach ($cookies as $cookie) { - if (preg_match('/([^=]+)=([^;]+);/', $cookie, $m)) { - $this->cookies[$m[1]] = $m[2]; - } - } - // Record domain of cookies for security reasons - $this->cookie_host = $this->host; - } - // If $persist_referers, set the referer ready for the next request - if ($this->persist_referers) { - $this->debug('Persisting referer: '.$this->getRequestURL()); - $this->referer = $this->getRequestURL(); - } - // Finally, if handle_redirects and a redirect is sent, do that - if ($this->handle_redirects) { - if (++$this->redirect_count >= $this->max_redirects) { - $this->errormsg = 'Number of redirects exceeded maximum ('.$this->max_redirects.')'; - $this->debug($this->errormsg); - $this->redirect_count = 0; - return false; - } - $location = isset($this->headers['location']) ? $this->headers['location'] : ''; - $uri = isset($this->headers['uri']) ? $this->headers['uri'] : ''; - if ($location || $uri) { - $url = parse_url($location.$uri); - // This will FAIL if redirect is to a different site - return $this->get($url['path']); - } - } - return true; - } - function buildRequest() { - $headers = array(); - $headers[] = "{$this->method} {$this->path} HTTP/1.0"; // Using 1.1 leads to all manner of problems, such as "chunked" encoding - $headers[] = "Host: {$this->host}"; - $headers[] = "User-Agent: {$this->user_agent}"; - $headers[] = "Accept: {$this->accept}"; - if ($this->use_gzip) { - $headers[] = "Accept-encoding: {$this->accept_encoding}"; - } - $headers[] = "Accept-language: {$this->accept_language}"; - if ($this->referer) { - $headers[] = "Referer: {$this->referer}"; - } - // Cookies - if ($this->cookies) { - $cookie = 'Cookie: '; - foreach ($this->cookies as $key => $value) { - $cookie .= "$key=$value; "; - } - $headers[] = $cookie; - } - // Basic authentication - if ($this->username && $this->password) { - $headers[] = 'Authorization: BASIC '.base64_encode($this->username.':'.$this->password); - } - // If this is a POST, set the content type and length - if ($this->postdata) { - $headers[] = 'Content-Type: application/x-www-form-urlencoded'; - $headers[] = 'Content-Length: '.strlen($this->postdata); - } - $request = implode("\r\n", $headers)."\r\n\r\n".$this->postdata; - return $request; - } - function getStatus() { - return $this->status; - } - function getContent() { - return $this->content; - } - function getHeaders() { - return $this->headers; - } - function getHeader($header) { - $header = strtolower($header); - if (isset($this->headers[$header])) { - return $this->headers[$header]; - } else { - return false; - } - } - function getError() { - return $this->errormsg; - } - function getCookies() { - return $this->cookies; - } - function getRequestURL() { - $url = 'http://'.$this->host; - if ($this->port != 80) { - $url .= ':'.$this->port; - } - $url .= $this->path; - return $url; - } - // Setter methods - function setUserAgent($string) { - $this->user_agent = $string; - } - function setAuthorization($username, $password) { - $this->username = $username; - $this->password = $password; - } - function setCookies($array) { - $this->cookies = $array; - } - // Option setting methods - function useGzip($boolean) { - $this->use_gzip = $boolean; - } - function setPersistCookies($boolean) { - $this->persist_cookies = $boolean; - } - function setPersistReferers($boolean) { - $this->persist_referers = $boolean; - } - function setHandleRedirects($boolean) { - $this->handle_redirects = $boolean; - } - function setMaxRedirects($num) { - $this->max_redirects = $num; - } - function setHeadersOnly($boolean) { - $this->headers_only = $boolean; - } - function setDebug($boolean) { - $this->debug = $boolean; - } - // "Quick" static methods - function quickGet($url) { - $bits = parse_url($url); - $host = $bits['host']; - $port = isset($bits['port']) ? $bits['port'] : 80; - $path = isset($bits['path']) ? $bits['path'] : '/'; - if (isset($bits['query'])) { - $path .= '?'.$bits['query']; - } - $client = new HttpClientUpgrade($host, $port); - if (!$client->get($path)) { - return false; - } else { - return $client->getContent(); - } - } - function quickPost($url, $data) { - $bits = parse_url($url); - $host = $bits['host']; - $port = isset($bits['port']) ? $bits['port'] : 80; - $path = isset($bits['path']) ? $bits['path'] : '/'; - $client = new HttpClientUpgrade($host, $port); - if (!$client->post($path, $data)) { - return false; - } else { - return $client->getContent(); - } - } - function debug($msg, $object = false) { - if ($this->debug) { - print '
HttpClientUpgrade Debug: '.$msg; - if ($object) { - ob_start(); - print_r($object); - $content = htmlentities(ob_get_contents()); - ob_end_clean(); - print '
'.$content.'
'; - } - print '
'; - } - } -} diff --git a/vendor/mustal/mustal_mysql_upgrade_tool.php b/vendor/mustal/mustal_mysql_upgrade_tool.php new file mode 100644 index 00000000..00e90458 --- /dev/null +++ b/vendor/mustal/mustal_mysql_upgrade_tool.php @@ -0,0 +1,748 @@ + $value) { + + // Apply aliases + if (!empty($column_collation_aliases)) { + foreach($column_collation_aliases as $column_collation_alias) { + if ($value == $column_collation_alias[0]) { + $value = $column_collation_alias[1]; + } + if ($found_column[$key] == $column_collation_alias[0]) { + $found_column[$key] = $column_collation_alias[1]; + } + } + } + if ($found_column[$key] != $value) { + if ($key != 'Key') { // Keys will be handled separately + $compare_difference = array(); + $compare_difference['type'] = "Column definition"; + $compare_difference['table'] = $database_table['name']; + $compare_difference['column'] = $column['Field']; + $compare_difference['property'] = $key; + $compare_difference[$nominal_name] = $value; + $compare_difference[$actual_name] = $found_column[$key]; + $compare_differences[] = $compare_difference; + } + } + } + unset($value); + } // $check_column_definitions + } else { + $compare_difference = array(); + $compare_difference['type'] = "Column existence"; + $compare_difference['table'] = $database_table['name']; + $compare_difference[$nominal_name] = $column['Field']; + $compare_differences[] = $compare_difference; + } + } + unset($column); + + + // Check keys + $compare_table_sql_indexs = array_column($found_table['keys'],'Key_name'); + foreach ($database_table['keys'] as $sql_index) { + + $sql_index_name_to_find = $sql_index['Key_name']; + $sql_index_key = array_search($sql_index_name_to_find,$compare_table_sql_indexs,true); + if ($sql_index_key !== false) { + + // Compare the properties of the sql_indexs + if ($check_column_definitions) { + $found_sql_index = $found_table['keys'][$sql_index_key]; + foreach ($sql_index as $key => $value) { + if ($found_sql_index[$key] != $value) { + +// if ($key != 'permissions') { + $compare_difference = array(); + $compare_difference['type'] = "Key definition"; + $compare_difference['table'] = $database_table['name']; + $compare_difference['key'] = $sql_index['Key_name']; + $compare_difference['property'] = $key; + $compare_difference[$nominal_name] = implode(',',$value); + $compare_difference[$actual_name] = implode(',',$found_sql_index[$key]); + $compare_differences[] = $compare_difference; +// } + } + } + unset($value); + } // $check_sql_index_definitions + } else { + $compare_difference = array(); + $compare_difference['type'] = "Key existence"; + $compare_difference['table'] = $database_table['name']; + $compare_difference[$nominal_name] = $sql_index['Key_name']; + $compare_differences[] = $compare_difference; + } + } + unset($sql_index); + + + } else { + $compare_difference = array(); + $compare_difference['type'] = "Table existence"; + $compare_difference[$nominal_name] = $database_table['name']; + $compare_differences[] = $compare_difference; + } + } + unset($database_table); + + foreach ($nominal['views'] as $database_view) { + $found_view = array(); + foreach ($actual['views'] as $compare_view) { + if ($database_view['name'] == $compare_view['name']) { + $found_view = $compare_view; + break; + } + } + unset($compare_view); + + if ($found_view) { + + if (trim($database_view['Create']) != trim($found_view['Create'])) { + $compare_difference = array(); + $compare_difference['type'] = "View definition"; + $compare_difference[$nominal_name] = $database_view['name']; + $compare_differences[] = $compare_difference; + } + + } else { + $compare_difference = array(); + $compare_difference['type'] = "View existence"; + $compare_difference[$nominal_name] = $database_view['name']; + $compare_differences[] = $compare_difference; + } + } + + return($compare_differences); +} + + +// Generate SQL to create or modify column +function mustal_column_sql_definition(string $table_name, array $column, array $reserved_words_without_quote) : string { + + foreach($column as $key => &$value) { + $value = (string) $value; + $value = mustal_column_sql_create_property_definition($key,$value,$reserved_words_without_quote); + } + + // Default handling here + if ($column['Default'] == " DEFAULT ''") { + $column['Default'] = ""; + } + + $sql = + $column['Type']. + $column['Null']. + $column['Default']. + $column['Extra']. + $column['Collation']; + + return($sql); +} + +// Generate SQL to modify a single column property +function mustal_column_sql_create_property_definition(string $property, string $property_value, array $reserved_words_without_quote) : string { + + switch ($property) { + case 'Type': + break; + case 'Null': + if ($property_value == "NO") { + $property_value = " NOT NULL"; // Idiotic... + } + if ($property_value == "YES") { + $property_value = " NULL"; // Also Idiotic... + } + break; + case 'Default': + // Check for MYSQL function mustal_call as default + + if (in_array(strtolower($property_value),$reserved_words_without_quote)) { + $quote = ""; + } else { + // Remove quotes if there are + $property_value = trim($property_value,"'"); + $quote = "'"; + } + $property_value = " DEFAULT $quote".$property_value."$quote"; + break; + case 'Extra': + if ($property_value != '') { + $property_value = " ".$property_value; + } + break; + case 'Collation': + if ($property_value != '') { + $property_value = " COLLATE ".$property_value; + } + break; + default: + $property_value = ""; + break; + } + + return($property_value); +} + +// Replaces different variants of the same function mustal_to allow comparison +function mustal_sql_replace_reserved_functions(array &$column, array $replacers) { + + $result = strtolower($column['Default']); + foreach ($replacers as $replace) { + if ($result == $replace[0]) { + $result = $replace[1]; + } + } + $column['Default'] = $result; + + $result = strtolower($column['Extra']); + foreach ($replacers as $replace) { + if ($result == $replace[0]) { + $result = $replace[1]; + } + } + $column['Extra'] = $result; +} + +// Is it a text type? -> Use quotes then +function mustal_mysql_put_text_type_in_quotes(string $checktype, string $value) : string { + $types = array('char','varchar','tinytext','text','mediumtext','longtext'); + + foreach($types as $type) { + if (stripos($checktype, $type) !== false) { + return("'".$value."'"); + } + } + return($value); +} + +function mustal_implode_with_quote(string $quote, string $delimiter, array $array_to_implode) : string { + return($quote.implode($quote.$delimiter.$quote, $array_to_implode).$quote); +} + + +// Calculate the sql neccessary to update the database +// returns array(code,text) +// Error codes: +// 0 ok +// 1 Upgrade type of table not supported +// 2 Error on table upgrade +// 3 Error on column existence upgrade +// 4 Error on column existence upgrade +// 5 Error on column definition upgrade +// 6 Error on column definition upgrade +// 7 Error on key existence upgrade +// 8 Error on key existence upgrade +// 9 Error on key definition upgrade +// 10 Error on key definition upgrade +// 11 Table type upgrade not supported +// 12 Upgrade type not supported + +function mustal_calculate_db_upgrade(array $compare_def, array $db_def, array &$upgrade_sql, array $replacers) : array { + + $result = array(); + $upgrade_sql = array(); + + $compare_differences = mustal_compare_table_array($compare_def,"in JSON",$db_def,"in DB",true,true); + + foreach ($compare_differences as $compare_difference) { + + $drop_view = false; + + switch ($compare_difference['type']) { + case 'Table existence': + + // Get table definition from JSON + + $table_name = $compare_difference['in JSON']; + + $table_key = array_search($table_name,array_column($compare_def['tables'],'name')); + + if ($table_key !== false) { + $table = $compare_def['tables'][$table_key]; + + switch ($table['type']) { + case 'BASE TABLE': + + // Create table in DB + $sql = ""; + $sql = "CREATE TABLE `".$table['name']."` ("; + $comma = ""; + + foreach ($table['columns'] as $column) { + $sql .= $comma."`".$column['Field']."` ".mustal_column_sql_definition($table_name, $column,array_column($replacers,1)); + $comma = ", "; + } + + // Add keys + $comma = ", "; + foreach ($table['keys'] as $key) { + if ($key['Key_name'] == 'PRIMARY') { + $keystring = "PRIMARY KEY "; + } else { + + if(array_key_exists('Index_type', $key)) { + $index_type = $key['Index_type']; + } else { + $index_type = ""; + } + + $keystring = $index_type." KEY `".$key['Key_name']."` "; + } + $sql .= $comma.$keystring."(`".implode("`,`",$key['columns'])."`) "; + } + $sql .= ")"; + $upgrade_sql[] = $sql; + break; + default: + $result[] = array(1,"Upgrade type '".$table['type']."' on table '".$table['name']."' not supported."); + break; + } + } else { + $result[] = array(2,"Error table_key while creating upgrade for table existence `$table_name`."); + } + + break; + case 'Column existence': + $table_name = $compare_difference['table']; + $column_name = $compare_difference['in JSON']; + $table_key = array_search($table_name,array_column($compare_def['tables'],'name')); + if ($table_key !== false) { + $table = $compare_def['tables'][$table_key]; + $columns = $table['columns']; + $column_key = array_search($column_name,array_column($columns,'Field')); + if ($column_key !== false) { + $column = $table['columns'][$column_key]; + $sql = "ALTER TABLE `$table_name` ADD COLUMN `".$column_name."` "; + $sql .= mustal_column_sql_definition($table_name, $column, array_column($replacers,1)); + $sql .= ";"; + $upgrade_sql[] = $sql; + } + else { + $result[] = array(3,"Error column_key while creating column '$column_name' in table '".$table['name']."'."); + } + } + else { + $result[] = array(4,"Error table_key while creating upgrade for column existence '$column_name' in table '$table_name'."); + } + // Add Column in DB + break; + case 'Column definition': + $table_name = $compare_difference['table']; + $column_name = $compare_difference['column']; + $table_key = array_search($table_name,array_column($compare_def['tables'],'name')); + if ($table_key !== false) { + $table = $compare_def['tables'][$table_key]; + $columns = $table['columns']; + + $column_names = array_column($columns,'Field'); + $column_key = array_search($column_name,$column_names); + + if ($column_key !== false) { + $column = $table['columns'][$column_key]; + + $sql = "ALTER TABLE `$table_name` MODIFY COLUMN `".$column_name."` "; + $sql .= mustal_column_sql_definition($table_name, $column,array_column($replacers,1)); + $sql .= ";"; + $upgrade_sql[] = $sql; + } + else { + $result[] = array(5,"Error column_key while modifying column '$column_name' in table '".$table['name']."'."); + } + } + else { + $result[] = array(6,"Error table_key while modifying column '$column_name' in table '$table_name'."); + return(6); + } + // Modify Column in DB + break; + case 'Key existence': + + $table_name = $compare_difference['table']; + $key_name = $compare_difference['in JSON']; + $table_key = array_search($table_name,array_column($compare_def['tables'],'name')); + if ($table_key !== false) { + $table = $compare_def['tables'][$table_key]; + $keys = $table['keys']; + + $key_names = array_column($keys,'Key_name'); + $key_key = array_search($key_name,$key_names); + + if ($key_key !== false) { + $key = $table['keys'][$key_key]; + + $sql = "ALTER TABLE `$table_name` ADD KEY `".$key_name."` "; + $sql .= "(`".implode("`,`",$key['columns'])."`)"; + $sql .= ";"; + $upgrade_sql[] = $sql; + } + else { + $result[] = array(7,"Error key_key while adding key '$key_name' in table '".$table['name']."'."); + } + } + else { + $result[] = array(8,"Error table_key while adding key '$key_name' in table '$table_name'."); + } + break; + case "Key definition": + $table_name = $compare_difference['table']; + $key_name = $compare_difference['key']; + $table_key = array_search($table_name,array_column($compare_def['tables'],'name')); + if ($table_key !== false) { + $table = $compare_def['tables'][$table_key]; + $keys = $table['keys']; + + $key_names = array_column($keys,'Key_name'); + $key_key = array_search($key_name,$key_names); + + if ($key_key !== false) { + $key = $table['keys'][$key_key]; + + $sql = "ALTER TABLE `$table_name` DROP KEY `".$key_name."`;"; + $upgrade_sql[] = $sql; + + $sql = "ALTER TABLE `$table_name` ADD KEY `".$key_name."` "; + $sql .= "(`".implode("`,`",$key['columns'])."`)"; + $sql .= ";"; + $upgrade_sql[] = $sql; + } + else { + $result[] = array(9, "Error key_key while changing key '$key_name' in table '".$table['name']."'."); + } + } + else { + $result[] = array(10,"Error table_key while changing key '$key_name' in table '$table_name'."); + } + break; + case 'Table count': + // Nothing to do + break; + case 'Table type': + $result[] = array(11,"Upgrade type '".$compare_difference['type']."' on table '".$compare_difference['table']."' not supported."); + break; + case 'View definition': + $drop_view = true; + // intentionally omitted break; + case 'View existence': + $view_name = $compare_difference['in JSON']; + $view_key = array_search($view_name,array_column($compare_def['views'],'name')); + + if ($view_key !== false) { + $view = $compare_def['views'][$view_key]; + + switch ($view['type']) { + case 'VIEW': + + if ($drop_view === true) { + $sql = "DROP VIEW ".$view['name']; + $upgrade_sql[] = $sql; + } + + // Create view in DB + $upgrade_sql[] = $view['Create']; + break; + default: + $result[] = array(1,"Upgrade type '".$view['type']."' on view '".$view['name']."' not supported."); + break; + } + } else { + $result[] = array(2,"Error view_key while creating upgrade for view existence `$view_name`."); + } + break; + default: + $result[] = array(12,"Upgrade type '".$compare_difference['type']."' not supported."); + break; + } + } + + $upgrade_sql = array_unique($upgrade_sql); + + if (count($upgrade_sql) > 0) { + + array_unshift($upgrade_sql,"SET SQL_MODE='ALLOW_INVALID_DATES';","SET SESSION innodb_strict_mode=OFF;"); + } + + + return($result); +} diff --git a/version.php b/version.php index d367f6a9..f31dc0eb 100755 --- a/version.php +++ b/version.php @@ -1,7 +1,7 @@ + Order Allow,Deny + Allow from all + +# Allow access to index.php + + Order Allow,Deny + Allow from all + +# Allow access to setup.php + + Order Allow,Deny + Allow from all + +# Allow access to inline PDF viewer + + Order Allow,Deny + Allow from all + +# end diff --git a/www/lib/class.erpapi.php b/www/lib/class.erpapi.php index 624cf772..98cf6453 100644 --- a/www/lib/class.erpapi.php +++ b/www/lib/class.erpapi.php @@ -1508,6 +1508,39 @@ public function NavigationHooks(&$menu) return "replace(trim($spalte)+0,'.',',')"; } + static function add_alias(string $text, $alias = false) { + if (empty($alias)) { + return($text); + } + else { + return ($text." as `$alias`"); + } + } + + // @refactor DbHelper Komponente + function FormatDate(string $spalte, string $alias = null) + { + return $this->add_alias("DATE_FORMAT($spalte,'%d.%m.%Y')", $alias); + } + + // @refactor DbHelper Komponente + function FormatDateShort(string $spalte, string $alias = null) + { + return $this->add_alias("DATE_FORMAT($spalte,'%d.%m.%y')", $alias); + } + + // @refactor DbHelper Komponente + function FormatDateTimeShort(string $spalte, string $alias = null) + { + return $this->add_alias("DATE_FORMAT($spalte,'%d.%m.%y %H:%i')", $alias); + } + + // @refactor DbHelper Komponente + function FormatDateTime(string $spalte, string $alias = null) + { + return $this->add_alias("DATE_FORMAT($spalte,'%d.%m.%Y %H:%i:%s')", $alias); + } + public function XMLExportVorlage($id,$filter=array(), $cdata = false) { /** @var Api $obj */ @@ -3754,9 +3787,9 @@ title: 'Abschicken', public function calledOnceAfterLogin($type) { $this->app->User->deleteParameterPrefix('tablesearch\\_'); - if($this->app->DB->Select('SELECT `settings` FROM `user` WHERE `id`= 1')==='firstinstall') { +/* if($this->app->DB->Select('SELECT `settings` FROM `user` WHERE `id`= 1')==='firstinstall') { $this->UpgradeDatabase(); - } + }*/ $this->app->User->SetParameter('zeiterfassung_create_datumzeiterfassung',''); @@ -3899,6 +3932,9 @@ title: 'Abschicken', //$zahlungszielskonto = round((100 * $skontobetrag / $soll),2); // den wert lassen sonst sieht es komisch am briefpapier aus Ticket 757670 } } + + $zahlungszieltage = (int) $zahlungszieltage; + $zahlungdatum = $this->app->DB->Select("SELECT DATE_FORMAT(DATE_ADD(datum, INTERVAL $zahlungszieltage DAY),'%d.%m.%Y') FROM $doctype WHERE id='$doctypeid' LIMIT 1"); $anzeigen = false; @@ -3945,6 +3981,8 @@ title: 'Abschicken', //$this->RunHook('ZahlungsweisetextZahlungsdatum',4, $doctype, $doctypeid, $zahlungdatum, $zahlungsweisetext); + $zahlungszieltageskonto = (int) $zahlungszieltageskonto; + $zahlungszielskontodatum = $this->app->DB->Select("SELECT DATE_FORMAT(DATE_ADD(datum, INTERVAL $zahlungszieltageskonto DAY),'%d.%m.%Y') FROM $doctype WHERE id='$doctypeid' LIMIT 1"); $adresse = !empty($doctypeRow['adresse'])?$doctypeRow['adresse']:0; @@ -3955,7 +3993,6 @@ title: 'Abschicken', $skontofaehignetto = $this->Skontofaehig($doctypeid, $doctype,false); $skontofaehignetto = number_format((float)$skontofaehignetto,2,',','.'); - if($zahlungszieltageskonto<=0) $zahlungszielskontodatum = $zahlungdatum; @@ -7014,7 +7051,7 @@ title: 'Abschicken', $navarray['menu']['admin'][$menu]['sec'][] = array('Preisanfrage','preisanfrage','list'); $navarray['menu']['admin'][$menu]['sec'][] = array('Bestellung','bestellung','list'); - $navarray['menu']['admin'][$menu]['sec'][] = array('Bestellvorschlag','bestellvorschlag','ausgehend'); + $navarray['menu']['admin'][$menu]['sec'][] = array('Bestellvorschlag','bestellvorschlag','list'); $navarray['menu']['admin'][$menu]['sec'][] = array('Erweiterter Bestellvorschlag','bestellvorschlagapp','list'); $navarray['menu']['admin'][$menu]['sec'][] = array('Produktion','produktion','list'); @@ -7107,6 +7144,7 @@ title: 'Abschicken', $navarray['menu']['admin'][$menu]['sec'][] = array('Einstellungen','einstellungen','list'); $navarray['menu']['admin'][$menu]['sec'][] = array('Online-Shops / Marktplätze','onlineshops','list'); $navarray['menu']['admin'][$menu]['sec'][] = array('Backup','backup','list','recover','delete','reset'); + $navarray['menu']['admin'][$menu]['sec'][] = array('Upgrade','upgrade','list','recover','delete','reset'); //$navarray['menu']['admin'][$menu]['sec'][] = array('AppStore','appstore','list'); $navarray['menu']['admin'][++$menu]['first'] = array('Mein Bereich','welcome','main'); @@ -7403,7 +7441,7 @@ function ClearSqlCache($shortcode, $seconds = 0) if($seconds > 0) { $this->app->DB->Delete( sprintf( - 'DELETE FROM sqlcache WHERE DATE_DIFF(zeitstempel, INTERVAL %d SECOND) < NOW()', + "DELETE FROM sqlcache WHERE TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d", $seconds ) ); @@ -7415,7 +7453,7 @@ function ClearSqlCache($shortcode, $seconds = 0) if($seconds > 0) { $this->app->DB->Delete( sprintf( - "DELETE FROM sqlcache WHERE shortcode = '%s' AND DATE_DIFF(zeitstempel, INTERVAL %d SECOND) < NOW()", + "DELETE FROM sqlcache WHERE shortcode = '%s' AND TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d", $this->app->DB->real_escape_string($shortcode), $seconds ) ); @@ -8035,5310 +8073,6 @@ function WriteChangeLog() return $change_log; } -// @refactor Installer Komponente -function UpgradeDatabase($stufe = 0) -{ - $this->emptyTableCache(); - if($stufe == 0 || $stufe == 1) - { - $this->RemoveFolder('vendor/aura/sql/'); - $this->CheckTable("checkaltertable"); - $this->CheckColumn("id","int(11)","checkaltertable","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("checksum","varchar(128)","checkaltertable","DEFAULT '' NOT NULL"); - - $this->RemoveFile('www/pages/content/shopexport_neu_custom.tpl'); - if(is_file(dirname(dirname(__DIR__)).'/cronjobs/dateibaum.php') && !$this->app->DB->Select(sprintf("SELECT id FROM prozessstarter WHERE parameter = 'dateibaun' LIMIT 1"))){ - $this->RemoveFile('cronjobs/dateibaum.php'); - } - if(is_file(__DIR__.'/versandarten/dhlversenden.php') && is_file(__DIR__.'/versandarten/content/versandarten_dhlversenden.tpl')) - { - $this->app->DB->Update("UPDATE versandarten SET modul='dhlversenden' WHERE modul='intraship'"); - $this->RemoveFile('www/lib/versandarten/intraship.php'); - $this->RemoveFile('www/lib/versandarten/content/versandarten_intraship.tpl'); - } - if(!$this->ModulVorhanden('exceldokument')) - { - $this->RemoveFolder('www/lib/PHPExcel'); - } - $this->RemoveFile('cronjobs/artikelreplace.php'); - $this->RemoveFile('cronjobs/shopware_partner.php'); - $this->RemoveFile('cronjobs/newsletter.php'); - $this->RemoveFile('www/pages/auftragassistent.php'); - $this->RemoveFile('www/pages/exportcsvauftrag.php'); - $this->RemoveFile('www/objectapi/mysql/object.shopexport.php'); - $canDeleteRocketShipit = - !file_exists(__DIR__.'/versandarten/RocketShipIt/autoload.php') && - file_exists(__DIR__.'/versandarten/rocketshipit.php') && - !$this->app->DB->Select("SELECT id FROM versandarten WHERE modul = 'rocketshipit'"); - if($canDeleteRocketShipit) { - $this->RemoveFile('www/lib/versandarten/rocketshipit.php'); - $this->RemoveFile('www/lib/versandarten/content/versandarten_rocketshipit.tpl'); - } - if(file_exists(dirname(__DIR__).'/pages/gobnav.php') && - !file_exists(dirname(__DIR__).'/pages/content/gobnav_requests.tpl') - ) { - $this->RemoveFile('www/pages/gobnav.php'); - } - if(file_exists(dirname(__DIR__).'/pages/gobnav.src.php') && - !file_exists(dirname(__DIR__).'/pages/content/gobnav_requests.tpl') - ) { - $this->RemoveFile('www/pages/gobnav.src.php'); - } - $this->RemoveFolder('www/setup'); - if(!class_exists('ModuleScriptCache')) - { - include(dirname(dirname(__DIR__)).'/phpwf/plugins/class.modulescriptcache.php'); - } - - if(class_exists('ModuleScriptCache')){ - if(!isset($this->app->ModuleScriptCache))$this->app->ModuleScriptCache = new ModuleScriptCache(); - $this->RemoveFolder('www/'.$this->app->ModuleScriptCache->GetRelativeCacheDir()); - $this->app->ModuleScriptCache = new ModuleScriptCache(); - } - $this->CheckTable("firmendaten_werte"); - $this->CheckColumn("id","int(11)","firmendaten_werte","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("name","varchar(64)","firmendaten_werte","DEFAULT '' NOT NULL"); - $this->CheckColumn("typ","varchar(64)","firmendaten_werte","DEFAULT '' NOT NULL"); - $this->CheckColumn("typ1","varchar(64)","firmendaten_werte","DEFAULT '' NOT NULL"); - $this->CheckColumn("typ2","varchar(64)","firmendaten_werte","DEFAULT '' NOT NULL"); - $this->CheckColumn("wert","text","firmendaten_werte","DEFAULT '' NOT NULL"); - $this->CheckColumn("default_value","text","firmendaten_werte","DEFAULT '' NOT NULL"); - $this->CheckColumn("default_null","tinyint(1)","firmendaten_werte","DEFAULT '0' NOT NULL"); - $this->CheckColumn("darf_null","tinyint(1)","firmendaten_werte","DEFAULT '0' NOT NULL"); - $firmendaten_null = $this->app->DB->SelectArr("SELECT * FROM firmendaten_werte WHERE id = '0'"); - if($firmendaten_null) - { - foreach($firmendaten_null as $val) - { - $maxid = 1+(int)$this->app->DB->Select("SELECT max(id) FROM `firmendaten_werte`"); - $this->app->DB->Update("UPDATE `firmendaten_werte` set id = '$maxid' WHERE id = '0' AND name = '".$val['name']."' LIMIT 1"); - } - } - $doppelteids = $this->app->DB->SelectArr("SELECT id, count(*) as co FROM `firmendaten_werte` GROUP BY id HAVING COUNT(*) > 1"); - if($doppelteids) - { - foreach($doppelteids as $val) - { - $maxid = 1+(int)$this->app->DB->Select("SELECT max(id) FROM `firmendaten_werte`"); - $doppelte = $this->app->DB->SelectArr("SELECT * FROM `firmendaten_werte` WHERE id = '".$val['id']."'"); - for($i = 0; $i < $val['co']; $i++) - { - $this->app->DB->Update("UPDATE `firmendaten_werte` SET id = '$maxid' WHERE id = '".$val['id']."' AND name = '".$val['name']."' LIMIT 1"); - $maxid++; - } - } - } - - $keys = $this->app->DB->Select("SELECT COLUMN_NAME - FROM INFORMATION_SCHEMA.COLUMNS - WHERE TABLE_NAME = 'firmendaten' - AND COLUMN_KEY = 'PRI'"); - - if ($keys != 'id') { // Only if id is not already primary key - $this->CheckAlterTable("ALTER TABLE `firmendaten_werte` ADD PRIMARY KEY(`id`);"); - } - - $maxid = 1+(int)$this->app->DB->Select("SELECT max(id) FROM `firmendaten_werte`"); - $this->CheckAlterTable("ALTER TABLE `firmendaten_werte` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=".$maxid); - - $this->StandardFirmendatenWerte(); - - if((string)$this->Firmendaten('waehrung') === '') { - $this->FirmendatenSet('waehrung', 'EUR'); - } - - $this->activateCleanerOnce(); - $this->fixDatabaseNullIDs('artikelkategorien'); - $this->CheckTable('module_action'); - $this->CheckColumn('module','VARCHAR(255)','module_action',"DEFAULT '' NOT NULL"); - $this->CheckColumn('action','VARCHAR(255)','module_action',"DEFAULT '' NOT NULL"); - $this->CheckIndex('module_action',['module','action'], true); - $this->app->erp->CheckTable('user'); - $this->app->erp->CheckColumn('id','int(11)','user',"NOT NULL AUTO_INCREMENT"); - $this->app->erp->CheckColumn('username','varchar(100)','user'," "); - $this->app->erp->CheckColumn('password','varchar(255)','user'," "); - $this->app->erp->CheckColumn('repassword','int(1)','user'," "); - $this->app->erp->CheckColumn('description','varchar(255)','user'," "); - $this->app->erp->CheckColumn('settings','text','user'," "); - $this->app->erp->CheckColumn('parentuser','int(11)','user'," "); - $this->app->erp->CheckColumn('activ','int(11)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('type','varchar(100)','user'," DEFAULT '' "); - $this->app->erp->CheckColumn('adresse','int(10)','user'," "); - $this->app->erp->CheckColumn('fehllogins','int(11)','user'," "); - $this->app->erp->CheckColumn('standarddrucker','int(1)','user'," "); - $this->app->erp->CheckColumn('firma','int(10)','user'," "); - $this->app->erp->CheckColumn('logdatei','timestamp','user'," DEFAULT CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP"); - $this->app->erp->CheckColumn('startseite','varchar(1024)','user'," "); - $this->app->erp->CheckColumn('hwtoken','int(1)','user'," "); - $this->app->erp->CheckColumn('hwkey','varchar(255)','user'," "); - $this->app->erp->CheckColumn('hwcounter','int(11)','user'," "); - $this->app->erp->CheckColumn('motppin','varchar(255)','user'," "); - $this->app->erp->CheckColumn('motpsecret','varchar(255)','user'," "); - $this->app->erp->CheckColumn('passwordmd5','varchar(255)','user'," "); - $this->app->erp->CheckColumn('externlogin','int(1)','user'," "); - $this->app->erp->CheckColumn('projekt_bevorzugen','tinyint(1)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('email_bevorzugen','tinyint(1)','user'," DEFAULT '1' "); - $this->app->erp->CheckColumn('projekt','int(11)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('rfidtag','varchar(64)','user'," DEFAULT '' "); - $this->app->erp->CheckColumn('vorlage','varchar(255)','user'," "); - $this->app->erp->CheckColumn('kalender_passwort','varchar(255)','user'," "); - $this->app->erp->CheckColumn('kalender_ausblenden','int(1)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('kalender_aktiv','int(1)','user'," "); - $this->app->erp->CheckColumn('gpsstechuhr','int(1)','user'," "); - $this->app->erp->CheckColumn('standardetikett','int(11)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('standardfax','int(11)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('internebezeichnung','varchar(255)','user'," "); - $this->app->erp->CheckColumn('hwdatablock','varchar(255)','user'," "); - $this->app->erp->CheckColumn('standardversanddrucker','int(11)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('passwordsha512','varchar(128)','user'," DEFAULT '' "); - $this->app->erp->CheckColumn('salt','varchar(128)','user'," DEFAULT '' "); - $this->app->erp->CheckColumn('paketmarkendrucker','int(11)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('sprachebevorzugen','varchar(255)','user'," "); - $this->app->erp->CheckColumn('vergessencode','varchar(255)','user'," DEFAULT '' "); - $this->app->erp->CheckColumn('vergessenzeit','datetime','user'," "); - $this->app->erp->CheckColumn('chat_popup','tinyint(1)','user'," DEFAULT '1' "); - $this->app->erp->CheckColumn('defaultcolor','varchar(10)','user'," DEFAULT '' "); - $this->app->erp->CheckColumn('passwordhash','char(60)','user'," "); - $this->app->erp->CheckColumn('docscan_aktiv','tinyint(1)','user'," DEFAULT '0' "); - $this->app->erp->CheckColumn('docscan_passwort','varchar(64)','user'," "); - $this->app->erp->CheckColumn('callcenter_notification','tinyint(1)','user'," DEFAULT '1' "); - $this->app->erp->CheckColumn('stechuhrdevice','varchar(255)','user'," DEFAULT '' "); - $this->app->erp->CheckColumn('role','varchar(255)','user'," DEFAULT '' "); - } - if($stufe == 0 || $stufe == 2) - { - $this->InstallModul('api'); - // @todo @refactor In SystemNotification-Modul auslagern - $this->CheckTable("notification_message"); - $this->CheckColumn("id","INT(10) UNSIGNED","notification_message","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("user_id","INT(10) UNSIGNED","notification_message","NOT NULL DEFAULT '0'"); - $this->CheckColumn("type","VARCHAR(16)","notification_message","NOT NULL DEFAULT 'default'"); - $this->CheckColumn("title","VARCHAR(64)","notification_message","NOT NULL DEFAULT ''"); - $this->CheckColumn("message","VARCHAR(1024)","notification_message","DEFAULT NULL"); - $this->CheckColumn("tags","VARCHAR(512)","notification_message","DEFAULT NULL"); - $this->CheckColumn("options_json","TEXT","notification_message","DEFAULT NULL"); - $this->CheckColumn("priority","TINYINT(1) UNSIGNED","notification_message","NOT NULL DEFAULT '0'"); - $this->CheckColumn("created_at","TIMESTAMP","notification_message","DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckIndex("notification_message","user_id"); - $this->CheckAlterTable("ALTER TABLE `notification_message` CHANGE `message` `message` VARCHAR(1024) DEFAULT NULL"); - $this->app->DB->Query("DROP TABLE IF EXISTS `interne_events`"); // 'interne_events' wird zu 'notification_message' - - $this->CheckCronjob(); - $this->CheckAlterTable("ALTER TABLE `adresse` CHANGE `rechnung_vorname` `rechnung_vorname` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_name` `rechnung_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_titel` `rechnung_titel` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_typ` `rechnung_typ` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_strasse` `rechnung_strasse` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_ort` `rechnung_ort` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_land` `rechnung_land` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_abteilung` `rechnung_abteilung` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_unterabteilung` `rechnung_unterabteilung` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_adresszusatz` `rechnung_adresszusatz` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_telefon` `rechnung_telefon` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_telefax` `rechnung_telefax` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_anschreiben` `rechnung_anschreiben` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_email` `rechnung_email` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_plz` `rechnung_plz` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `rechnung_ansprechpartner` `rechnung_ansprechpartner` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL"); - $this->CheckColumn("blz", "varchar(64)", "adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("konto", "varchar(64)", "adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("swift", "varchar(64)", "adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("iban", "varchar(64)", "adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("ustid", "varchar(64)", "adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("umsatzsteuer_lieferant", "varchar(64)", "adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("land", "varchar(64)", "adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("size","VARCHAR(255)","datei_version","DEFAULT '' NOT NULL"); - $this->CheckColumn("public","int(1)","kalender_event"); - $this->CheckColumn("erinnerung","int(1)","kalender_event"); - $this->CheckColumn("adresse","int(11)","kalender_event","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ansprechpartner_id", "int(11)", "kalender_event", "DEFAULT 0 NOT NULL"); - $this->CheckColumn("projekt","int(11)","kalender_event","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresseintern","int(11)","kalender_event","DEFAULT '0' NOT NULL"); - $this->CheckColumn("angelegtvon","int(11)","kalender_event","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","kalender_event","DEFAULT '0' NOT NULL"); - $this->CheckColumn("typ","varchar(32)","kalender_event","DEFAULT '' NOT NULL"); - $this->CheckColumn("vorname","varchar(255)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("nachname","varchar(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("kennung","varchar(255)","adresse"); - $this->CheckColumn("sachkonto","varchar(20)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("lat","DECIMAL(18,12)","adresse"); - $this->CheckColumn("lng","DECIMAL(18,12)","adresse"); - $this->CheckColumn("art","varchar(32)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("kundennummer_buchhaltung","varchar(20)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferantennummer_buchhaltung","varchar(20)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("arbeitszeitprowoche","DECIMAL(10,2)","adresse","DEFAULT 0 NOT NULL"); - $this->CheckColumn("art_filter","varchar(20)","prozessstarter","DEFAULT '' NOT NULL"); - $this->CheckColumn("status","varchar(255)","prozessstarter","DEFAULT '' NOT NULL"); - $this->CheckColumn("status_zeit","timestamp","prozessstarter"); - $this->CheckColumn('recommended_period', 'int(11)', 'prozessstarter', 'DEFAULT 0 NOT NULL'); - $this->CheckAlterTable( - "ALTER TABLE `prozessstarter` CHANGE `periode` `periode` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1440';" - ); - $this->CheckIndex('prozessstarter', 'parameter'); - - $this->CheckColumn("folgebestaetigungsperre","tinyint(1)","adresse","DEFAULT '0' NOT NULL"); - //$this->CheckColumn("mail_cc","VARCHAR(128)","ticket_nachricht","DEFAULT '' NOT NULL"); - $this->CheckColumn("bitteantworten","TINYINT(1)","ticket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("privat","TINYINT(1)","ticket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("dsgvo","TINYINT(1)","ticket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("service","INT(11)","ticket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommentar","TEXT","ticket","DEFAULT '' NOT NULL"); - $this->CheckColumn("tags","TEXT","ticket","DEFAULT '' NOT NULL"); - $this->CheckColumn("nachrichten_anz","INT(11)","ticket","DEFAULT NULL"); - - $this->CheckColumn("lieferantennummerbeikunde","varchar(128)","adresse"); - - $this->CheckColumn("datum","DATE","ustprf"); - - $this->CheckColumn("renr","varchar(255)","paketannahme"); - $this->CheckColumn("lsnr","varchar(255)","paketannahme"); - - $this->CheckColumn("verein_mitglied_seit","DATE","adresse"); - $this->CheckColumn("verein_mitglied_bis","DATE","adresse"); - $this->CheckColumn("verein_mitglied_aktiv","TINYINT(1)","adresse"); - $this->CheckColumn("verein_spendenbescheinigung","TINYINT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn('fromshop', 'INT(11)', 'adresse','DEFAULT 0 NOT NULL'); - - $this->CheckColumn("posid","int(11)","lager_reserviert","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","int(11)","lager_reserviert","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager","int(11)","lager_reserviert","DEFAULT '0' NOT NULL"); - $this->CheckTable("adresse_abosammelrechnungen"); - $this->CheckColumn("id", "int(11)", "adresse_abosammelrechnungen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung", "varchar(255)", "adresse_abosammelrechnungen", "NOT NULL"); - $this->CheckColumn("rabatt", "DECIMAL(10,2)", "adresse_abosammelrechnungen", "NOT NULL DEFAULT 0"); - $this->CheckColumn("adresse", "int(11)", "adresse_abosammelrechnungen", "NOT NULL DEFAULT 0"); - $this->CheckColumn("abweichende_rechnungsadresse", "int(11)", "adresse_abosammelrechnungen", "NOT NULL DEFAULT 0"); - $this->CheckColumn("projekt", "int(11)", "adresse_abosammelrechnungen", "NOT NULL DEFAULT 0"); -//Aufwändige Berechnung - $this->CheckTable("dateibaum"); - $this->CheckColumn("id", "int(11)", "dateibaum", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("datei_stichwoerter","INT(11)","dateibaum","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pfad","TEXT","dateibaum","DEFAULT '' NOT NULL"); - - - $this->CheckTable("openstreetmap_status"); - $this->CheckColumn("id", "int(11)", "openstreetmap_status", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("adresse","INT(11)","openstreetmap_status","DEFAULT '0' NOT NULL"); - $this->CheckColumn("status","INT(11)","openstreetmap_status","DEFAULT '0' NOT NULL"); - - $this->CheckTable("kalender_gruppen"); - $this->CheckColumn("id", "int(11)", "kalender_gruppen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung", "varchar(255)", "kalender_gruppen", "NOT NULL DEFAULT ''"); - $this->CheckColumn("farbe", "varchar(8)", "kalender_gruppen", "NOT NULL DEFAULT ''"); - $this->CheckColumn("ausblenden","INT(1)","kalender_gruppen","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("gruppe","INT(11)","kalender_user","DEFAULT '0' NOT NULL"); - - - $this->CheckTable("seriennummern_log"); - $this->CheckColumn("id", "int(11)", "seriennummern_log", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","seriennummern_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","INT(11)","seriennummern_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("eingang","INT(1)","seriennummern_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bezeichnung","TEXT","seriennummern_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("internebemerkung","TEXT","seriennummern_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeit", "DATETIME", "seriennummern_log"); - $this->CheckColumn("adresse_mitarbeiter","INT(11)","seriennummern_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","INT(11)","seriennummern_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","seriennummern_log","DEFAULT 0 NOT NULL"); - $this->CheckColumn("doctype","varchar(32)","seriennummern_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("doctypeid","INT(11)","seriennummern_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn('bestbeforedate','DATE','seriennummern_log'); - $this->CheckColumn('batch','varchar(255)','seriennummern_log'); - $this->CheckColumn('storage_movement_id','INT(11)','seriennummern_log','DEFAULT 0'); - - $this->CheckTable("mhd_log"); - $this->CheckColumn("id", "int(11)", "mhd_log", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","mhd_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","INT(11)","mhd_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("eingang","INT(1)","mhd_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mhddatum","DATE","mhd_log"); - $this->CheckColumn("internebemerkung","TEXT","mhd_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeit", "DATETIME", "mhd_log"); - $this->CheckColumn("adresse_mitarbeiter","INT(11)","mhd_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","INT(11)","mhd_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","mhd_log","DEFAULT 0 NOT NULL"); - $this->CheckColumn("doctype","varchar(32)","mhd_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("doctypeid","INT(11)","mhd_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bestand","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","mhd_log","DEFAULT 0 NOT NULL"); - $this->CheckColumn("charge","varchar(255)","mhd_log","DEFAULT '' NOT NULL"); - $this->CheckColumn('is_interim','TINYINT(1)','mhd_log','DEFAULT 0 NOT NULL'); - $this->CheckColumn('storage_movement_id','INT(11)','mhd_log','DEFAULT 0'); - - $this->CheckTable("chargen_log"); - $this->CheckColumn("id", "int(11)", "chargen_log", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","chargen_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","INT(11)","chargen_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("eingang","INT(1)","chargen_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bezeichnung","TEXT","chargen_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("internebemerkung","TEXT","chargen_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeit", "DATETIME", "chargen_log"); - $this->CheckColumn("adresse_mitarbeiter","INT(11)","chargen_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","INT(11)","chargen_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","chargen_log","DEFAULT 0 NOT NULL"); - $this->CheckColumn("doctype","varchar(32)","chargen_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("doctypeid","INT(11)","chargen_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bestand","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","chargen_log","DEFAULT 0 NOT NULL"); - $this->CheckColumn('is_interim','TINYINT(1)','chargen_log','DEFAULT 0 NOT NULL'); - $this->CheckColumn('storage_movement_id','INT(11)','chargen_log','DEFAULT 0'); - - $this->CheckTable("mailausgang"); - $this->CheckColumn("id", "int(11)", "mailausgang", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("subject", "varchar(255)", "mailausgang", "DEFAULT '' NOT NULL"); - $this->CheckColumn("body", "LONGBLOB", "mailausgang", "DEFAULT '' NOT NULL"); - $this->CheckColumn("from", "varchar(255)", "mailausgang", "DEFAULT '' NOT NULL"); - $this->CheckColumn("to", "varchar(255)", "mailausgang", "DEFAULT '' NOT NULL"); - $this->CheckColumn("status", "varchar(255)", "mailausgang", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("art", "INT(10)", "mailausgang", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("zeit", "DATETIME", "mailausgang"); - - $this->CheckTable("beleg_chargesnmhd"); - $this->CheckColumn("id", "int(11)", "beleg_chargesnmhd", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("doctype", "varchar(255)", "beleg_chargesnmhd", "DEFAULT '' NOT NULL"); - $this->CheckColumn("doctypeid", "int(11)", "beleg_chargesnmhd", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("pos", "int(11)", "beleg_chargesnmhd", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("type", "varchar(10)", "beleg_chargesnmhd", "DEFAULT '' NOT NULL"); - $this->CheckColumn("type2", "varchar(10)", "beleg_chargesnmhd", "DEFAULT '' NOT NULL"); - $this->CheckColumn('type3', 'varchar(10)', 'beleg_chargesnmhd', "DEFAULT '' NOT NULL"); - $this->CheckColumn('wert', 'VARCHAR(255)', 'beleg_chargesnmhd', "DEFAULT '' NOT NULL"); - $this->CheckColumn('wert2', "VARCHAR(255)", 'beleg_chargesnmhd', "DEFAULT '' NOT NULL"); - $this->CheckColumn('wert3', 'VARCHAR(255)', 'beleg_chargesnmhd', "DEFAULT '' NOT NULL"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","beleg_chargesnmhd","DEFAULT 0 NOT NULL"); - $this->CheckColumn("lagerplatz", "int(11)", "beleg_chargesnmhd", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("internebemerkung", "varchar(255)", "beleg_chargesnmhd", "DEFAULT '' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `beleg_chargesnmhd` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `beleg_chargesnmhd` CHANGE `wert` `wert` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';"); - $this->CheckAlterTable("ALTER TABLE `beleg_chargesnmhd` CHANGE `wert2` `wert2` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';"); - $this->CheckAlterTable("ALTER TABLE `beleg_chargesnmhd` CHANGE `wert3` `wert3` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';"); - $this->CheckIndex('beleg_chargesnmhd', 'wert'); - - - $this->CheckTable("beleg_zwischenpositionen"); - $this->CheckColumn("id", "int(11)", "beleg_zwischenpositionen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("doctype", "varchar(255)", "beleg_zwischenpositionen", "NOT NULL"); - $this->CheckColumn("doctypeid", "int(11)", "beleg_zwischenpositionen", "NOT NULL"); - $this->CheckColumn("pos", "int(11)", "beleg_zwischenpositionen", "NOT NULL"); - $this->CheckColumn("sort", "int(11)", "beleg_zwischenpositionen", "NOT NULL"); - $this->CheckColumn("postype", "varchar(64)", "beleg_zwischenpositionen", "NOT NULL"); - $this->CheckColumn("wert", "TEXT", "beleg_zwischenpositionen", "NOT NULL"); - - - $this->CheckTable("warteschlangen"); - $this->CheckColumn("id", "int(11)", "warteschlangen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("warteschlange", "varchar(255)", "warteschlangen", "NOT NULL"); - $this->CheckColumn("label", "varchar(255)", "warteschlangen", "NOT NULL"); - $this->CheckColumn("wiedervorlage", "int(11)", "warteschlangen", "NOT NULL"); - $this->CheckColumn("adresse", "int(11)", "warteschlangen", "NOT NULL"); - - $this->CheckTable("shopexport_artikeluebertragen"); - $this->CheckColumn("id", "int(11)", "shopexport_artikeluebertragen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_artikeluebertragen", "NOT NULL"); - $this->CheckColumn("artikel", "int(11)", "shopexport_artikeluebertragen", "NOT NULL"); - $this->CheckColumn('check_nr', 'int(11)', 'shopexport_artikeluebertragen', 'NOT NULL DEFAULT 0'); - - $this->CheckTable('shopexport_artikeluebertragen_check'); - $this->CheckColumn('id', 'int(11)', 'shopexport_artikeluebertragen_check', 'NOT NULL AUTO_INCREMENT'); - $this->CheckColumn('shop', 'int(11)', 'shopexport_artikeluebertragen_check', 'NOT NULL'); - $this->CheckColumn('artikel', 'int(11)', 'shopexport_artikeluebertragen_check', 'NOT NULL'); - - $this->CheckTable("shopexport_adressenuebertragen"); - $this->CheckColumn("id", "int(11)", "shopexport_adressenuebertragen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_adressenuebertragen", "NOT NULL"); - $this->CheckColumn("adresse", "int(11)", "shopexport_adressenuebertragen", "NOT NULL"); - - $this->CheckTable("shopexport_zahlungsstatus"); - $this->CheckColumn("id", "int(11)", "shopexport_zahlungsstatus", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_zahlungsstatus", "NOT NULL DEFAULT 0"); - $this->CheckColumn("auftrag", "varchar(255)", "shopexport_zahlungsstatus", "NOT NULL DEFAULT ''"); - $this->CheckColumn("status", "varchar(255)", "shopexport_zahlungsstatus", "NOT NULL DEFAULT ''"); - $this->CheckColumn("zeitstempel", "TIMESTAMP", "shopexport_zahlungsstatus", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckIndex("shopexport_zahlungsstatus", "shop"); - $this->CheckIndex("shopexport_zahlungsstatus", "auftrag"); - - $this->CheckTable("shopexport_getarticles"); - $this->CheckColumn("id", "int(11)", "shopexport_getarticles", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_getarticles", "NOT NULL"); - $this->CheckColumn("nummer", "varchar(255)", "shopexport_getarticles", "DEFAULT '' NOT NULL"); - - $this->CheckTable("shopexport_zahlweisen"); - $this->CheckColumn("id", "int(11)", "shopexport_zahlweisen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_zahlweisen", "NOT NULL"); - $this->CheckColumn("zahlweise_shop", "varchar(255)", "shopexport_zahlweisen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("zahlweise_wawision", "varchar(255)", "shopexport_zahlweisen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("vorabbezahltmarkieren", "int(11)", "shopexport_zahlweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("autoversand", "int(11)", "shopexport_zahlweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("aktiv", "int(11)", "shopexport_zahlweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("keinerechnung", "tinyint(1)", "shopexport_zahlweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("created", "TIMESTAMP", "shopexport_zahlweisen", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updated", "TIMESTAMP", "shopexport_zahlweisen", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updatedby", "varchar(255)", "shopexport_zahlweisen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("keinerechnung", "tinyint(1)", "shopexport_zahlweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("fastlane", "TINYINT(1)", "shopexport_zahlweisen", "NOT NULL DEFAULT 0"); - - $this->CheckTable("shopexport_versandarten"); - $this->CheckColumn("id", "int(11)", "shopexport_versandarten", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_versandarten", "NOT NULL"); - $this->CheckColumn("versandart_shop", "varchar(255)", "shopexport_versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("versandart_wawision", "varchar(255)", "shopexport_versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("versandart_ausgehend", "varchar(255)", "shopexport_versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("produkt_ausgehend", "varchar(255)", "shopexport_versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("autoversand", "int(11)", "shopexport_versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("land", "TEXT", "shopexport_versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv", "int(11)", "shopexport_versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("created", "TIMESTAMP", "shopexport_versandarten", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updated", "TIMESTAMP", "shopexport_versandarten", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updatedby", "varchar(255)", "shopexport_versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("fastlane", "TINYINT(1)", "shopexport_versandarten", "NOT NULL DEFAULT 0"); - - $this->CheckTable("shopexport_freifelder"); - $this->CheckColumn("id", "int(11)", "shopexport_freifelder", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_freifelder", "NOT NULL"); - $this->CheckColumn("freifeld_wawi", "varchar(255)", "shopexport_freifelder", "DEFAULT '' NOT NULL"); - $this->CheckColumn("freifeld_shop", "varchar(255)", "shopexport_freifelder", "DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv", "tinyint(1)", "shopexport_freifelder", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("created", "TIMESTAMP", "shopexport_freifelder", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updated", "TIMESTAMP", "shopexport_freifelder", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updatedby", "varchar(255)", "shopexport_freifelder", "DEFAULT '' NOT NULL"); - - $this->CheckTable("shopexport_sprachen"); - $this->CheckColumn("id", "int(11)", "shopexport_sprachen", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_sprachen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("land", "varchar(32)", "shopexport_sprachen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("sprache", "varchar(255)", "shopexport_sprachen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("projekt", "int(11)", "shopexport_sprachen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("aktiv", "tinyint(1)", "shopexport_sprachen", "DEFAULT '1' NOT NULL"); - $this->CheckColumn("created", "TIMESTAMP", "shopexport_sprachen", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updated", "TIMESTAMP", "shopexport_sprachen", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updatedby", "varchar(255)", "shopexport_sprachen", "DEFAULT '' NOT NULL"); - - $this->CheckTable('shopexport_kundengruppen'); - $this->CheckColumn('id', 'int(11)', 'shopexport_kundengruppen', 'NOT NULL AUTO_INCREMENT'); - $this->CheckColumn('shopid', 'int(11)', 'shopexport_kundengruppen', "DEFAULT '0' NOT NULL"); - $this->CheckColumn('gruppeid', 'int(11)', 'shopexport_kundengruppen', "DEFAULT '0' NOT NULL"); - $this->CheckColumn('apply_to_new_customers', 'tinyint(1)', 'shopexport_kundengruppen', "DEFAULT '0' NOT NULL"); - $this->CheckColumn('type', 'varchar(255)', 'shopexport_kundengruppen', "DEFAULT 'Mitglied' NOT NULL"); - $this->CheckColumn('extgruppename', 'varchar(255)', 'shopexport_kundengruppen', "DEFAULT '' NOT NULL"); - $this->CheckColumn('projekt', 'int(11)', 'shopexport_kundengruppen', "DEFAULT '0' NOT NULL"); - $this->CheckColumn('aktiv', 'tinyint(1)', 'shopexport_kundengruppen', "DEFAULT '1' NOT NULL"); - $this->CheckColumn('created', 'TIMESTAMP', 'shopexport_kundengruppen', 'DEFAULT CURRENT_TIMESTAMP NOT NULL'); - $this->CheckColumn('updated', 'TIMESTAMP', 'shopexport_kundengruppen', 'NULL DEFAULT NULL'); - $this->CheckColumn('updatedby', 'varchar(255)', 'shopexport_kundengruppen', "DEFAULT '' NOT NULL"); - - $this->CheckTable("shopexport_kategorien"); - $this->CheckColumn("id", "int(11)", "shopexport_kategorien", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_kategorien", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("kategorie", "int(11)", "shopexport_kategorien", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("extsort", "int(11)", "shopexport_kategorien", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("extid", "varchar(255)", "shopexport_kategorien", "DEFAULT '' NOT NULL"); - $this->CheckColumn("extparent", "varchar(255)", "shopexport_kategorien", "DEFAULT '' NOT NULL"); - $this->CheckColumn("extname", "varchar(255)", "shopexport_kategorien", "DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv", "tinyint(1)", "shopexport_kategorien", "DEFAULT '1' NOT NULL"); - $this->CheckColumn("created", "TIMESTAMP", "shopexport_kategorien", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updated", "TIMESTAMP", "shopexport_kategorien", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updatedby", "varchar(255)", "shopexport_kategorien", "DEFAULT '' NOT NULL"); - $this->CheckIndex("shopexport_kategorien", "shop"); - $this->CheckIndex("shopexport_kategorien", "kategorie"); - - $this->CheckTable("shopexport_mapping"); - $this->CheckColumn("id", "int(11)", "shopexport_mapping", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_mapping", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("tabelle", "varchar(255)", "shopexport_mapping", "DEFAULT '' NOT NULL"); - $this->CheckColumn("intid", "int(11)", "shopexport_mapping", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("intid2", "int(11)", "shopexport_mapping", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("extid", "varchar(255)", "shopexport_mapping", "DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel", "TIMESTAMP", "shopexport_mapping", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckIndex("shopexport_mapping", "shop"); - $this->CheckIndex("shopexport_mapping", "tabelle"); - $this->CheckIndex("shopexport_mapping", "intid"); - - $this->CheckTable("userkonfiguration"); - $this->CheckColumn("id", "int(11)", "userkonfiguration", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("user", "int(11)", "userkonfiguration", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("name", "varchar(255)", "userkonfiguration", "DEFAULT '' NOT NULL"); - $this->CheckColumn("value", "text", "userkonfiguration", "DEFAULT '' NOT NULL"); - - $this->CheckTable("shopexport_subshop"); - $this->CheckColumn("id", "int(11)", "shopexport_subshop", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop", "int(11)", "shopexport_subshop", "NOT NULL"); - $this->CheckColumn("projekt", "int(11)", "shopexport_subshop", "NOT NULL"); - $this->CheckColumn("subshopkennung", "varchar(255)", "shopexport_subshop", "DEFAULT '' NOT NULL"); - $this->CheckColumn("sprache", "varchar(64)", "shopexport_subshop", "DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv", "tinyint(1)", "shopexport_subshop", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("created", "TIMESTAMP", "shopexport_subshop", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updated", "TIMESTAMP", "shopexport_subshop", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("updatedby", "varchar(255)", "shopexport_subshop", "DEFAULT '' NOT NULL"); - - $this->CheckTable('shopexport_voucher_cache'); - $this->CheckColumn('id', 'int(11)', 'shopexport_voucher_cache', 'NOT NULL AUTO_INCREMENT'); - $this->CheckColumn('voucher_id', 'int(11)', 'shopexport_voucher_cache', "NOT NULL"); - $this->CheckColumn('value', 'float', 'shopexport_voucher_cache', "DEFAULT '0' NOT NULL"); - $this->CheckColumn('updated', 'TIMESTAMP', 'shopexport_voucher_cache', 'DEFAULT CURRENT_TIMESTAMP NOT NULL'); - $this->CheckIndex("shopexport_voucher_cache", "voucher_id",true); - - $this->CheckColumn("rabatteportofestschreiben","TINYINT(1)","shopexport","NOT NULL DEFAULT '0'"); - $this->CheckColumn('add_debitorennummer','TINYINT(1)','shopexport','NOT NULL DEFAULT 0'); - $this->CheckColumn('debitorennummer','VARCHAR(16)','shopexport',"NOT NULL DEFAULT ''"); - $this->CheckColumn('sendonlywithtracking', 'TINYINT(1)', 'shopexport', 'NOT NULL DEFAULT 0'); - $this->CheckColumn('api_account_id', 'INT(10)', 'shopexport', 'NOT NULL DEFAULT 0'); - $this->CheckColumn('api_account_token', 'varchar(1024)', 'shopexport', "NOT NULL DEFAULT ''"); - $this->CheckColumn('autosendarticle', 'TINYINT(1)', 'shopexport', 'NOT NULL DEFAULT 0'); - $this->CheckColumn('autosendarticle_last', 'TIMESTAMP', 'shopexport', 'NULL DEFAULT NULL'); - - $this->CheckTable("versandzentrum_log"); - $this->CheckColumn("id", "int(11)", "versandzentrum_log", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("userid", "int(11)", "versandzentrum_log", "NOT NULL"); - $this->CheckColumn("aktion", "varchar(255)", "versandzentrum_log", "DEFAULT '' NOT NULL"); - $this->CheckColumn("wert", "varchar(255)", "versandzentrum_log", "DEFAULT '' NOT NULL"); - $this->CheckColumn("versandid", "int(11)", "versandzentrum_log", "NOT NULL"); - $this->CheckColumn("zeitstempel","TIMESTAMP","versandzentrum_log","DEFAULT CURRENT_TIMESTAMP NOT NULL"); - - $this->CheckTable('survey'); - $this->CheckColumn('name', 'varchar(255)', 'survey', "DEFAULT '' NOT NULL"); - $this->CheckColumn('once_per_user', 'tinyint(1)', 'survey', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('send_to_xentral', 'tinyint(1)', 'survey', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('module', 'varchar(64)', 'survey', "DEFAULT '' NOT NULL"); - $this->CheckColumn('action', 'varchar(64)', 'survey', "DEFAULT '' NOT NULL"); - - $this->CheckTable('survey_user'); - $this->CheckColumn('survey_id', 'int(11)', 'survey_user', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('user_id', 'int(11)', 'survey_user', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('data', 'text', 'survey_user'); - $this->CheckColumn('created_at', 'TIMESTAMP', 'survey_user', 'DEFAULT CURRENT_TIMESTAMP NOT NULL'); - - $this->CheckIndex('survey_user', 'survey_id'); - $this->CheckIndex('survey_user', 'user_id'); - $this->InstallModul('welcome'); - $this->InstallModul('benutzer'); - $this->InstallModul('learningdashboard'); - $this->InstallModul('aufgaben'); - $this->InstallModul('uservorlage'); -} - -if($stufe == 0 || $stufe == 3) -{ - $this->app->erp->CheckTable("belegeimport"); - $this->app->erp->CheckColumn("id", "int(11)", "belegeimport", "NOT NULL AUTO_INCREMENT"); - $this->app->erp->CheckColumn("userid", "INT(11)", "belegeimport", "NOT NULL DEFAULT '0'"); - $this->app->erp->CheckColumn("adresse", "INT(11)", "belegeimport", "NOT NULL DEFAULT '0'"); - $this->app->erp->CheckColumn("artikel", "INT(11)", "belegeimport", "NOT NULL DEFAULT '0'"); - $this->app->erp->CheckColumn("art", "varchar(20)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("status", "varchar(24)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_status", "varchar(24)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_datum", "varchar(24)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_lieferdatum", "varchar(24)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_tatsaechlicheslieferdatum", "varchar(24)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_versandart", "varchar(24)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn('beleg_zahlungsweise', 'varchar(32)', 'belegeimport', "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_belegnr", "varchar(20)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_hauptbelegnr", "varchar(20)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_kundennummer", "varchar(64)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_lieferantennummer", "varchar(64)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_name", "varchar(64)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_abteilung", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_unterabteilung", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_adresszusatz", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_ansprechpartner", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_telefon", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_email", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_land", "varchar(2)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_strasse", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_plz", "varchar(64)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_ort", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_projekt", "INT(11)", "belegeimport", "NOT NULL DEFAULT '0'"); - - $this->app->erp->CheckColumn("beleg_aktion", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_internebemerkung", "text", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_internebezeichnung", "text", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_freitext", "text", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_ihrebestellnummer", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_lieferbedingung", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("beleg_art", "varchar(32)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn('beleg_auftragid', 'INT(11)', 'belegeimport', 'NOT NULL DEFAULT 0'); - - $this->app->erp->CheckColumn("artikel_nummer", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_ean", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_bezeichnung", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_beschreibung", "TEXT", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_menge", "DECIMAL(18,8)", "belegeimport", "DEFAULT '0' NOT NULL"); - $this->app->erp->CheckColumn("artikel_preis", "DECIMAL(18,8)", "belegeimport", "DEFAULT '0' NOT NULL"); - $this->app->erp->CheckColumn("artikel_preisfuermenge", "DECIMAL(18,8)", "belegeimport", "DEFAULT '1' NOT NULL"); - $this->app->erp->CheckColumn("artikel_rabatt", "DECIMAL(18,8)", "belegeimport", "DEFAULT '0' NOT NULL"); - $this->app->erp->CheckColumn("artikel_waehrung", "varchar(3)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_lieferdatum", "DATE", "belegeimport"); - $this->app->erp->CheckColumn("artikel_sort", "INT(11)", "belegeimport", "NOT NULL DEFAULT '1'"); - $this->app->erp->CheckColumn("artikel_umsatzsteuer", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_einheit", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_zolltarifnummer", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_herkunftsland", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn("artikel_artikelnummerkunde", "varchar(255)", "belegeimport", "NOT NULL DEFAULT ''"); - - for($i=1;$i<=20;$i++) { - $this->app->erp->CheckColumn('artikel_freifeld' . $i, 'VARCHAR(255)', 'belegeimport', "NOT NULL DEFAULT ''"); - } - - $this->app->erp->CheckColumn('beleg_unterlistenexplodieren', 'INT(11)', 'belegeimport', 'NOT NULL DEFAULT 0'); - - - $this->CheckColumn("reserviertdatum","DATE","lager_reserviert"); - - for($i=1;$i<=10;$i++) - $this->CheckColumn("freifeld".$i,"TEXT","projekt"); - - for($i=1;$i<=20;$i++) - $this->CheckColumn("freifeld".$i,"TEXT","adresse"); - - - $this->CheckColumn('taxfromdoctypesettings', 'tinyint(1)', 'projekt', 'DEFAULT 0 NOT NULL'); - - $this->CheckColumn("lead","TINYINT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlungsweiseabo","VARCHAR(64)","adresse","DEFAULT '' NOT NULL"); - - $this->CheckColumn("rechnung_papier","TINYINT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("angebot_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("auftrag_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("rechnung_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("gutschrift_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferschein_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("bestellung_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - - $this->CheckColumn("angebot_email","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("auftrag_email","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("rechnungs_email","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("gutschrift_email","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferschein_email","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("bestellung_email","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferschwellenichtanwenden","TINYINT(1)","adresse","DEFAULT 0 NOT NULL"); - - $this->CheckColumn("angebot_fax_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("auftrag_fax_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("rechnung_fax_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("gutschrift_fax_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferschein_fax_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("bestellung_fax_cc","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("abperfax","TINYINT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("abpermail","VARCHAR(128)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("rechnung_permail","TINYINT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bundesland","VARCHAR(64)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesland","VARCHAR(64)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesland","VARCHAR(64)","rechnung","DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesland","VARCHAR(64)","lieferschein","DEFAULT '' NOT NULL"); - $this->CheckColumn("plz","VARCHAR(64)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("telefon","VARCHAR(64)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("telefax","VARCHAR(64)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("mobil","VARCHAR(64)","adresse","DEFAULT '' NOT NULL"); - - $this->CheckColumn("filiale","TEXT","adresse"); - - $this->CheckColumn("rma","INT(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("transaktionsnummer","VARCHAR(255)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("vorabbezahltmarkieren","INT(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferungtrotzsperre","INT(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftragseingangper","VARCHAR(64)","auftrag","DEFAULT '' NOT NULL"); - - $this->CheckColumn("gln","VARCHAR(64)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("liefergln","VARCHAR(64)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("liefergln","VARCHAR(64)","angebot","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferemail","VARCHAR(200)","angebot","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferemail","VARCHAR(200)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("gln","VARCHAR(64)","rechnung","DEFAULT '' NOT NULL"); - $this->CheckColumn("gln","VARCHAR(64)","lieferschein","DEFAULT '' NOT NULL"); - $this->CheckColumn("gln","VARCHAR(64)","gutschrift","DEFAULT '' NOT NULL"); - $this->CheckColumn("gln","VARCHAR(64)","angebot","DEFAULT '' NOT NULL"); - - $this->CheckColumn("daten", "VARCHAR(512)", "ustprf_protokoll", "DEFAULT '' NOT NULL"); - - $this->CheckColumn("lieferdatum","DATE","gutschrift"); - $this->CheckColumn("planedorderdate","DATE","angebot"); - - $this->CheckColumn("vertrieb","int(11)","adresse"); - $this->CheckColumn("innendienst","int(11)","adresse"); - $this->CheckColumn("verbandsnummer","VARCHAR(255)","adresse"); - $this->CheckColumn("kassiereraktiv","INT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kassierernummer","VARCHAR(10)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("kassiererprojekt","INT(11)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("abweichendeemailab","varchar(64)","adresse"); - $this->CheckColumn("portofrei_aktiv","DECIMAL(10,2)","adresse"); - $this->CheckColumn("portofreilieferant_aktiv","tinyint(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("portofreiab","DECIMAL(10,2)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("portofreiablieferant","DECIMAL(10,2)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("infoauftragserfassung","TEXT","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("hinweistextlieferant","TEXT","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("mandatsreferenz","varchar(255)","adresse","DEFAULT '' NOT NULL"); - - $this->CheckColumn("mandatsreferenzart","varchar(64)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("mandatsreferenzwdhart","varchar(64)","adresse","DEFAULT '' NOT NULL"); - - $this->CheckColumn("mandatsreferenzart","varchar(64)","dta","DEFAULT '' NOT NULL"); - $this->CheckColumn("mandatsreferenzwdhart","varchar(64)","dta","DEFAULT '' NOT NULL"); - - $this->CheckColumn("mandatsreferenzdatum","DATE","adresse"); - $this->CheckColumn("mandatsreferenzaenderung","TINYINT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("firmensepa","TINYINT(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mandatsreferenzhinweis","TEXT","adresse"); - $this->CheckColumn("glaeubigeridentnr","varchar(255)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("kreditlimit","DECIMAL(18,2)","adresse","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("tour","INT(11)","adresse","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("zahlungskonditionen_festschreiben","int(1)","adresse"); - $this->CheckColumn("rabatte_festschreiben","int(1)","adresse"); - - $this->CheckColumn("autodruck_rz","INT(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("explodiert_parent_artikel","INT(11)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("explodiert_parent","INT(11)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("explodiert_parent_artikel","INT(11)","rechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("explodiert_parent_artikel","INT(11)","gutschrift_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruck_periode","INT(1)","rechnung","DEFAULT '1' NOT NULL"); - $this->CheckColumn("autodruck_done","INT(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruck_anzahlverband","INT(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruck_anzahlkunde","INT(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruck_mailverband","INT(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruck_mailkunde","INT(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("dta_datei_verband","INT(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("dta_datei_verband","INT(11)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("manuell_vorabbezahlt","DATE","gutschrift"); - $this->CheckColumn("manuell_vorabbezahlt_hinweis","VARCHAR(128)","gutschrift","DEFAULT '' NOT NULL"); - $this->CheckColumn("nicht_umsatzmindernd","TINYINT(1)","gutschrift","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("dta_datei","INT(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("dta_datei","INT(11)","gutschrift","DEFAULT '0' NOT NULL"); - - $this->CheckTable('payment_transaction'); - $this->CheckColumn('returnorder_id', 'INT(11)', 'payment_transaction','DEFAULT 0 NOT NULL'); - - $this->CheckColumn('liability_id', 'INT(11)', 'payment_transaction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('payment_status', 'VARCHAR(32)', 'payment_transaction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('payment_account_id', 'INT(11)', 'payment_transaction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('address_id', 'INT(11)', 'payment_transaction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('payment_transaction_group_id', 'INT(11)', 'payment_transaction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('amount', 'DECIMAL(12,2)', 'payment_transaction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('currency', 'VARCHAR(8)', 'payment_transaction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('payment_reason', 'VARCHAR(255)', 'payment_transaction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('payment_info', 'VARCHAR(255)', 'payment_transaction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('payment_json', 'TEXT', 'payment_transaction'); - $this->CheckColumn('created_at','TIMESTAMP','payment_transaction','DEFAULT CURRENT_TIMESTAMP NOT NULL'); - - $this->CheckIndex('payment_transaction', 'returnorder_id'); - $this->CheckIndex('payment_transaction', 'liability_id'); - $this->CheckIndex('payment_transaction', 'payment_transaction_group_id'); - $this->CheckIndex('payment_transaction', 'payment_account_id'); - - $this->CheckTable('payment_transaction_group'); - $this->CheckColumn('payment_account_id', 'INT(11)', 'payment_transaction_group','DEFAULT 0 NOT NULL'); - $this->CheckColumn('created_at','TIMESTAMP','payment_transaction_group','DEFAULT CURRENT_TIMESTAMP NOT NULL'); - $this->CheckColumn('comment', 'VARCHAR(255)', 'payment_transaction_group',"DEFAULT '' NOT NULL"); - $this->CheckColumn('created_by', 'VARCHAR(255)', 'payment_transaction_group',"DEFAULT '' NOT NULL"); - $this->CheckIndex('payment_transaction_group', 'payment_account_id'); - - $this->CheckTable('payment_transaction_preview'); - $this->CheckColumn('returnorder_id', 'INT(11)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('liability_id', 'INT(11)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('payment_account_id', 'INT(11)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('address_id', 'INT(11)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('address_id', 'INT(11)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('user_id', 'INT(11)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('selected', 'TINYINT(1)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('amount', 'DECIMAL(12,2)', 'payment_transaction_preview','DEFAULT 0 NOT NULL'); - $this->CheckColumn('currency', 'VARCHAR(8)', 'payment_transaction_preview',"DEFAULT '' NOT NULL"); - $this->CheckColumn('payment_reason', 'VARCHAR(255)', 'payment_transaction_preview',"DEFAULT '' NOT NULL"); - $this->CheckColumn('payment_info', 'VARCHAR(255)', 'payment_transaction_preview',"DEFAULT '' NOT NULL"); - $this->CheckIndex('payment_transaction_preview', 'user_id'); - $this->CheckIndex('payment_transaction_preview', 'returnorder_id'); - - /* Lagermindestmengen */ - $this->CheckTable("lagermindestmengen"); - $this->CheckColumn("id","int(11)","lagermindestmengen","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","lagermindestmengen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","INT(11)","lagermindestmengen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lagermindestmengen","DEFAULT '0' NOT NULL"); - $this->CheckColumn('max_menge','DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','lagermindestmengen','DEFAULT 0 NOT NULL'); - $this->CheckColumn("datumvon","DATE","lagermindestmengen"); - $this->CheckColumn("datumbis","DATE","lagermindestmengen"); - $this->CheckIndex('lagermindestmengen',['artikel','lager_platz']); - - } - - if($stufe == 0 || $stufe == 4) - { - $this->CheckTable("templatemessage"); - $this->CheckColumn("id","int(11)","templatemessage","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("user","INT(11)","templatemessage","DEFAULT '0' NOT NULL"); - $this->CheckColumn("message","TEXT","templatemessage","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","TIMESTAMP","templatemessage","DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckIndex("templatemessage", "user"); - /* Permanente Inventur */ - $this->CheckTable("artikel_permanenteinventur"); - $this->CheckColumn("id","int(11)","artikel_permanenteinventur","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","artikel_permanenteinventur","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","INT(11)","artikel_permanenteinventur","DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","artikel_permanenteinventur","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zeitstempel","DATETIME","artikel_permanenteinventur"); - $this->CheckColumn("bearbeiter","VARCHAR(128)","artikel_permanenteinventur","DEFAULT '' NOT NULL"); - - - - $this->CheckTable("objekt_protokoll"); - $this->CheckColumn("id","int(11)","objekt_protokoll","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("objekt","VARCHAR(64)","objekt_protokoll","DEFAULT '' NOT NULL"); - $this->CheckColumn("objektid","INT(11)","objekt_protokoll","DEFAULT '0' NOT NULL"); - $this->CheckColumn("action_long","VARCHAR(128)","objekt_protokoll","DEFAULT '' NOT NULL"); - $this->CheckColumn("meldung","VARCHAR(255)","objekt_protokoll","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(128)","objekt_protokoll","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","DATETIME","objekt_protokoll"); - - $this->CheckTable('shopimport_checkorder'); - $this->CheckColumn('id','int(11)','shopimport_checkorder','NOT NULL AUTO_INCREMENT'); - $this->CheckColumn('shop_id','INT(11)','shopimport_checkorder','DEFAULT \'0\' NOT NULL'); - $this->CheckColumn('order_id','INT(11)','shopimport_checkorder','DEFAULT \'0\' NOT NULL'); - $this->CheckColumn('ext_order','VARCHAR(255)','shopimport_checkorder','DEFAULT \'0\' NOT NULL'); - $this->CheckColumn('fetch_counter','INT(11)','shopimport_checkorder','DEFAULT \'0\' NOT NULL'); - $this->CheckColumn('status','VARCHAR(255)','shopimport_checkorder','DEFAULT \'unpaid\' NOT NULL'); - $this->CheckColumn('date_created','DATETIME','shopimport_checkorder', 'DEFAULT CURRENT_TIMESTAMP NOT NULL'); - $this->CheckColumn('date_last_modified','DATETIME','shopimport_checkorder', 'DEFAULT CURRENT_TIMESTAMP NOT NULL'); - - /* Drucker spooler */ - $this->CheckTable("pdfmirror_md5pool"); - $this->CheckColumn("id","int(11)","pdfmirror_md5pool","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("zeitstempel","DATETIME","pdfmirror_md5pool"); - $this->CheckColumn("checksum","VARCHAR(128)","pdfmirror_md5pool","DEFAULT '' NOT NULL"); - $this->CheckColumn("table_id","int(11)","pdfmirror_md5pool","DEFAULT '0' NOT NULL"); - $this->CheckColumn("table_name","VARCHAR(128)","pdfmirror_md5pool","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(128)","pdfmirror_md5pool","DEFAULT '' NOT NULL"); - $this->CheckColumn("erstesoriginal","int(11)","pdfmirror_md5pool","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiv_id","int(11)","pdfmirror_md5pool","DEFAULT '0' NOT NULL"); - - /*Archiv Version */ - $this->CheckTable("pdfarchiv"); - $this->CheckColumn("id","int(11)","pdfarchiv","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("zeitstempel","DATETIME","pdfarchiv"); - $this->CheckColumn("checksum","VARCHAR(128)","pdfarchiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("table_id","int(11)","pdfarchiv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("table_name","VARCHAR(128)","pdfarchiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("doctype","VARCHAR(128)","pdfarchiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("doctypeorig","VARCHAR(128)","pdfarchiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("dateiname","VARCHAR(128)","pdfarchiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(128)","pdfarchiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("belegnummer","VARCHAR(128)","pdfarchiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("erstesoriginal","int(11)","pdfarchiv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("schreibschutz","tinyint(1)","pdfarchiv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("keinhintergrund","tinyint(1)","pdfarchiv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parameter","varchar(255)","pdfarchiv","DEFAULT '' NOT NULL"); - - $this->CheckColumn("zuarchivieren", "int(11)", "auftrag", "DEFAULT '0' NOT NULL"); - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("zuarchivieren", "int(11)", "anfrage", "DEFAULT '0' NOT NULL"); - - - if($this->ModulVorhanden("proformarechnung")) - $this->CheckColumn("zuarchivieren", "int(11)", "proformarechnung", "DEFAULT '0' NOT NULL"); - } - - if($stufe == 0 || $stufe == 5) - { - $this->CheckColumn("zuarchivieren", "int(11)", "angebot", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("zuarchivieren", "int(11)", "bestellung", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("zuarchivieren", "int(11)", "rechnung", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("zuarchivieren", "int(11)", "gutschrift", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("zuarchivieren", "int(11)", "lieferschein", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "auftrag", "DEFAULT '' NOT NULL"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "anfrage", "DEFAULT '' NOT NULL"); - - - if($this->ModulVorhanden("proformarechnung")) - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "proformarechnung", "DEFAULT '' NOT NULL"); - - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "bestellung", "DEFAULT '' NOT NULL"); - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "rechnung", "DEFAULT '' NOT NULL"); - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "gutschrift", "DEFAULT '' NOT NULL"); - $this->CheckColumn("internebezeichnung", "VARCHAR(255)", "lieferschein", "DEFAULT '' NOT NULL"); - - $this->CheckColumn("reservationdate","DATE","auftrag"); - $this->CheckColumn("angelegtam","DATETIME","angebot"); - $this->CheckColumn("angelegtam","DATETIME","auftrag"); - $this->CheckColumn("angelegtam","DATETIME","rechnung"); - $this->CheckColumn("angelegtam","DATETIME","lieferschein"); - $this->CheckColumn("angelegtam","DATETIME","gutschrift"); - $this->CheckColumn("angelegtam","DATETIME","bestellung"); - - $this->CheckColumn("rechnungid", "int(11)", "lieferschein", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("rechnungid", "int(11)", "auftrag", "DEFAULT '0' NOT NULL"); - /* Drucker spooler */ - $this->CheckTable("drucker_spooler"); - $this->CheckColumn("id","int(11)","drucker_spooler","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("drucker","int(11)","drucker_spooler","DEFAULT '0' NOT NULL"); - $this->CheckColumn("filename","VARCHAR(128)","drucker_spooler","DEFAULT '' NOT NULL"); - $this->CheckColumn("content","LONGBLOB","drucker_spooler","DEFAULT '' NOT NULL"); - $this->CheckColumn("description","VARCHAR(128)","drucker_spooler","DEFAULT '' NOT NULL"); - $this->CheckColumn("anzahl","VARCHAR(128)","drucker_spooler","DEFAULT '' NOT NULL"); - $this->CheckColumn("befehl","VARCHAR(128)","drucker_spooler","DEFAULT '' NOT NULL"); - $this->CheckColumn("anbindung","VARCHAR(128)","drucker_spooler","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","DATETIME","drucker_spooler"); - $this->CheckColumn("user","int(11)","drucker_spooler","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gedruckt","tinyint(1)","drucker_spooler","DEFAULT '0' NOT NULL"); - - $this->CheckTable("pinwand"); - $this->CheckColumn("id","int(11)","pinwand","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("name","VARCHAR(128)","pinwand","DEFAULT '' NOT NULL"); - $this->CheckColumn("user","INT(11)","pinwand","DEFAULT '0' NOT NULL"); - - $this->CheckTable("adapterbox"); - $this->CheckColumn("id","int(11)","adapterbox","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("verwendenals","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("baudrate","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("model","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("seriennummer","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("ipadresse","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("netmask","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("gateway","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("dns","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("dhcp","TINYINT(1)","adapterbox","DEFAULT '1' NOT NULL"); - $this->CheckColumn("wlan","TINYINT(1)","adapterbox","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ssid","VARCHAR(128)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("passphrase","VARCHAR(256)","adapterbox","DEFAULT '' NOT NULL"); - $this->CheckColumn("letzteverbindung","DATETIME","adapterbox"); - $this->CheckColumn("tmpip","VARCHAR(255)","adapterbox","DEFAULT '' NOT NULL"); - - $this->CheckTable('adapterbox_request_log'); - $this->CheckColumn('auth','VARCHAR(255)','adapterbox_request_log',"NOT NULL DEFAULT ''"); - $this->CheckColumn('validpass','VARCHAR(255)','adapterbox_request_log',"NOT NULL DEFAULT ''"); - $this->CheckColumn('device','VARCHAR(255)','adapterbox_request_log',"NOT NULL DEFAULT ''"); - $this->CheckColumn('digets','VARCHAR(255)','adapterbox_request_log',"NOT NULL DEFAULT ''"); - $this->CheckColumn('ip','VARCHAR(32)','adapterbox_request_log',"NOT NULL DEFAULT ''"); - $this->CheckColumn('created_at','TIMESTAMP','adapterbox_request_log'); - $this->CheckColumn('success','TINYINT(1)','adapterbox_request_log','DEFAULT 0 NOT NULL'); - - $this->CheckTable("pinwand_user"); - $this->CheckColumn("pinwand","int(11)","pinwand_user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("user","int(11)","pinwand_user","DEFAULT '0' NOT NULL"); - - - $this->CheckTable("device_jobs"); - $this->CheckColumn("id","int(11)","device_jobs","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("deviceidsource","VARCHAR(64)","device_jobs","DEFAULT ''"); - $this->CheckColumn("deviceiddest","VARCHAR(64)","device_jobs","DEFAULT ''"); - $this->CheckColumn("job","LONGTEXT","device_jobs","DEFAULT '' NOT NULL "); - $this->CheckColumn("zeitstempel","DATETIME","device_jobs"); - $this->CheckColumn("abgeschlossen","tinyint(1)","device_jobs","DEFAULT '0' NOT NULL "); - $this->CheckColumn("art","VARCHAR(64)","device_jobs","DEFAULT ''"); - $this->CheckColumn("request_id","int(11)","device_jobs","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("versendet_am_zeitstempel","DATETIME","versand"); - $this->CheckColumn('lastspooler_id','INT(11)', 'versand','NOT NULL DEFAULT 0'); - $this->CheckColumn('lastprinter','INT(11)', 'versand','NOT NULL DEFAULT 0'); - $this->CheckColumn('lastexportspooler_id','INT(11)', 'versand','NOT NULL DEFAULT 0'); - $this->CheckColumn('lastexportprinter','INT(11)', 'versand','NOT NULL DEFAULT 0'); - - $this->CheckTable("artikeleigenschaften"); - $this->CheckColumn("id","int(11)","artikeleigenschaften","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","artikeleigenschaften","DEFAULT '0' NOT NULL"); - $this->CheckColumn("name","VARCHAR(64)","artikeleigenschaften","DEFAULT ''"); - $this->CheckColumn("typ","VARCHAR(64)","artikeleigenschaften","DEFAULT 'einzeilig'"); - $this->CheckColumn("projekt","INT(11)","artikeleigenschaften","DEFAULT '0' NOT NULL"); - $this->CheckColumn("geloescht","tinyint(1)","artikeleigenschaften","DEFAULT '0' NOT NULL"); - - $this->CheckTable("artikeleigenschaftenwerte"); - $this->CheckColumn("id","int(11)","artikeleigenschaftenwerte","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikeleigenschaften","INT(11)","artikeleigenschaftenwerte","DEFAULT '0' NOT NULL"); - $this->CheckColumn("vorlage","INT(11)","artikeleigenschaftenwerte","DEFAULT '0' NOT NULL"); - $this->CheckColumn("name","VARCHAR(64)","artikeleigenschaftenwerte","DEFAULT ''"); - $this->CheckColumn("einheit","VARCHAR(64)","artikeleigenschaftenwerte","DEFAULT ''"); - $this->CheckColumn("wert","text","artikeleigenschaftenwerte","DEFAULT ''"); - $this->CheckColumn("artikel","INT(11)","artikeleigenschaftenwerte","DEFAULT '0' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `artikeleigenschaftenwerte` CHANGE `wert` `wert` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL"); - - $this->CheckTable("eigenschaften"); - $this->CheckColumn("id","int(11)","eigenschaften","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","eigenschaften","DEFAULT '0' NOT NULL"); - $this->CheckColumn("art","INT(11)","eigenschaften","DEFAULT '0' NOT NULL"); - $this->CheckColumn("hauptkategorie","VARCHAR(128)","eigenschaften","DEFAULT ''"); - $this->CheckColumn("unterkategorie","VARCHAR(128)","eigenschaften","DEFAULT ''"); - $this->CheckColumn("einheit","VARCHAR(64)","eigenschaften","DEFAULT ''"); - $this->CheckColumn("wert","VARCHAR(64)","eigenschaften","DEFAULT ''"); - - $this->CheckTable('article_property_translation'); - $this->CheckColumn('id', 'int(11)','article_property_translation','NOT NULL AUTO INCREMENT'); - $this->CheckColumn('article_id','int(11)','article_property_translation',"DEFAULT '0' NOT NULL"); - $this->CheckColumn('category_id','int(11)','article_property_translation',"DEFAULT '0' NOT NULL"); - $this->CheckColumn('shop_id','int(11)','article_property_translation',"DEFAULT '0' NOT NULL"); - $this->CheckColumn('language_from','varchar(32)','article_property_translation',"DEFAULT '' NOT NULL"); - $this->CheckColumn('language_to','varchar(32)','article_property_translation',"DEFAULT '' NOT NULL"); - $this->CheckColumn('property_from','varchar(255)','article_property_translation',"DEFAULT '' NOT NULL"); - $this->CheckColumn('property_to','varchar(255)','article_property_translation',"DEFAULT '' NOT NULL"); - $this->CheckColumn('property_value_from','varchar(255)','article_property_translation',"DEFAULT '' NOT NULL"); - $this->CheckColumn('property_value_to','varchar(255)','article_property_translation',"DEFAULT '' NOT NULL"); - - $this->CheckIndex('article_property_translation', 'article_id'); - $this->CheckIndex('article_property_translation', 'category_id'); - $this->CheckIndex('article_property_translation', 'shop_id'); - $this->CheckIndex('adresse_abosammelrechnungen','adresse'); - } - - if($stufe == 0 || $stufe == 6) - { - $this->CheckColumn("sort","INT(11)","datei_stichwoerter","DEFAULT '0' NOT NULL "); - $this->CheckColumn("parameter2","INT(11)","datei_stichwoerter","DEFAULT '0' NOT NULL "); - $this->CheckColumn("objekt2","VARCHAR(255)","datei_stichwoerter","DEFAULT '' NOT NULL "); - - $this->CheckTable("zeiterfassungvorlage"); - $this->CheckColumn("id","int(11)","zeiterfassungvorlage","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("vorlage","VARCHAR(255)","zeiterfassungvorlage","DEFAULT '' NOT NULL "); - $this->CheckColumn("vorlagedetail","TEXT","zeiterfassungvorlage","DEFAULT '' NOT NULL "); - $this->CheckColumn("ausblenden","tinyint(1)","zeiterfassungvorlage","DEFAULT '0' NOT NULL"); - - $this->CheckTable("uebersetzung"); - $this->CheckColumn("id","int(11)","uebersetzung","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("label","VARCHAR(255)","uebersetzung","DEFAULT '' NOT NULL "); - $this->CheckColumn("beschriftung","TEXT","uebersetzung","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(255)","uebersetzung","DEFAULT '' NOT NULL "); - $this->CheckColumn("original","TEXT","uebersetzung","DEFAULT '' NOT NULL "); - - $this->app->DB->Query("DELETE FROM uebersetzung WHERE sprache= 'dokument_anschreiben'"); - - - $this->CheckTable("etiketten"); - $this->CheckColumn("id","int(11)","etiketten","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("name","VARCHAR(64)","etiketten","DEFAULT '' NOT NULL "); - $this->CheckColumn("xml","TEXT","etiketten","DEFAULT '' NOT NULL "); - $this->CheckColumn("bemerkung","TEXT","etiketten","DEFAULT '' NOT NULL "); - $this->CheckColumn("ausblenden","tinyint(1)","etiketten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("verwendenals","VARCHAR(64)","etiketten","DEFAULT '' NOT NULL "); - $this->CheckColumn("format","VARCHAR(64)","etiketten","DEFAULT '' NOT NULL "); - - $this->CheckColumn("manuell","TINYINT(1)","etiketten","DEFAULT '0' NOT NULL "); - $this->CheckColumn("labelbreite","INT(11)","etiketten","DEFAULT '50' NOT NULL "); - $this->CheckColumn("labelhoehe","INT(11)","etiketten","DEFAULT '18' NOT NULL "); - $this->CheckColumn("labelabstand","INT(11)","etiketten","DEFAULT '3' NOT NULL "); - $this->CheckColumn("labeloffsetx","INT(11)","etiketten","DEFAULT '0' NOT NULL "); - $this->CheckColumn("labeloffsety","INT(11)","etiketten","DEFAULT '6' NOT NULL "); - $this->CheckColumn("anzahlprozeile","INT(11)","etiketten","DEFAULT '1' NOT NULL "); - - $this->CheckTable("versandpakete"); - $this->CheckColumn("id","int(11)","versandpakete","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("versand","INT(11)","versandpakete","DEFAULT '0' NOT NULL"); - $this->CheckColumn("nr","INT(11)","versandpakete","DEFAULT '0' NOT NULL"); - $this->CheckColumn("tracking","VARCHAR(255)","versandpakete","DEFAULT '' NOT NULL "); - $this->CheckColumn("versender","VARCHAR(255)","versandpakete","DEFAULT '' NOT NULL "); - $this->CheckColumn("gewicht","VARCHAR(10)","versandpakete","DEFAULT '' NOT NULL "); - $this->CheckColumn("bemerkung","TEXT","versandpakete","DEFAULT '' NOT NULL "); - - $this->CheckTable("seriennummern"); - $this->CheckColumn("id","int(11)","seriennummern","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("seriennummer", "varchar(255)", "seriennummern", "NOT NULL"); - $this->CheckColumn("adresse", "int(11)", "seriennummern", "NOT NULL"); - $this->CheckColumn("artikel", "int(11)", "seriennummern", "NOT NULL"); - $this->CheckColumn("beschreibung", "varchar(255)", "seriennummern", "NOT NULL"); - $this->CheckColumn("lieferung", "date", "seriennummern", "NOT NULL"); - $this->CheckColumn("lieferschein", "int(11)", "seriennummern", "NOT NULL"); - $this->CheckColumn("lieferscheinpos", "int(11)", "seriennummern", "NOT NULL"); - $this->CheckColumn("bearbeiter", "varchar(255)", "seriennummern", "NOT NULL"); - $this->CheckColumn("logdatei", "datetime", "seriennummern", "NOT NULL"); - - $this->CheckTable("chargen"); - $this->CheckColumn("id","int(11)","chargen","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("charge", "TEXT", "chargen", "NOT NULL"); - $this->CheckColumn("adresse", "int(11)", "chargen", "NOT NULL"); - $this->CheckColumn("artikel", "int(11)", "chargen", "NOT NULL"); - $this->CheckColumn("beschreibung", "varchar(255)", "chargen", "NOT NULL"); - $this->CheckColumn("lieferung", "date", "chargen", "NOT NULL"); - $this->CheckColumn("lieferschein", "int(11)", "chargen", "NOT NULL"); - $this->CheckColumn("bearbeiter", "varchar(255)", "chargen", "NOT NULL"); - $this->CheckColumn("logdatei", "datetime", "chargen", "NOT NULL"); - - - $this->InstallModul('appstore'); - $this->InstallModul('logfile'); - $this->InstallModul('protokoll'); - $this->InstallModul('systemlog'); -$this->RegisterHook('ImportAuftragBefore','onlineshops','ImportAuftragBeforeHook'); - $this->CheckTable("adapterbox_log"); - $this->CheckColumn("id","int(11)","adapterbox_log","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("ip","VARCHAR(64)","adapterbox_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("meldung","VARCHAR(64)","adapterbox_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("seriennummer","VARCHAR(64)","adapterbox_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("device","VARCHAR(64)","adapterbox_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("datum","DATETIME","adapterbox_log"); - - $this->CheckTable("stechuhr"); - $this->CheckColumn("id","int(11)","stechuhr","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("datum","DATETIME","stechuhr"); - $this->CheckColumn("adresse","INT(11)","stechuhr","DEFAULT '0' NOT NULL"); - $this->CheckColumn("user","INT(11)","stechuhr","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommen","tinyint(1)","stechuhr","DEFAULT '0' NOT NULL"); - $this->CheckColumn("status","varchar(20)","stechuhr","DEFAULT '' NOT NULL"); - $this->CheckColumn("uebernommen","tinyint(1)","stechuhr","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mitarbeiterzeiterfassungid","int(15)","stechuhr","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("deckungsbeitragcalc","TINYINT(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("deckungsbeitrag","DECIMAL(10,2)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("erloes_netto","DECIMAL(10,2)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("umsatz_netto","DECIMAL(10,2)","auftrag","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("saldo","DECIMAL(10,2)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("saldogeprueft","DATETIME","auftrag","DEFAULT NULL"); - - $this->CheckColumn("deckungsbeitragcalc","TINYINT(1)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("deckungsbeitrag","DECIMAL(10,2)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("erloes_netto","DECIMAL(10,2)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("umsatz_netto","DECIMAL(10,2)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gesamtsummeausblenden","TINYINT(1)","angebot","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("deckungsbeitragcalc","TINYINT(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("deckungsbeitrag","DECIMAL(10,2)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("umsatz_netto","DECIMAL(10,2)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("erloes_netto","DECIMAL(10,2)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mahnwesenfestsetzen","tinyint(1)","rechnung","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("deckungsbeitragcalc","TINYINT(1)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("deckungsbeitrag","DECIMAL(10,2)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("erloes_netto","DECIMAL(10,2)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("umsatz_netto","DECIMAL(10,2)","gutschrift","DEFAULT '0' NOT NULL"); - - - $this->CheckColumn("lieferdatum","DATE","angebot"); - $this->CheckColumn("auftragid","int(11)","angebot","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferid","int(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ansprechpartnerid","int(11)","angebot","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferid","int(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ansprechpartnerid","int(11)","auftrag","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferid","int(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ansprechpartnerid","int(11)","rechnung","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferid","int(11)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ansprechpartnerid","int(11)","gutschrift","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferid","int(11)","lieferschein","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ansprechpartnerid","int(11)","lieferschein","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferdatum","DATE","auftrag"); - $this->CheckColumn("tatsaechlicheslieferdatum","DATE","auftrag"); - $this->CheckColumn("liefertermin_ok","int(1)","auftrag","DEFAULT '1' NOT NULL"); - $this->CheckColumn("teillieferung_moeglich","int(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kreditlimit_ok","int(1)","auftrag","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kreditlimit_freigabe","int(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("liefersperre_ok","int(1)","auftrag","DEFAULT '1' NOT NULL"); - $this->CheckColumn("teillieferungvon","int(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teillieferungnummer","int(11)","auftrag","DEFAULT '0' NOT NULL"); - - $this->CheckColumn('deliverythresholdvatid','VARCHAR(64)','auftrag',"DEFAULT '' NOT NULL"); - $this->CheckColumn('deliverythresholdvatid','VARCHAR(64)','rechnung',"DEFAULT '' NOT NULL"); - $this->CheckColumn('deliverythresholdvatid','VARCHAR(64)','gutschrift',"DEFAULT '' NOT NULL"); - - $this->CheckColumn("kopievon","int(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kopienummer","int(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilproduktionvon","int(11)","produktion","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilproduktionnummer","int(11)","produktion","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parent","int(11)","produktion","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parentnummer","int(11)","produktion","DEFAULT '0' NOT NULL"); - $this->CheckColumn('fastlane','TINYINT(1)','auftrag','DEFAULT 0'); - - $this->CheckTable('module_stat'); - $this->CheckColumn('module','VARCHAR(64)','module_stat', "DEFAULT '' NOT NULL"); - $this->CheckColumn('action','VARCHAR(64)','module_stat', "DEFAULT '' NOT NULL"); - $this->CheckColumn('created_date','DATE','module_stat', 'DEFAULT NULL'); - $this->CheckColumn('view_count','INT(11)','module_stat','DEFAULT 0 NOT NULL'); - $this->CheckIndex('module_stat', ['created_date', 'module','action'], true); - - $this->CheckTable('object_stat'); - $this->CheckColumn('object_type', 'VARCHAR(64)', 'object_stat', "DEFAULT '' NOT NULL"); - $this->CheckColumn('object_parameter', 'VARCHAR(64)', 'object_stat', "DEFAULT '' NOT NULL"); - $this->CheckColumn('event_type', 'VARCHAR(64)', 'object_stat', "DEFAULT '' NOT NULL"); - $this->CheckColumn('created_at', 'DATE', 'object_stat', 'NOT NULL'); - $this->CheckColumn('event_count', 'INT(11)', 'object_stat', 'DEFAULT 0 NOT NULL'); - $this->CheckIndex('object_stat', ['created_at', 'object_type', 'object_parameter', 'event_type'], true); - - $this->CheckTable('module_stat_detail'); - $this->CheckColumn('module', 'VARCHAR(64)', 'module_stat_detail', "DEFAULT '' NOT NULL"); - $this->CheckColumn('action', 'VARCHAR(64)', 'module_stat_detail', "DEFAULT '' NOT NULL"); - $this->CheckColumn('document_id', 'INT(11)', 'module_stat_detail', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('user_id', 'INT(11)', 'module_stat_detail', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('visible', 'TINYINT(1)', 'module_stat_detail', 'DEFAULT 1 NOT NULL'); - $this->CheckColumn('uid', 'VARCHAR(40)', 'module_stat_detail', "DEFAULT '' NOT NULL"); - $this->CheckColumn('start_date', 'DATETIME', 'module_stat_detail', 'DEFAULT NULL'); - $this->CheckColumn('end_date', 'DATETIME', 'module_stat_detail', 'DEFAULT NULL'); - $this->CheckIndex( - 'module_stat_detail', - ['user_id', 'uid','module','action','document_id','visible','start_date'], - true - ); - } - - if($stufe == 0 || $stufe == 6) - { - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("vertriebid","INT(11)","anfrage"); - - $this->CheckColumn("vertriebid","INT(11)","angebot"); - $this->CheckColumn("vertriebid","INT(11)","auftrag"); - $this->CheckColumn("vertriebid","INT(11)","rechnung"); - $this->CheckColumn("vertriebid","INT(11)","lieferschein"); - $this->CheckColumn("vertriebid","INT(11)","gutschrift"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("bearbeiterid","INT(11)","anfrage"); - - $this->CheckColumn("bearbeiterid","INT(11)","angebot"); - $this->CheckColumn("bearbeiterid","INT(11)","auftrag"); - $this->CheckColumn("bearbeiterid","INT(11)","rechnung"); - $this->CheckColumn("bearbeiterid","INT(11)","lieferschein"); - $this->CheckColumn("bearbeiterid","INT(11)","gutschrift"); - $this->CheckColumn("bearbeiterid","INT(11)","produktion"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("aktion","varchar(64)","anfrage","DEFAULT '' NOT NULL"); - - $this->CheckColumn("aktion","varchar(64)","angebot","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktion","varchar(64)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktion","varchar(64)","rechnung","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktion","varchar(64)","gutschrift","DEFAULT '' NOT NULL"); - - if($this->ModulVorhanden("anfrage")) - { - $this->CheckColumn("vertrieb","VARCHAR(255)","anfrage","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(255)","anfrage","DEFAULT '' NOT NULL"); - } - - if($this->ModulVorhanden("proformarechnung")) - { - $this->CheckColumn("bearbeiter","VARCHAR(255)","proformarechnung","DEFAULT '' NOT NULL"); - } - - $this->CheckColumn("vertrieb","VARCHAR(255)","angebot","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(255)","angebot","DEFAULT '' NOT NULL"); - $this->CheckColumn("vertrieb","VARCHAR(255)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(255)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("vertrieb","VARCHAR(255)","rechnung","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(255)","rechnung","DEFAULT '' NOT NULL"); - $this->CheckColumn("vertrieb","VARCHAR(255)","lieferschein","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(255)","lieferschein","DEFAULT '' NOT NULL"); - $this->CheckColumn("vertrieb","VARCHAR(255)","gutschrift","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","VARCHAR(255)","gutschrift","DEFAULT '' NOT NULL"); - - $this->CheckColumn("provision","DECIMAL(10,2)","angebot"); - $this->CheckColumn("provision_summe","DECIMAL(10,2)","angebot"); - $this->CheckColumn("provision","DECIMAL(10,2)","auftrag"); - $this->CheckColumn("provision_summe","DECIMAL(10,2)","auftrag"); - $this->CheckColumn("provision","DECIMAL(10,2)","rechnung"); - $this->CheckColumn("provision_summe","DECIMAL(10,2)","rechnung"); - $this->CheckColumn("provision","DECIMAL(10,2)","gutschrift"); - $this->CheckColumn("provision_summe","DECIMAL(10,2)","gutschrift"); - - $this->CheckColumn("beschreibung","text","kalender_event"); - $this->CheckColumn("ort","text","kalender_event"); - $this->CheckColumn("mlmaktiv","int(1)","adresse"); - $this->CheckColumn("mlmvertragsbeginn","DATE","adresse"); - $this->CheckColumn("mlmlizenzgebuehrbis","DATE","adresse"); - $this->CheckColumn("mlmfestsetzenbis","DATE","adresse"); - - - $this->CheckColumn("mlmfestsetzen","int(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mlmmindestpunkte","int(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mlmwartekonto","Decimal(10,2)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mlmdirektpraemie","DECIMAL(10,2)","artikel"); - - $this->CheckColumn("nettogewicht", "VARCHAR(64)", "artikel", "NOT NULL DEFAULT ''"); - $this->CheckColumn("xvp", "decimal(14,2)", "artikel", "NOT NULL DEFAULT 0"); - $this->CheckColumn("leerfeld","VARCHAR(64)","artikel"); - $this->CheckColumn("zolltarifnummer","VARCHAR(64)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("herkunftsland","VARCHAR(64)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("keineeinzelartikelanzeigen","TINYINT(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ohnepreisimpdf","TINYINT(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("externeproduktion","TINYINT(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mindesthaltbarkeitsdatum","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("letzteseriennummer","VARCHAR(255)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("individualartikel","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("keinrabatterlaubt","int(1)","artikel"); - $this->CheckColumn("provisionssperre","int(1)","artikel"); - $this->CheckColumn("rabatt","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("dienstleistung","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rabatt_prozent","DECIMAL(10,2)","artikel"); - $this->CheckColumn("bildvorschau","varchar(64)","artikel", "DEFAULT '' NOT NULL"); - $this->CheckColumn("inventursperre","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("inventurekaktiv","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("inventurek","DECIMAL(18,8)","artikel"); - $this->CheckColumn("hinweis_einfuegen","TEXT","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("etikettautodruck","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lagerkorrekturwert","int(11)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodrucketikett","int(11)","artikel","DEFAULT '0' NOT NULL"); - - $this->CheckTable("artikel_onlineshops"); - $this->CheckColumn("id","int(11)","artikel_onlineshops","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","int(11)","artikel_onlineshops","NOT NULL DEFAULT '0'"); - $this->CheckColumn("shop","int(11)","artikel_onlineshops","NOT NULL DEFAULT '0'"); - $this->CheckColumn("aktiv","int(11)","artikel_onlineshops","NOT NULL DEFAULT '0'"); - $this->CheckColumn("ausartikel","int(11)","artikel_onlineshops","NOT NULL DEFAULT '1'"); - $this->CheckColumn("lagerkorrekturwert","int(11)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pseudolager","VARCHAR(255)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autolagerlampe","tinyint(1)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("restmenge","tinyint(1)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferzeitmanuell","varchar(255)","artikel_onlineshops","DEFAULT '' NOT NULL"); - $this->CheckColumn("pseudopreis","DECIMAL(10,2)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("generierenummerbeioption","tinyint(1)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("variante_kopie","tinyint(1)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("unikat","tinyint(1)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("unikatbeikopie","tinyint(1)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autoabgeleicherlaubt","tinyint(1)","artikel_onlineshops","DEFAULT '0' NOT NULL"); - $this->CheckColumn('last_article_hash','VARCHAR(64)', 'artikel_onlineshops', "DEFAULT '' NOT NULL"); - $this->CheckColumn('last_article_transfer','TIMESTAMP', 'artikel_onlineshops', 'NULL DEFAULT NULL'); - $this->CheckColumn('last_storage_transfer','TIMESTAMP', 'artikel_onlineshops', 'NULL DEFAULT NULL'); - $this->CheckColumn('storage_cache','int(11)','artikel_onlineshops','DEFAULT NULL'); - $this->CheckColumn('pseudostorage_cache','int(11)','artikel_onlineshops','DEFAULT NULL'); - - $this->CheckColumn("laenge","DECIMAL(10,2)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("breite","DECIMAL(10,2)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("hoehe","DECIMAL(10,2)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("abckategorie","VARCHAR(1)","artikel","DEFAULT '' NOT NULL"); - - $this->CheckColumn("geraet","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("serviceartikel","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gebuehr","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn('laststorage_changed','TIMESTAMP', 'artikel', "DEFAULT '1970-01-02'"); - $this->CheckColumn('laststorage_sync','TIMESTAMP', 'artikel', "DEFAULT '1970-01-02'"); - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `laststorage_sync` `laststorage_sync` TIMESTAMP DEFAULT '1970-01-02'"); - $this->CheckIndex('artikel', 'laststorage_changed'); - $this->CheckIndex('artikel', 'laststorage_sync'); - - $this->CheckColumn("hinweis_einfuegen","TEXT","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("abweichende_rechnungsadresse","int(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rechnung_vorname","varchar(128)","adresse"); - $this->CheckColumn("rechnung_name","varchar(128)","adresse"); - $this->CheckColumn("rechnung_titel","varchar(128)","adresse"); - $this->CheckColumn("rechnung_typ","varchar(128)","adresse"); - $this->CheckColumn("rechnung_strasse","varchar(255)","adresse"); - $this->CheckColumn("rechnung_ort","varchar(255)","adresse"); - $this->CheckColumn("rechnung_plz","varchar(128)","adresse"); - $this->CheckColumn("rechnung_ansprechpartner","varchar(255)","adresse"); - $this->CheckColumn("rechnung_land","varchar(128)","adresse"); - $this->CheckColumn("rechnung_abteilung","varchar(255)","adresse"); - $this->CheckColumn("rechnung_unterabteilung","varchar(255)","adresse"); - $this->CheckColumn("rechnung_adresszusatz","varchar(255)","adresse"); - $this->CheckColumn("rechnung_telefon","varchar(128)","adresse"); - $this->CheckColumn("rechnung_telefax","varchar(128)","adresse"); - $this->CheckColumn("rechnung_anschreiben","varchar(255)","adresse"); - $this->CheckColumn("rechnung_email","varchar(128)","adresse"); - - $this->CheckColumn("geburtstag","DATE","adresse"); - $this->CheckColumn("geburtstagkalender","tinyint(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("geburtstagskarte","tinyint(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rolledatum","DATE","adresse"); - $this->CheckColumn("liefersperre","int(1)","adresse"); - $this->CheckColumn("liefersperregrund","text","adresse"); - $this->CheckColumn("liefersperredatum","DATE","adresse"); - $this->CheckColumn("mlmpositionierung","varchar(255)","adresse"); - $this->CheckColumn("steuernummer","varchar(255)","adresse"); - $this->CheckColumn("steuerbefreit","int(1)","adresse"); - $this->CheckColumn("mlmmitmwst","int(1)","adresse"); - $this->CheckColumn("mlmabrechnung","varchar(255)","adresse"); - $this->CheckColumn("mlmwaehrungauszahlung","varchar(255)","adresse"); - $this->CheckColumn("mlmauszahlungprojekt","int(11)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("sponsor","int(11)","adresse"); - $this->CheckColumn("geworbenvon","int(11)","adresse"); - $this->CheckColumn("passwordmd5","varchar(255)","user"); - $this->CheckColumn("projekt_bevorzugen","tinyint(1)","user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("email_bevorzugen","tinyint(1)","user","DEFAULT '1' NOT NULL"); - $this->CheckColumn("projekt","INT(11)","user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rfidtag","varchar(64)","user","DEFAULT '' NOT NULL"); - $this->CheckColumn("vorlage","varchar(255)","user"); - $this->CheckColumn("kalender_passwort","varchar(255)","user"); - $this->CheckColumn("kalender_ausblenden","int(1)","user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kalender_aktiv","int(1)","user"); - $this->CheckColumn("gpsstechuhr","int(1)","user"); - $this->CheckColumn("standardetikett","int(11)","user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("standardversanddrucker","int(11)","user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("paketmarkendrucker","int(11)","user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("standardfax","int(11)","user","DEFAULT '0' NOT NULL"); - $this->CheckColumn("internebezeichnung","varchar(255)","user"); - $this->CheckColumn("sprachebevorzugen","varchar(255)","user"); - $this->CheckColumn("vergessencode","varchar(255)","user","DEFAULT '' NOT NULL"); - $this->CheckColumn("vergessenzeit","datetime","user","DEFAULT NULL"); - $this->CheckColumn("chat_popup","tinyint(1)","user", "DEFAULT '1' NOT NULL"); - $this->CheckColumn("defaultcolor","varchar(10)","user","DEFAULT '' NOT NULL"); - $this->CheckColumn("passwordhash","char(60)","user"); - $this->CheckColumn("docscan_aktiv","tinyint(1)","user", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("docscan_passwort","varchar(64)","user"); - $this->CheckColumn("callcenter_notification","tinyint(1)","user", "DEFAULT '1' NOT NULL"); - - $this->CheckColumn("logfile","text","adresse"); - $this->CheckColumn("kalender_aufgaben","int(1)","adresse"); - - $this->CheckColumn("dateiid","int(11)","dokumente_send"); - $this->CheckColumn("autolagersperre","int(1)","lager_platz","DEFAULT '0' NOT NULL"); - $this->CheckColumn("verbrauchslager","int(1)","lager_platz","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","int(11)","lager_platz","DEFAULT '0' NOT NULL"); - $this->CheckColumn("abckategorie","VARCHAR(1)","lager_platz","DEFAULT '' NOT NULL"); - $this->CheckColumn("regalart","VARCHAR(100)","lager_platz","DEFAULT '' NOT NULL"); - - $this->CheckColumn("laenge","DECIMAL(10,2)","lager_platz","DEFAULT '0' NOT NULL"); - $this->CheckColumn("breite","DECIMAL(10,2)","lager_platz","DEFAULT '0' NOT NULL"); - $this->CheckColumn("hoehe","DECIMAL(10,2)","lager_platz","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("sperrlager","int(1)","lager_platz","DEFAULT '0' NOT NULL"); - $this->CheckColumn("poslager","int(1)","lager_platz","DEFAULT '0' NOT NULL"); - $this->CheckColumn('rownumber','int(11)','lager_platz','DEFAULT 0 NOT NULL'); - $this->CheckColumn('allowproduction','TINYINT(1)','lager_platz','DEFAULT 0 NOT NULL'); - - $this->CheckColumn("projekt","int(11)","lager","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","int(11)","lager","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("verrechnungskontoreisekosten","int(11)","adresse","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("status","varchar(255)","zeiterfassung"); - $this->CheckColumn("internerkommentar","TEXT","zeiterfassung"); - $this->CheckColumn("gps","varchar(1024)","zeiterfassung"); - $this->CheckColumn("arbeitsnachweispositionid","int(11)","zeiterfassung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("aufgabe_id","int(11)","zeiterfassung","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("auftrag","int(11)","zeiterfassung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftragpositionid","int(11)","zeiterfassung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("produktion","int(11)","zeiterfassung","DEFAULT '0' NOT NULL"); - - $this->CheckTable("versandarten"); - $this->CheckColumn("id","int(11)","versandarten","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("type", "varchar(255)", "versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bezeichnung", "varchar(255)", "versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("modul", "varchar(64)", "versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv", "tinyint(1)", "versandarten", "DEFAULT '1' NOT NULL"); - $this->CheckColumn("geloescht", "tinyint(1)", "versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("keinportocheck", "tinyint(1)", "versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("projekt", "int(11)", "versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("paketmarke_drucker", "int(11)", "versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("export_drucker", "int(11)", "versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einstellungen_json", "text", "versandarten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("ausprojekt", "tinyint(1)", "versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("versandmail", "int(11)", "versandarten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("geschaeftsbrief_vorlage", "int(11)", "versandarten", "DEFAULT '0' NOT NULL"); - - $this->CheckTable("zahlungsweisen"); - $this->CheckColumn("id","int(11)","zahlungsweisen","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("type", "varchar(255)", "zahlungsweisen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bezeichnung", "varchar(255)", "zahlungsweisen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("freitext", "TEXT", "zahlungsweisen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv", "tinyint(1)", "zahlungsweisen", "DEFAULT '1' NOT NULL"); - $this->CheckColumn("geloescht", "tinyint(1)", "zahlungsweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("automatischbezahlt", "tinyint(1)", "zahlungsweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("automatischbezahltverbindlichkeit", "tinyint(1)", "zahlungsweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("projekt", "int(11)", "zahlungsweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("vorkasse", "tinyint(1)", "zahlungsweisen", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("verhalten", "varchar(64)", "zahlungsweisen", "DEFAULT 'vorkasse' NOT NULL"); - $this->CheckColumn("modul", "varchar(64)", "zahlungsweisen", "DEFAULT '' NOT NULL"); - $this->CheckColumn("einstellungen_json", "text", "zahlungsweisen", "DEFAULT '' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `zahlungsweisen` CHANGE `verhalten` `verhalten` VARCHAR(64) NOT NULL DEFAULT 'vorkasse'"); - $this->CheckTable("adresse_typ"); - $this->CheckColumn("id","int(11)","adresse_typ","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("type", "varchar(255)", "adresse_typ", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bezeichnung", "varchar(255)", "adresse_typ", "DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv", "tinyint(1)", "adresse_typ", "DEFAULT '1' NOT NULL"); - $this->CheckColumn("geloescht", "tinyint(1)", "adresse_typ", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("projekt", "int(11)", "adresse_typ", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("netto", "tinyint(1)", "adresse_typ", "DEFAULT '0' NOT NULL"); - - - $this->CheckColumn("wert","text","stueckliste","DEFAULT '' NOT NULL"); - $this->CheckColumn("bauform","text","stueckliste","DEFAULT '' NOT NULL"); - $this->CheckColumn("alternative","int(11)","stueckliste","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zachse","varchar(64)","stueckliste","DEFAULT '' NOT NULL"); - $this->CheckColumn("xpos","varchar(64)","stueckliste","DEFAULT '' NOT NULL"); - $this->CheckColumn("ypos","varchar(64)","stueckliste","DEFAULT '' NOT NULL"); - $this->CheckColumn("art","varchar(64)","stueckliste","DEFAULT '' NOT NULL"); - - $this->CheckColumn("artikelporto","int(11)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelnachnahme","int(11)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelnachnahme_extraartikel","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("artikelimport","int(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelimporteinzeln","int(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autoabgleicherlaubt","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pseudopreis","DECIMAL(10,2)","artikel"); - $this->CheckColumn("pseudolager","VARCHAR(255)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("freigabenotwendig","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("freigaberegel","varchar(255)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("vorabbezahltmarkieren_ohnevorkasse_bar","int(11)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelnummernummerkreis","tinyint(1)", "shopexport", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("holealle","tinyint(1)", "shopexport", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("ab_nummer","varchar(255)", "shopexport", "DEFAULT '' NOT NULL"); - $this->CheckColumn("direktimport","tinyint(1)", "shopexport", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("ust_ok","tinyint(1)", "shopexport", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzgleichzeitig","int(15)", "shopexport", "DEFAULT '1' NOT NULL"); - $this->CheckColumn("datumvon","timestamp", "shopexport"); - $this->CheckColumn("datumbis","timestamp", "shopexport"); - $this->CheckColumn("tmpdatumvon","timestamp", "shopexport"); - $this->CheckColumn("tmpdatumbis","timestamp", "shopexport"); - - $this->CheckColumn("demomodus","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("einzelsync","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("shopbilderuebertragen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adressennichtueberschreiben","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftraegeaufspaeter","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("aktiv","int(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("lagerexport","int(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("utf8codierung","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("artikelexport","int(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("holeallestati","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("cronjobaktiv","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("nummersyncstatusaendern","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlungsweisenmapping","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("versandartenmapping","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autoversandbeikommentardeaktivieren","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelnummeruebernehmen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelbeschreibungauswawision","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelbeschreibungenuebernehmen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("stuecklisteergaenzen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikeltexteuebernehmen","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("artikelportoermaessigt","int(11)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelrabatt","int(11)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikelrabattsteuer","decimal(4,2)","shopexport","DEFAULT '-1' NOT NULL"); - $this->CheckColumn("positionsteuersaetzeerlauben","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("json","text","shopexport","DEFAULT '' NOT NULL"); - $this->CheckColumn("freitext","varchar(64)","shopexport","DEFAULT '' NOT NULL"); - $this->CheckColumn("artikelbezeichnungauswawision","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("angeboteanlegen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autoversandoption","varchar(255)","shopexport","DEFAULT 'standard' NOT NULL"); - $this->CheckColumn("artikelnummerbeimanlegenausshop","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("shoptyp", "varchar(32)", "shopexport","DEFAULT '' NOT NULL"); - $this->CheckColumn("modulename", "varchar(64)", "shopexport","DEFAULT '' NOT NULL"); - $this->CheckColumn("einstellungen_json","mediumtext","shopexport","DEFAULT '' NOT NULL"); - $this->CheckColumn("maxmanuell","int(11)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("preisgruppe","int(11)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("variantenuebertragen","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("crosssellingartikeluebertragen","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("staffelpreiseuebertragen","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("lagergrundlage","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("portoartikelanlegen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("nurneueartikel","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn('startdate', 'DATE', 'shopexport', 'DEFAULT NULL'); - - $this->CheckColumn('ueberschreibe_lagerkorrekturwert','tinyint(1)','shopexport','DEFAULT 0 NOT NULL'); - $this->CheckColumn('lagerkorrekturwert','INT(11)','shopexport','DEFAULT 0 NOT NULL'); - $this->CheckColumn('vertrieb', 'INT(11)', 'shopexport', 'DEFAULT 0 NOT NULL'); - $this->CheckAlterTable( - "ALTER TABLE `shopexport` CHANGE `einstellungen_json` `einstellungen_json` mediumtext NOT NULL DEFAULT ''" - ); - - $this->CheckTable("shopexport_log"); - $this->CheckColumn("id","int(11)","shopexport_log","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shopid","int(11)","shopexport_log","DEFAULT '0' NOT NULL"); - $this->CheckColumn("typ", "varchar(64)", "shopexport_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("parameter1", "text", "shopexport_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("parameter2", "text", "shopexport_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter", "varchar(64)", "shopexport_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","shopexport_log","DEFAULT CURRENT_TIMESTAMP"); - $this->CheckAlterTable("ALTER TABLE `shopexport_log` CHANGE `parameter1` `parameter1` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';"); - $this->CheckAlterTable("ALTER TABLE `shopexport_log` CHANGE `parameter2` `parameter2` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';"); - $this->CheckColumn('parameter3','varchar(255)','shopexport_log',"DEFAULT '' NOT NULL"); - $this->CheckColumn('parameter4','varchar(255)','shopexport_log',"DEFAULT '' NOT NULL"); - - $this->CheckTable("shopexport_change_log"); - $this->CheckColumn("id","int(11)","shopexport_change_log","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop_id","int(11)","shopexport_change_log","NOT NULL"); - $this->CheckColumn("username","varchar(255)","shopexport_change_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("diff", "text", "shopexport_change_log","DEFAULT '' NOT NULL"); - $this->CheckColumn("creation_timestamp","timestamp","shopexport_change_log","DEFAULT CURRENT_TIMESTAMP"); - $this->CheckColumn('message','varchar(255)','shopexport_change_log',"DEFAULT '' NOT NULL"); - $this->CheckColumn('plaindiff','varchar(255)','shopexport_change_log',"DEFAULT '' NOT NULL"); - - $this->CheckColumn("tomail","varchar(255)","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn("tomailtext","text","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn("tomailsubject","text","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn("adapterboxip","varchar(255)","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn("adapterboxseriennummer","varchar(255)","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn("adapterboxpasswort","varchar(255)","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn("anbindung","varchar(255)","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn("art","int(1)","drucker","DEFAULT '0' NOT NULL"); - $this->CheckColumn("keinhintergrund","tinyint(1)","drucker","DEFAULT '0' NOT NULL"); - $this->CheckColumn("faxserver","int(1)","drucker","DEFAULT '0' NOT NULL"); - $this->CheckColumn("format","varchar(64)","drucker","DEFAULT '' NOT NULL"); - $this->CheckColumn('json','TEXT','drucker'); - - $this->CheckColumn("ust_befreit","int(1)","lieferschein","NOT NULL"); - $this->CheckColumn("ust_befreit","int(1)","bestellung","NOT NULL"); - - $this->CheckColumn("keinsteuersatz","int(1)","angebot"); - $this->CheckColumn("anfrageid","int(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anfrageid","int(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("shopextid","varchar(1024)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("shopextstatus","varchar(1024)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn('shop_status_update_attempt', 'int(3)', 'auftrag', "DEFAULT '0' NOT NULL"); - $this->CheckColumn('shop_status_update_last_attempt_at', 'DATETIME', 'auftrag', ''); - - $this->CheckColumn("systemfreitext","TEXT","rechnung","DEFAULT '' NOT NULL"); - $this->CheckColumn("systemfreitext","TEXT","auftrag","DEFAULT '' NOT NULL"); - - $this->CheckColumn("nachbestellt","int(1)","artikel"); - $this->CheckColumn("ean","varchar(1024)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("mlmpunkte","int(11)","artikel"); - $this->CheckColumn("mlmbonuspunkte","int(11)","artikel"); - $this->CheckColumn("mlmdirektpraemie","DECIMAL(10,2)","artikel"); - $this->CheckColumn("mlmkeinepunkteeigenkauf","int(1)","artikel"); - - $this->CheckColumn("shop2","int(11)","artikel"); - $this->CheckColumn("shop3","int(11)","artikel"); - - $this->CheckColumn("zolltarifnummer","VARCHAR(128)","rechnung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("herkunftsland","VARCHAR(128)","rechnung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("artikelnummerkunde","VARCHAR(128)","rechnung_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("zolltarifnummer","VARCHAR(128)","gutschrift_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("herkunftsland","VARCHAR(128)","gutschrift_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("artikelnummerkunde","VARCHAR(128)","gutschrift_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("zolltarifnummer","VARCHAR(128)","angebot_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("herkunftsland","VARCHAR(128)","angebot_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("artikelnummerkunde","VARCHAR(128)","angebot_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("zolltarifnummer","VARCHAR(128)","auftrag_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("herkunftsland","VARCHAR(128)","auftrag_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("artikelnummerkunde","VARCHAR(128)","auftrag_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("zolltarifnummer","VARCHAR(128)","lieferschein_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("herkunftsland","VARCHAR(128)","lieferschein_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("artikelnummerkunde","VARCHAR(128)","lieferschein_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("zolltarifnummer","VARCHAR(128)","bestellung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("herkunftsland","VARCHAR(128)","bestellung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("artikelnummerkunde","VARCHAR(128)","bestellung_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("auftrag_position_id","int(11)","bestellung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("preisanfrage_position_id","int(11)","bestellung_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("punkte","int(11)","rechnung_position"); - $this->CheckColumn("bonuspunkte","int(11)","rechnung_position"); - $this->CheckColumn("mlmdirektpraemie","DECIMAL(10,2)","rechnung_position"); - $this->CheckColumn("mlm_abgerechnet","int(1)","rechnung_position"); - - $this->CheckColumn("punkte","int(11)","angebot_position"); - $this->CheckColumn("bonuspunkte","int(11)","angebot_position"); - $this->CheckColumn("mlmdirektpraemie","DECIMAL(10,2)","angebot_position"); - - $this->CheckColumn("punkte","int(11)","auftrag_position"); - $this->CheckColumn("bonuspunkte","int(11)","auftrag_position"); - $this->CheckColumn("mlmdirektpraemie","DECIMAL(10,2)","auftrag_position"); - - $this->CheckColumn("keinrabatterlaubt","int(1)","angebot_position"); - $this->CheckColumn("keinrabatterlaubt","int(1)","auftrag_position"); - $this->CheckColumn("keinrabatterlaubt","int(1)","rechnung_position"); - $this->CheckColumn("keinrabatterlaubt","int(1)","gutschrift_position"); - - $this->CheckColumn("kostenstelle","varchar(10)","angebot_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("kostenstelle","varchar(10)","auftrag_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("kostenstelle","varchar(10)","rechnung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("kostenstelle","varchar(10)","gutschrift_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("kostenstelle","varchar(10)","proformarechnung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("kostenstelle","varchar(10)","bestellung_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("punkte","int(11)","rechnung"); - $this->CheckColumn("bonuspunkte","int(11)","rechnung"); - $this->CheckColumn("provdatum","DATE","rechnung"); - - $this->CheckColumn("ihrebestellnummer","varchar(255)","rechnung"); - $this->CheckColumn("ihrebestellnummer","varchar(255)","lieferschein"); - $this->CheckColumn("ihrebestellnummer","varchar(255)","auftrag"); - $this->CheckColumn("ihrebestellnummer","varchar(255)","gutschrift"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("anschreiben","varchar(255)","anfrage"); - - if($this->ModulVorhanden("proformarechnung")) - $this->CheckColumn("anschreiben","varchar(255)","proformarechnung"); - - $this->CheckTable("shopexport_artikel"); - $this->CheckColumn("id","int(11)","shopexport_artikel","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shopid","int(11)","shopexport_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikel","int(11)","shopexport_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("name","varchar(255)","shopexport_artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("wert","text","shopexport_artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("bearbeiter","varchar(255)","shopexport_artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","shopexport_artikel","DEFAULT CURRENT_TIMESTAMP"); - - $this->CheckColumn("anschreiben","varchar(255)","angebot"); - $this->CheckColumn("anschreiben","varchar(255)","auftrag"); - $this->CheckColumn("anschreiben","varchar(255)","rechnung"); - $this->CheckColumn("anschreiben","varchar(255)","lieferschein"); - $this->CheckColumn("anschreiben","varchar(255)","gutschrift"); - $this->CheckColumn("anschreiben","varchar(255)","bestellung"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("projektfiliale","int(11)","anfrage","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("projektfiliale","int(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projektfiliale","int(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projektfiliale","int(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projektfiliale","int(11)","lieferschein","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projektfiliale","int(11)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projektfiliale","int(11)","bestellung","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("projektfiliale_eingelagert","tinyint(1)","lieferschein","DEFAULT '0' NOT NULL"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("usereditid","int(11)","anfrage"); - - if($this->ModulVorhanden("proformarechnung")) - $this->CheckColumn("usereditid","int(11)","proformarechnung"); - - - $this->CheckColumn("usereditid","int(11)","angebot"); - $this->CheckColumn("usereditid","int(11)","auftrag"); - $this->CheckColumn("usereditid","int(11)","rechnung"); - $this->CheckColumn("usereditid","int(11)","lieferschein"); - $this->CheckColumn("usereditid","int(11)","gutschrift"); - $this->CheckColumn("usereditid","int(11)","bestellung"); - - $this->CheckColumn("usereditid","int(11)","artikel"); - $this->CheckColumn("usereditid","int(11)","adresse"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("useredittimestamp","timestamp","anfrage"); - - if($this->ModulVorhanden("proformarechnung")) - $this->CheckColumn("useredittimestamp","timestamp","proformarechnung"); - - $this->CheckColumn("useredittimestamp","timestamp","angebot"); - $this->CheckColumn("useredittimestamp","timestamp","auftrag"); - $this->CheckColumn("useredittimestamp","timestamp","rechnung"); - $this->CheckColumn("useredittimestamp","timestamp","lieferschein"); - $this->CheckColumn("useredittimestamp","timestamp","gutschrift"); - $this->CheckColumn("useredittimestamp","timestamp","bestellung"); - - $this->CheckColumn("useredittimestamp","timestamp","artikel"); - $this->CheckColumn("useredittimestamp","timestamp","adresse"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("realrabatt","DECIMAL(10,2)","anfrage"); - - $this->CheckColumn("realrabatt","DECIMAL(10,2)","angebot"); - $this->CheckColumn("realrabatt","DECIMAL(10,2)","auftrag"); - $this->CheckColumn("realrabatt","DECIMAL(10,2)","rechnung"); - $this->CheckColumn("realrabatt","DECIMAL(10,2)","gutschrift"); - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("rabatt","DECIMAL(10,2)","anfrage"); - - $this->CheckColumn("rabatt","DECIMAL(10,2)","angebot"); - $this->CheckColumn("rabatt","DECIMAL(10,2)","auftrag"); - $this->CheckColumn("rabatt","DECIMAL(10,2)","rechnung"); - $this->CheckColumn("rabatt","DECIMAL(10,2)","gutschrift"); - $this->CheckColumn("rabatt","DECIMAL(10,2)","adresse"); - $this->CheckColumn("provision","DECIMAL(10,2)","adresse"); - $this->CheckColumn("rabattinformation","TEXT","adresse"); - - $this->CheckColumn("einzugsdatum","DATE","auftrag"); - $this->CheckColumn("einzugsdatum","DATE","rechnung"); - - $this->CheckColumn("grundrabatt","DECIMAL(10,2)","anfrage_position"); - $this->CheckColumn("grundrabatt","DECIMAL(10,2)","angebot_position"); - $this->CheckColumn("grundrabatt","DECIMAL(10,2)","auftrag_position"); - $this->CheckColumn("grundrabatt","DECIMAL(10,2)","rechnung_position"); - $this->CheckColumn("grundrabatt","DECIMAL(10,2)","gutschrift_position"); - - $this->CheckColumn("steuersatz","DECIMAL(5,2)","anfrage_position"); - $this->CheckColumn("steuersatz","DECIMAL(5,2)","angebot_position"); - $this->CheckColumn("steuersatz","DECIMAL(5,2)","auftrag_position"); - $this->CheckColumn("steuersatz","DECIMAL(5,2)","rechnung_position"); - $this->CheckColumn("steuersatz","DECIMAL(5,2)","proformarechnung_position"); - $this->CheckColumn("steuersatz","DECIMAL(5,2)","gutschrift_position"); - $this->CheckColumn("steuersatz","DECIMAL(5,2)","bestellung_position"); - $this->CheckColumn("steuersatz","DECIMAL(5,2)","produktion_position"); - - $this->CheckColumn("steuertext","VARCHAR(1024)","anfrage_position"); - $this->CheckColumn("steuertext","VARCHAR(1024)","angebot_position"); - $this->CheckColumn("steuertext","VARCHAR(1024)","auftrag_position"); - $this->CheckColumn("steuertext","VARCHAR(1024)","rechnung_position"); - $this->CheckColumn("steuertext","VARCHAR(1024)","gutschrift_position"); - $this->CheckColumn("steuertext","VARCHAR(1024)","bestellung_position"); - $this->CheckColumn("steuertext","VARCHAR(1024)","produktion_position"); - $this->CheckColumn("steuertext","VARCHAR(1024)","proformarechnung_position"); - $this->CheckColumn("erloese","VARCHAR(8)","anfrage_position"); - $this->CheckColumn("erloese","VARCHAR(8)","angebot_position"); - $this->CheckColumn("erloese","VARCHAR(8)","auftrag_position"); - $this->CheckColumn("erloese","VARCHAR(8)","rechnung_position"); - $this->CheckColumn("erloese","VARCHAR(8)","gutschrift_position"); - $this->CheckColumn("erloese","VARCHAR(8)","bestellung_position"); - $this->CheckColumn("erloese","VARCHAR(8)","produktion_position"); - $this->CheckColumn("erloese","VARCHAR(8)","proformarechnung_position"); - - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","anfrage_position","NOT NULL DEFAULT '0'"); - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","angebot_position","NOT NULL DEFAULT '0'"); - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","auftrag_position","NOT NULL DEFAULT '0'"); - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","rechnung_position","NOT NULL DEFAULT '0'"); - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","gutschrift_position","NOT NULL DEFAULT '0'"); - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","bestellung_position","NOT NULL DEFAULT '0'"); - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","produktion_position","NOT NULL DEFAULT '0'"); - $this->CheckColumn("erloesefestschreiben","TINYINT(1)","proformarechnung_position","NOT NULL DEFAULT '0'"); - - $this->CheckColumn("steuersatz","DECIMAL(5,2)","artikel"); - $this->CheckColumn("steuertext_innergemeinschaftlich","varchar(1024)","artikel"); - $this->CheckColumn("steuertext_export","varchar(1024)","artikel"); - - $this->CheckColumn("rabattsync","INT(1)","anfrage_position"); - $this->CheckColumn("rabattsync","INT(1)","angebot_position"); - $this->CheckColumn("rabattsync","INT(1)","auftrag_position"); - $this->CheckColumn("rabattsync","INT(1)","rechnung_position"); - $this->CheckColumn("rabattsync","INT(1)","gutschrift_position"); - - - $this->CheckColumn("einkaufspreiswaehrung","VARCHAR(8)","angebot_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("einkaufspreiswaehrung","VARCHAR(8)","auftrag_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("einkaufspreiswaehrung","VARCHAR(8)","rechnung_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("einkaufspreiswaehrung","VARCHAR(8)","gutschrift_position", "DEFAULT '' NOT NULL"); - - $this->CheckColumn("einkaufspreis","decimal(18,8)","angebot_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreis","decimal(18,8)","auftrag_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreis","decimal(18,8)","rechnung_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreis","decimal(18,8)","gutschrift_position", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("einkaufspreisurspruenglich","decimal(18,8)","angebot_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreisurspruenglich","decimal(18,8)","auftrag_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreisurspruenglich","decimal(18,8)","rechnung_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreisurspruenglich","decimal(18,8)","gutschrift_position", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("einkaufspreisid","int(11)","angebot_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreisid","int(11)","auftrag_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreisid","int(11)","rechnung_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("einkaufspreisid","int(11)","gutschrift_position", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kurs","decimal(18,8)","angebot", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("kurs","decimal(18,8)","auftrag", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("kurs","decimal(18,8)","rechnung", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("kurs","decimal(18,8)","gutschrift", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("kurs","decimal(18,8)","verbindlichkeit", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("ekwaehrung","VARCHAR(8)","angebot_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("ekwaehrung","VARCHAR(8)","auftrag_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("ekwaehrung","VARCHAR(8)","rechnung_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("ekwaehrung","VARCHAR(8)","gutschrift_position", "DEFAULT '' NOT NULL"); - - $this->CheckColumn("deckungsbeitrag","decimal(18,8)","angebot_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("deckungsbeitrag","decimal(18,8)","auftrag_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("deckungsbeitrag","decimal(18,8)","rechnung_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("deckungsbeitrag","decimal(18,8)","gutschrift_position", "DEFAULT '0' NOT NULL"); - - for($ij=1;$ij<=15;$ij++) - { - $this->CheckColumn("bestellung$ij","INT(1)","verbindlichkeit","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bestellung".$ij."betrag","DECIMAL(10,2)","verbindlichkeit","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bestellung".$ij."bemerkung","VARCHAR(255)","verbindlichkeit","DEFAULT '' NOT NULL"); - } - - for($ij=1;$ij<=5;$ij++) - { - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","anfrage"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","angebot"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","auftrag"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","rechnung"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","adresse"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","gutschrift"); - - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","anfrage_position"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","angebot_position"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","auftrag_position"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","rechnung_position"); - $this->CheckColumn("rabatt$ij","DECIMAL(10,2)","gutschrift_position"); - } - - $tmp = array('anfrage_position','angebot_position','rechnung_position','auftrag_position','gutschrift_position','proformarechnung_position','preisanfrage_position','bestellung_position','lieferschein_position','produktion_position'); - for($ij=1;$ij<=40;$ij++) - { - foreach($tmp as $tmptable) - { - $this->CheckColumn("freifeld$ij","TEXT",$tmptable); - } - } - $this->CheckColumn("formelmenge","VARCHAR(255)","artikel", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelpreis","VARCHAR(255)","artikel", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelmenge","VARCHAR(255)","angebot_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelmenge","VARCHAR(255)","auftrag_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelmenge","VARCHAR(255)","rechnung_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelmenge","VARCHAR(255)","proformarechnung_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelmenge","VARCHAR(255)","proformarechnung", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelmenge","VARCHAR(255)","gutschrift_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelpreis","VARCHAR(255)","angebot_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelpreis","VARCHAR(255)","auftrag_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelpreis","VARCHAR(255)","rechnung_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelpreis","VARCHAR(255)","gutschrift_position", "DEFAULT '' NOT NULL"); - $this->CheckColumn("formelpreis","VARCHAR(255)","proformarechnung_position", "DEFAULT '' NOT NULL"); - - $this->CheckColumn("shop","int(11)","auftrag","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("forderungsverlust_datum","DATE","rechnung"); - $this->CheckColumn("forderungsverlust_betrag","DECIMAL(10,2)","rechnung"); - - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","rechnung","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","rechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","rechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","rechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","rechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(255)","rechnung","DEFAULT 'EUR' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(3)","verbindlichkeit","DEFAULT 'EUR' NOT NULL"); - - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","angebot","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","angebot","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","angebot","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","angebot","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","angebot","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(255)","angebot","DEFAULT 'EUR' NOT NULL"); - - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","auftrag","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","auftrag","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","auftrag","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","auftrag","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","auftrag","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(255)","auftrag","DEFAULT 'EUR' NOT NULL"); - - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","gutschrift","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","gutschrift","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","gutschrift","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","gutschrift","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","gutschrift","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(255)","gutschrift","DEFAULT 'EUR' NOT NULL"); - - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","bestellung","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","bestellung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","bestellung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","bestellung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","bestellung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(255)","bestellung","DEFAULT 'EUR' NOT NULL"); - - - if($this->ModulVorhanden("anfrage")) - { - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","anfrage","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","anfrage","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","anfrage","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","anfrage","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","anfrage","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(255)","anfrage","DEFAULT 'EUR' NOT NULL"); - } - - if($this->ModulVorhanden("proformarechnung")) - { - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","proformarechnung","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","proformarechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","proformarechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","proformarechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","proformarechnung","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(255)","proformarechnung","DEFAULT 'EUR' NOT NULL"); - } - - $this->CheckColumn("breite_position","INT(11)","firmendaten","DEFAULT '10' NOT NULL"); - $this->CheckColumn("breite_menge","INT(11)","firmendaten","DEFAULT '10' NOT NULL"); - $this->CheckColumn("breite_nummer","INT(11)","firmendaten","DEFAULT '20' NOT NULL"); - $this->CheckColumn("breite_einheit","INT(11)","firmendaten","DEFAULT '15' NOT NULL"); - - $this->CheckColumn("barcode_x_header","INT(11)","firmendaten","DEFAULT '12' NOT NULL"); - $this->CheckColumn("barcode_x","INT(11)","firmendaten","DEFAULT '12' NOT NULL"); - $this->CheckColumn("barcode_y_header","INT(11)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("barcode_y","INT(11)","firmendaten","DEFAULT '265' NOT NULL"); - - $this->CheckColumn("briefhtml","tinyint(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("seite_von_ausrichtung_relativ","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("absenderunterstrichen","tinyint(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("schriftgroesseabsender","INT(11)","firmendaten","DEFAULT '7' NOT NULL"); - $this->CheckColumn("abstand_seiten_unten","INT(11)","firmendaten","DEFAULT '34' NOT NULL"); - $this->CheckColumn("datatables_export_button_flash","tinyint(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("land","VARCHAR(2)","firmendaten","DEFAULT 'DE' NOT NULL"); - $this->CheckColumn("modul_finanzbuchhaltung","TINYINT(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("testmailempfaenger","VARCHAR(128)","firmendaten","DEFAULT '' NOT NULL"); - - $this->CheckColumn("mailgrussformel","VARCHAR(1024)","firmendaten","DEFAULT '\r\n\r\n\r\nFür Rückfragen stehe ich Ihnen gerne zur Verfügung.\r\n\r\nMit freundlichen Grüßen\r\n{MITARBEITER}' NOT NULL"); - $this->CheckColumn("email_html_template","TEXT","firmendaten","DEFAULT '' NOT NULL"); - - $this->CheckColumn("geburtstagekalender","tinyint(1)","firmendaten","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("skonto_ueberweisung_ueberziehen","INT(11)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","firmendaten","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","firmendaten","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","firmendaten","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","firmendaten","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","firmendaten","DEFAULT '7.0' NOT NULL"); - - $this->CheckColumn("steuersatz_normal","DECIMAL(10,2)","projekt","DEFAULT '19.0' NOT NULL"); - $this->CheckColumn("steuersatz_zwischen","DECIMAL(10,2)","projekt","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_ermaessigt","DECIMAL(10,2)","projekt","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_starkermaessigt","DECIMAL(10,2)","projekt","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("steuersatz_dienstleistung","DECIMAL(10,2)","projekt","DEFAULT '7.0' NOT NULL"); - $this->CheckColumn("waehrung","VARCHAR(3)","projekt","DEFAULT 'EUR' NOT NULL"); - $this->CheckColumn("land","VARCHAR(2)","projekt","DEFAULT 'DE' NOT NULL"); - $this->CheckColumn("eigenesteuer","INT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mahnwesen","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("mahnwesen_abweichender_versender","VARCHAR(40)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("lagerplatzlieferscheinausblenden","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("druckerlogistikstufe1","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("druckerlogistikstufe2","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("etiketten_positionen","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("etiketten_drucker","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("etiketten_art","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("etiketten_sort","TINYINT(2)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("selbstabholermail","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("eanherstellerscan","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("eanherstellerscanerlauben","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("seriennummernerfassen","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("chargenerfassen","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("mhderfassen","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("versandzweigeteilt","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("nachnahmecheck","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_lieferschein_anlegen","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_lagerprozess","VARCHAR(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_belegausgabe","VARCHAR(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_preisgruppe","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("status","VARCHAR(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("autodruckrechnungstufe1","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruckrechnungstufe1menge","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("autodruckrechnungstufe1mail","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruckkommissionierscheinstufe1","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autodruckkommissionierscheinstufe1menge","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("kasse_text_bemerkung","VARCHAR(64)","projekt","DEFAULT 'Interne Bemerkung' NOT NULL"); - $this->CheckColumn("kasse_text_freitext","VARCHAR(64)","projekt","DEFAULT 'Text auf Beleg' NOT NULL"); - $this->CheckColumn("kasse_drucker","INT(11)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kasse_bondrucker","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_bondrucker_aktiv","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_bondrucker_freifeld","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_bondrucker_qrcode","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_bondrucker_anzahl","INT(11)","projekt","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("kasse_rksv_aktiv","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_rksv_tool","VARCHAR(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_rksv_kartenleser","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_rksv_karteseriennummer","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_rksv_kartepin","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_rksv_aeskey","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_rksv_publiczertifikat","TEXT","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_rksv_publiczertifikatkette","TEXT","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("kasse_rksv_kassenid","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - - $this->CheckColumn("kasse_bon_zeile1","VARCHAR(64)","projekt","DEFAULT 'Xentral Store' NOT NULL"); - $this->CheckColumn("kasse_bon_zeile2","VARCHAR(2048)","projekt","DEFAULT 'Xentral GmbH\r\nHolzbachstrasse 4\r\n86152 Augsburg\r\nTel: 0821/26841041\r\nwww.xentral.com' NOT NULL"); - $this->CheckColumn("kasse_bon_zeile3","VARCHAR(2048)","projekt","DEFAULT 'Vielen Dank fuer Ihren Einkauf!\r\nUmtausch innerhalb 8 Tagen\r\ngegen Vorlage des Kassenbons\r\nUST.-IDNr: 123456789' NOT NULL"); - $this->CheckColumn("kasse_lieferschein","INT(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_rechnung","INT(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_gutschrift","INT(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_lieferschein_doppel","INT(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_lager","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_konto","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_laufkundschaft","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_rabatt_artikel","INT(11)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kasse_zahlung_bar","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_zahlung_bar_bezahlt","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_zahlung_ec","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_zahlung_ec_bezahlt","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_zahlung_kreditkarte","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_zahlung_kreditkarte_bezahlt","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_zahlung_ueberweisung","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_zahlung_ueberweisung_bezahlt","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_zahlung_paypal","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_zahlung_paypal_bezahlt","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kasse_extra_keinbeleg","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_extra_rechnung","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_extra_quittung","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_extra_gutschein","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_extra_rabatt_prozent","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_extra_rabatt_euro","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_adresse_erweitert","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("kasse_zahlungsauswahl_zwang","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("kasse_quittung_rechnung","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_print_qr","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kasse_button_entnahme","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_button_einlage","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_button_trinkgeld","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_vorauswahl_anrede","varchar(64)","projekt","DEFAULT 'herr' NOT NULL"); - $this->CheckColumn("kasse_erweiterte_lagerabfrage","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kasse_button_schublade","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("filialadresse","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("versandprojektfiliale","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("differenz_auslieferung_tage","INT(11)","projekt","DEFAULT '2' NOT NULL"); - $this->CheckColumn("autostuecklistenanpassung","INT(11)","projekt","DEFAULT '1' NOT NULL"); - - //Schnellproduktion - $this->CheckColumn("produktionauftragautomatischfreigeben","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("versandlagerplatzanzeigen","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("versandartikelnameausstammdaten","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("rechnungerzeugen","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("pos_artikeltexteuebernehmen","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pos_anzeigenetto","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pos_zwischenspeichern","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_button_belegladen","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kasse_button_storno","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("pos_kundenalleprojekte","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pos_artikelnurausprojekt","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `pos_sumarticles` `pos_sumarticles` TINYINT(1) NOT NULL DEFAULT '0'"); - $this->CheckColumn("allechargenmhd","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("anzeigesteuerbelege","int(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzeigesteuerbelege","int(11)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pos_grosseansicht","tinyint(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("preisberechnung","int(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("steuernummer","varchar(32)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("paketmarkeautodrucken","TINYINT(1)","projekt","DEFAULT 0 NOT NULL"); - $this->CheckColumn('orderpicking_sort','varchar(26)','projekt',"DEFAULT '' NOT NULL"); - $this->CheckColumn('deactivateautoshipping','TINYINT(1)','projekt','DEFAULT 0 NOT NULL'); - $this->CheckColumn('pos_sumarticles','TINYINT(1)','projekt','DEFAULT 1 NOT NULL'); - $this->CheckColumn('manualtracking','TINYINT(1)','projekt','DEFAULT 0 NOT NULL'); - - $this->CheckColumn("kleinunternehmer","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("mahnwesenmitkontoabgleich","int(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("porto_berechnen","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("immernettorechnungen","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("immerbruttorechnungen","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("schnellanlegen","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bestellvorschlaggroessernull","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("versand_gelesen","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("versandart","varchar(64)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("zahlungsweise","varchar(64)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("zahlung_lastschrift_konditionen","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("breite_artikelbeschreibung","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("devicekey","varchar(255)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("deviceserials","TEXT","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("deviceenable","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("sepaglaeubigerid","varchar(64)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("viernachkommastellen_belege","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("etikettendrucker_wareneingang","int(11)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("waehrung","VARCHAR(255)","firmendaten","DEFAULT 'EUR' NOT NULL"); - $this->CheckColumn("footer_breite1","int(11)","firmendaten","DEFAULT '50' NOT NULL"); - $this->CheckColumn("footer_breite2","int(11)","firmendaten","DEFAULT '35' NOT NULL"); - $this->CheckColumn("footer_breite3","int(11)","firmendaten","DEFAULT '60' NOT NULL"); - $this->CheckColumn("footer_breite4","int(11)","firmendaten","DEFAULT '40' NOT NULL"); - $this->CheckColumn("footer_breite4","int(11)","firmendaten","DEFAULT '40' NOT NULL"); - $this->CheckColumn("boxausrichtung","VARCHAR(255)","firmendaten","DEFAULT 'R' NOT NULL"); - $this->CheckColumn("lizenz","TEXT","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("schluessel","TEXT","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("branch","VARCHAR(255)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("version","VARCHAR(255)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("standard_datensaetze_datatables","int(11)","firmendaten","DEFAULT '10' NOT NULL"); - $this->CheckColumn("auftrag_bezeichnung_vertrieb","VARCHAR(64)","firmendaten","DEFAULT 'Vertrieb' NOT NULL"); - $this->CheckColumn("auftrag_bezeichnung_bearbeiter","VARCHAR(64)","firmendaten","DEFAULT 'Bearbeiter' NOT NULL"); - $this->CheckColumn("auftrag_bezeichnung_bestellnummer","VARCHAR(64)","firmendaten","DEFAULT 'Ihre Bestellnummer' NOT NULL"); - $this->CheckColumn("bezeichnungkundennummer","VARCHAR(64)","firmendaten","DEFAULT 'Kundennummer' NOT NULL"); - $this->CheckColumn("bezeichnungstornorechnung","VARCHAR(64)","firmendaten","DEFAULT 'Stornorechnung' NOT NULL"); - $this->CheckColumn("bezeichnungangebotersatz","VARCHAR(64)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("bezeichnungauftragersatz","VARCHAR(64)","firmendaten","DEFAULT 'Proformarechnung' NOT NULL"); - $this->CheckColumn("bezeichnungrechnungersatz","VARCHAR(64)","firmendaten","DEFAULT 'Quittung' NOT NULL"); - $this->CheckColumn("bestellungohnepreis","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("rechnung_gutschrift_ansprechpartner","int(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("stornorechnung_standard","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("angebotersatz_standard","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("api_initkey","VARCHAR(1024)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("api_remotedomain","VARCHAR(1024)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("api_eventurl","VARCHAR(1024)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("api_enable","INT(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("api_cleanutf8","tinyint(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("api_importwarteschlange","INT(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("api_importwarteschlange_name","VARCHAR(255)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("wareneingang_zwischenlager","INT(1)","firmendaten","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("modul_mlm","INT(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("modul_verband","INT(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("modul_mhd","INT(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("modul_verein","INT(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("mhd_warnung_tage","int(11)","firmendaten","DEFAULT '3' NOT NULL"); - - $this->CheckColumn("mlm_mindestbetrag","DECIMAL(10,2)","firmendaten","DEFAULT '50.0' NOT NULL"); - $this->CheckColumn("mlm_anzahlmonate","int(11)","firmendaten","DEFAULT '11' NOT NULL"); - $this->CheckColumn("mlm_letzter_tag","DATE","firmendaten",""); - $this->CheckColumn("mlm_erster_tag","DATE","firmendaten",""); - $this->CheckColumn("mlm_letzte_berechnung","DATETIME","firmendaten",""); - - $this->CheckColumn("mlm_01","DECIMAL(10,2)","firmendaten","DEFAULT '15' NOT NULL"); - $this->CheckColumn("mlm_02","DECIMAL(10,2)","firmendaten","DEFAULT '20' NOT NULL"); - $this->CheckColumn("mlm_03","DECIMAL(10,2)","firmendaten","DEFAULT '28' NOT NULL"); - $this->CheckColumn("mlm_04","DECIMAL(10,2)","firmendaten","DEFAULT '32' NOT NULL"); - $this->CheckColumn("mlm_05","DECIMAL(10,2)","firmendaten","DEFAULT '36' NOT NULL"); - $this->CheckColumn("mlm_06","DECIMAL(10,2)","firmendaten","DEFAULT '40' NOT NULL"); - $this->CheckColumn("mlm_07","DECIMAL(10,2)","firmendaten","DEFAULT '44' NOT NULL"); - $this->CheckColumn("mlm_08","DECIMAL(10,2)","firmendaten","DEFAULT '44' NOT NULL"); - $this->CheckColumn("mlm_09","DECIMAL(10,2)","firmendaten","DEFAULT '44' NOT NULL"); - $this->CheckColumn("mlm_10","DECIMAL(10,2)","firmendaten","DEFAULT '44' NOT NULL"); - $this->CheckColumn("mlm_11","DECIMAL(10,2)","firmendaten","DEFAULT '50' NOT NULL"); - $this->CheckColumn("mlm_12","DECIMAL(10,2)","firmendaten","DEFAULT '54' NOT NULL"); - $this->CheckColumn("mlm_13","DECIMAL(10,2)","firmendaten","DEFAULT '45' NOT NULL"); - $this->CheckColumn("mlm_14","DECIMAL(10,2)","firmendaten","DEFAULT '48' NOT NULL"); - $this->CheckColumn("mlm_15","DECIMAL(10,2)","firmendaten","DEFAULT '60' NOT NULL"); - - $this->CheckColumn("mlm_01_punkte","int(11)","firmendaten","DEFAULT '2999' NOT NULL"); - $this->CheckColumn("mlm_02_punkte","int(11)","firmendaten","DEFAULT '3000' NOT NULL"); - $this->CheckColumn("mlm_03_punkte","int(11)","firmendaten","DEFAULT '5000' NOT NULL"); - $this->CheckColumn("mlm_04_punkte","int(11)","firmendaten","DEFAULT '10000' NOT NULL"); - $this->CheckColumn("mlm_05_punkte","int(11)","firmendaten","DEFAULT '15000' NOT NULL"); - $this->CheckColumn("mlm_06_punkte","int(11)","firmendaten","DEFAULT '25000' NOT NULL"); - $this->CheckColumn("mlm_07_punkte","int(11)","firmendaten","DEFAULT '50000' NOT NULL"); - $this->CheckColumn("mlm_08_punkte","int(11)","firmendaten","DEFAULT '100000' NOT NULL"); - $this->CheckColumn("mlm_09_punkte","int(11)","firmendaten","DEFAULT '150000' NOT NULL"); - $this->CheckColumn("mlm_10_punkte","int(11)","firmendaten","DEFAULT '200000' NOT NULL"); - $this->CheckColumn("mlm_11_punkte","int(11)","firmendaten","DEFAULT '250000' NOT NULL"); - $this->CheckColumn("mlm_12_punkte","int(11)","firmendaten","DEFAULT '300000' NOT NULL"); - $this->CheckColumn("mlm_13_punkte","int(11)","firmendaten","DEFAULT '350000' NOT NULL"); - $this->CheckColumn("mlm_14_punkte","int(11)","firmendaten","DEFAULT '400000' NOT NULL"); - $this->CheckColumn("mlm_15_punkte","int(11)","firmendaten","DEFAULT '450000' NOT NULL"); - - $this->CheckColumn("mlm_01_mindestumsatz","int(11)","firmendaten","DEFAULT '50' NOT NULL"); - $this->CheckColumn("mlm_02_mindestumsatz","int(11)","firmendaten","DEFAULT '50' NOT NULL"); - $this->CheckColumn("mlm_03_mindestumsatz","int(11)","firmendaten","DEFAULT '50' NOT NULL"); - $this->CheckColumn("mlm_04_mindestumsatz","int(11)","firmendaten","DEFAULT '50' NOT NULL"); - $this->CheckColumn("mlm_05_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_06_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_07_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_08_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_09_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_10_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_11_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_12_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_13_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_14_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - $this->CheckColumn("mlm_15_mindestumsatz","int(11)","firmendaten","DEFAULT '100' NOT NULL"); - - $this->CheckColumn("standardaufloesung","int(11)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("standardversanddrucker","int(11)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("standardetikettendrucker","int(11)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("keinsteuersatz","int(1)","auftrag"); - $this->CheckColumn("keinsteuersatz","int(1)","rechnung"); - $this->CheckColumn("keinsteuersatz","int(1)","gutschrift"); - - for($i=1;$i<=40;$i++) - $this->CheckColumn("freifeld".$i,"TEXT","artikel","DEFAULT '' NOT NULL"); - - $this->CheckColumn("ursprungsregion","varchar(255)","artikel","DEFAULT '' NOT NULL"); - - $this->CheckColumn("einheit","varchar(255)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","angebot_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","auftrag_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","rechnung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","gutschrift_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","lieferschein_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","bestellung_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("bestellungohnepreis","tinyint(1)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("preisanfrageid","int(11)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferantenretoure","tinyint(1)","lieferschein","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferantenretoureinfo","TEXT","lieferschein","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferant","INT(11)","lieferschein","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("keinerechnung","tinyint(1)","lieferschein","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferantenauftrag","tinyint(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferant","INT(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferantennummer","varchar(255)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferantkdrnummer","varchar(255)","auftrag","DEFAULT '' NOT NULL"); - $this->CheckIndex('auftrag','lieferantkdrnummer'); - $this->CheckIndex('auftrag','status'); - $this->CheckIndex('bestellung','status'); - - if(!$this->app->erp->GetKonfiguration('lieferantkdrnummer_cached')) - { - $this->app->erp->SetKonfigurationValue('lieferantkdrnummer_cached',1); - $this->app->DB->Update("UPDATE auftrag SET lieferantkdrnummer = ''"); - $this->app->DB->Update(" - UPDATE auftrag a - INNER JOIN adresse adr ON a.lieferant = adr.id - SET a.lieferantkdrnummer = if(adr.lieferantennummer <> '',adr.lieferantennummer,a.lieferantennummer) - WHERE a.lieferantkdrnummer = '' AND a.lieferantenauftrag = 1 - "); - $this->app->DB->Update(" - UPDATE auftrag a - INNER JOIN adresse adr ON a.adresse = adr.id - SET a.lieferantkdrnummer = if(adr.kundennummer <> '', adr.kundennummer,a.kundennummer) - WHERE a.lieferantkdrnummer = '' AND a.lieferantenauftrag = 0 - "); - } - - $this->app->DB->Update(" - UPDATE auftrag a - INNER JOIN adresse adr ON a.lieferant = adr.id - SET a.lieferantkdrnummer = if(a.lieferantennummer <> '',a.lieferantennummer,adr.lieferantennummer) - WHERE a.lieferantkdrnummer = '' AND a.lieferantenauftrag = 1 - "); - $this->app->DB->Update(" - UPDATE auftrag a - INNER JOIN adresse adr ON a.adresse = adr.id - SET a.lieferantkdrnummer = if(a.kundennummer <> '',a.kundennummer, adr.kundennummer) - WHERE a.lieferantkdrnummer = '' AND a.lieferantenauftrag = 0 - "); - - $this->CheckColumn("bestellung_bestaetigt","tinyint(1)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bestaetigteslieferdatum","DATE","bestellung"); - $this->CheckColumn("bestellungbestaetigtper","varchar(64)","bestellung","DEFAULT '' NOT NULL"); - $this->CheckColumn("bestellungbestaetigtabnummer","varchar(64)","bestellung","DEFAULT '' NOT NULL"); - $this->CheckColumn("gewuenschteslieferdatum","DATE","bestellung"); - - $this->CheckColumn("optional","int(1)","angebot_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ohnepreis","int(1)","angebot_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("textalternativpreis","VARCHAR(50)","angebot_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("ohnepreis","int(1)","auftrag_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ohnepreis","int(1)","gutschrift_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ohnepreis","int(1)","rechnung_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("adresse","int(11)","lager_bewegung"); - $this->CheckColumn("bestand","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_bewegung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("permanenteinventur","tinyint(1)","lager_bewegung","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("geloescht","int(1)","arbeitspaket"); - $this->CheckColumn("vorgaenger","int(11)","arbeitspaket"); - $this->CheckColumn("kosten_geplant","decimal(10,4)","arbeitspaket"); - $this->CheckColumn("artikel_geplant","int(11)","arbeitspaket"); - $this->CheckColumn("abgerechnet","int(1)","arbeitspaket","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("cache_BE","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_PR","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_AN","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_AB","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_LS","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_RE","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_GS","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_PF","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("last_cache","timestamp","arbeitspaket",""); - $this->CheckColumn("aktiv","tinyint(1)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("startdatum","date","arbeitspaket","NOT NULL"); - $this->CheckColumn("farbe","varchar(16)","arbeitspaket","DEFAULT '' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `arbeitspaket` CHANGE `abgabedatum` `abgabedatum` DATE NOT NULL;"); - $this->CheckTable("projekt_artikel"); - $this->CheckColumn("id","int(11)","projekt_artikel","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("projekt","int(11)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikel","int(11)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parent","int(11)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("sort","int(11)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("geplant","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_BE","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_PR","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_AN","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_AB","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_LS","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_RE","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_GS","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_WE","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_WA","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_PF","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cache_PRO","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lastcheck","timestamp","projekt_artikel","NOT NULL DEFAULT CURRENT_TIMESTAMP"); - - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `geplant` `geplant` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_BE` `cache_BE` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_PR` `cache_PR` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_AN` `cache_AN` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_AB` `cache_AB` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_LS` `cache_LS` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_RE` `cache_RE` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_GS` `cache_GS` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_WE` `cache_WE` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_WA` `cache_WA` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_PF` `cache_PF` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_artikel` CHANGE `cache_PRO` `cache_PRO` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - - $this->CheckColumn("ek_geplant","DECIMAL(18,8)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("vk_geplant","DECIMAL(18,8)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kalkulationbasis","varchar(64)","projekt_artikel","DEFAULT 'prostueck' NOT NULL"); - $this->CheckColumn("nr","varchar(64)","projekt_artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("last_cache","timestamp","projekt_artikel","DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("kommentar","varchar(1024)","projekt_artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("showinmonitoring","tinyint(1)","projekt_artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse_abrechnung","int(11)","zeiterfassung"); - $this->CheckColumn("abrechnen","int(1)","zeiterfassung"); - $this->CheckColumn("ist_abgerechnet","int(1)","zeiterfassung"); - $this->CheckColumn("gebucht_von_user","int(11)","zeiterfassung"); - $this->CheckColumn("ort","varchar(1024)","zeiterfassung"); - $this->CheckColumn("abrechnung_dokument","varchar(1024)","zeiterfassung"); - $this->CheckColumn("dokumentid","int(11)","zeiterfassung"); - $this->CheckColumn("stundensatz","decimal(5,2)","zeiterfassung","DEFAULT '0' NOT NULL"); - - $this->CheckTable("teilprojekt_geplante_zeiten"); - $this->CheckColumn("projekt","int(11)","teilprojekt_geplante_zeiten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","teilprojekt_geplante_zeiten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","int(11)","teilprojekt_geplante_zeiten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bezeichnung","varchar(255)","teilprojekt_geplante_zeiten","DEFAULT '' NOT NULL"); - $this->CheckColumn("stundensatz","decimal(5,2)","teilprojekt_geplante_zeiten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("stunden","decimal(8,2)","teilprojekt_geplante_zeiten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("verrechnungsart","varchar(255)","zeiterfassung"); - $this->CheckColumn("arbeitsanweisung","int(11)","zeiterfassung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("serviceauftrag","int(11)","zeiterfassung","DEFAULT '0' NOT NULL"); - $this->CheckColumn('anz_mitarbeiter','INT(11)','zeiterfassung','DEFAULT 1 NOT NULL'); - - $this->CheckColumn("reservierung","int(1)","projekt"); - $this->CheckColumn("verkaufszahlendiagram","int(1)","projekt"); - $this->CheckColumn("oeffentlich","int(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projektlager","int(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("shopzwangsprojekt","int(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kunde","int(11)","projekt"); - $this->CheckColumn("dpdkundennr","varchar(255)","projekt"); - $this->CheckColumn("dhlkundennr","varchar(255)","projekt"); - $this->CheckColumn("dhlformat","TEXT","projekt"); - $this->CheckColumn("dpdformat","TEXT","projekt"); - $this->CheckColumn("paketmarke_einzeldatei","int(1)","projekt"); - $this->CheckColumn("dpdpfad","varchar(255)","projekt"); - $this->CheckColumn("dpdendung","varchar(64)","projekt","DEFAULT '.csv' NOT NULL"); - $this->CheckColumn("dhlendung","varchar(64)","projekt","DEFAULT '.csv' NOT NULL"); - $this->CheckColumn("dhlpfad","varchar(255)","projekt"); - $this->CheckColumn("upspfad","varchar(255)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("dhlintodb","tinyint(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("zahlungsweise","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("zahlungsweiselieferant","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("versandart","varchar(64)","projekt","DEFAULT '' NOT NULL"); - - $this->CheckColumn("tracking_substr_start","INT(11)","projekt","DEFAULT '8' NOT NULL"); - $this->CheckColumn("tracking_remove_kundennummer","tinyint(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("tracing_substr_length","tinyint(11)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("go_drucker","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("go_apiurl_prefix","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_apiurl_postfix","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_apiurl_user","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_username","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_password","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_ax4nr","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_name1","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_name2","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_abteilung","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_strasse1","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_strasse2","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_hausnummer","VARCHAR(10)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_plz","VARCHAR(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_ort","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_land","VARCHAR(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("go_standardgewicht","DECIMAL(10,2)","projekt"); - $this->CheckColumn("go_format","VARCHAR(64)","projekt"); - $this->CheckColumn("go_ausgabe","VARCHAR(64)","projekt"); - - $this->CheckColumn("ups_api_user","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_api_password","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_api_key","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_accountnumber","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_company_name","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_street_name","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_street_number","varchar(10)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_zip","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_country","varchar(2)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_city","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_email","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_phone","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_internet","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_contact_person","varchar(128)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("ups_WeightInKG","DECIMAL(10,2)","projekt"); - $this->CheckColumn("ups_LengthInCM","DECIMAL(10,2)","projekt"); - $this->CheckColumn("ups_WidthInCM","DECIMAL(10,2)","projekt"); - $this->CheckColumn("ups_HeightInCM","DECIMAL(10,2)","projekt"); - $this->CheckColumn("ups_drucker","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ups_ausgabe","VARCHAR(64)","projekt","DEFAULT 'GIF' NOT NULL"); - $this->CheckColumn("ups_package_code","VARCHAR(64)","projekt","DEFAULT '02' NOT NULL"); - $this->CheckColumn("ups_package_description","VARCHAR(128)","projekt","DEFAULT 'Customer Supplied' NOT NULL"); - $this->CheckColumn("ups_service_code","VARCHAR(64)","projekt","DEFAULT '11' NOT NULL"); - $this->CheckColumn("ups_service_description","VARCHAR(128)","projekt","DEFAULT 'UPS Standard' NOT NULL"); - - $this->CheckColumn("intraship_enabled","tinyint(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("intraship_drucker","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("intraship_testmode","tinyint(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("intraship_user","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_signature","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_ekp","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_partnerid","varchar(64)","projekt","DEFAULT '01' NOT NULL"); - $this->CheckColumn("intraship_api_user","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_api_password","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_company_name","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_street_name","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_street_number","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_zip","varchar(12)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_country","varchar(64)","projekt","DEFAULT 'germany' NOT NULL"); - $this->CheckColumn("intraship_city","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_email","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_phone","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_internet","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_contact_person","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_account_owner","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_account_number","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_bank_code","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_bank_name","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_iban","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_bic","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("intraship_exportgrund","varchar(64)","projekt","DEFAULT '' NOT NULL"); - - $this->CheckColumn("intraship_WeightInKG","INT(11)","projekt","DEFAULT '5' NOT NULL"); - $this->CheckColumn("intraship_LengthInCM","INT(11)","projekt","DEFAULT '50' NOT NULL"); - $this->CheckColumn("intraship_WidthInCM","INT(11)","projekt","DEFAULT '50' NOT NULL"); - $this->CheckColumn("intraship_HeightInCM","INT(11)","projekt","DEFAULT '50' NOT NULL"); - $this->CheckColumn("intraship_PackageType","VARCHAR(8)","projekt","DEFAULT 'PL' NOT NULL"); - $this->CheckColumn("intraship_retourenlabel","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("intraship_retourenaccount","VARCHAR(16)","projekt","DEFAULT '' NOT NULL"); - - $this->CheckColumn("billsafe_merchantId","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("billsafe_merchantLicenseSandbox","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("billsafe_merchantLicenseLive","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("billsafe_applicationSignature","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("billsafe_applicationVersion","varchar(64)","projekt","DEFAULT '' NOT NULL"); - - $this->CheckColumn("secupay_apikey","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("secupay_url","varchar(64)","projekt","DEFAULT '' NOT NULL"); - $this->CheckColumn("secupay_demo","tinyint(1)","projekt","DEFAULT 0 NOT NULL"); - - $this->CheckColumn("abrechnungsart","varchar(255)","projekt"); - $this->CheckColumn("kommissionierverfahren","varchar(255)","projekt"); - $this->CheckColumn("wechselaufeinstufig","int(11)","projekt"); - $this->CheckColumn("projektuebergreifendkommisionieren","int(1)","projekt"); - $this->CheckColumn("absendeadresse","varchar(255)","projekt"); - $this->CheckColumn("absendename","varchar(255)","projekt"); - $this->CheckColumn("absendesignatur","varchar(255)","projekt"); - $this->CheckColumn("absendegrussformel","varchar(512)","projekt"); - $this->CheckColumn("email_html_template","TEXT","projekt"); - $this->CheckColumn("autodruckrechnung","int(1)","projekt"); - $this->CheckColumn("autodruckversandbestaetigung","int(1)","projekt"); - $this->CheckColumn("automailversandbestaetigung","int(1)","projekt"); - $this->CheckColumn("autodrucklieferschein","int(1)","projekt"); - $this->CheckColumn("automaillieferschein","int(1)","projekt"); - $this->CheckColumn("autodruckstorno","int(1)","projekt"); - $this->CheckColumn("autodruckanhang","int(1)","projekt"); - $this->CheckColumn("druckanhang","int(1)","projekt"); - $this->CheckColumn("automailanhang","int(1)","projekt"); - $this->CheckColumn("mailanhang","int(1)","projekt"); - $this->CheckColumn("autodruckrechnungdoppel","int(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("intraship_partnerid_welt","varchar(64)","projekt","DEFAULT '' NOT NULL"); - - $this->CheckColumn("autodruckerrechnung","int(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("autodruckerlieferschein","int(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("autodruckeranhang","int(11)","projekt","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("autodruckrechnungmenge","int(11)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("autodrucklieferscheinmenge","int(11)","projekt","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("stornorechnung","int(1)","gutschrift"); - $this->CheckColumn("startseite","int(1)","aufgabe"); - $this->CheckColumn("oeffentlich","int(1)","aufgabe"); - $this->CheckColumn("zeiterfassung_pflicht","tinyint(1)","aufgabe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zeiterfassung_abrechnung","tinyint(1)","aufgabe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("emailerinnerung","int(1)","aufgabe"); - $this->CheckColumn("emailerinnerung_tage","int(11)","aufgabe"); - $this->CheckColumn("kunde","int(11)","aufgabe"); - $this->CheckColumn("teilprojekt","int(11)","aufgabe","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("note_x","int(11)","aufgabe"); - $this->CheckColumn("note_y","int(11)","aufgabe"); - $this->CheckColumn("note_z","int(11)","aufgabe"); - $this->CheckColumn("note_w","int(11)","aufgabe"); - $this->CheckColumn("note_h","int(11)","aufgabe"); - $this->CheckColumn("note_color","VARCHAR(255)","aufgabe"); - $this->CheckColumn("pinwand","int(1)","aufgabe"); - $this->CheckColumn("pinwand_id","int(11)","aufgabe","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("vorankuendigung","int(11)","aufgabe"); - $this->CheckColumn("status","varchar(255)","aufgabe"); - - $this->CheckColumn("sort","int(11)","aufgabe"); - $this->CheckColumn("ansprechpartner_id", "int(11)", "aufgabe", "DEFAULT 0 NOT NULL"); - - $this->CheckColumn("angebotid","int(11)","auftrag"); - $this->CheckColumn("internetseite","text","adresse"); - - $this->CheckAlterTable("ALTER TABLE `angebot_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `rechnung_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `gutschrift_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `lieferschein_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `proformarechnung_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `preisanfrage_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - - if($this->ModulVorhanden("anfrage")) - { - $this->CheckColumn("name","varchar(255)","anfrage"); - $this->CheckColumn("typ","varchar(16)","anfrage"); - $this->CheckColumn("geliefert","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","anfrage_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("vpe","varchar(255)","anfrage_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","anfrage_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferdatum","date","anfrage_position"); - $this->CheckColumn("bearbeiterid","int(1)","anfrage","NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `anfrage_position` CHANGE `geliefert` `geliefert` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - } - - if($this->ModulVorhanden("proformarechnung")) - { - $this->CheckColumn("name","varchar(255)","proformarechnung"); - $this->CheckColumn("typ","varchar(16)","proformarechnung"); - $this->CheckColumn("geliefert","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","proformarechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("vpe","varchar(255)","proformarechnung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("einheit","varchar(255)","proformarechnung_position","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferdatum","date","proformarechnung_position"); - $this->CheckColumn("bearbeiterid","int(1)","proformarechnung","NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `proformarechnung_position` CHANGE `geliefert` `geliefert` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - } - - if($this->ModulVorhanden("anfrage")) - $this->CheckColumn("lieferdatumkw","tinyint(1)","anfrage_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferdatumkw","tinyint(1)","angebot_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferdatumkw","tinyint(1)","auftrag_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferdatumkw","tinyint(1)","rechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferdatumkw","tinyint(1)","gutschrift_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferdatumkw","tinyint(1)","lieferschein_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("lieferdatumkw","tinyint(1)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferdatumkw","tinyint(1)","auftrag","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("auftrag_position_id","INT(11)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftrag_position_id","INT(11)","rechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftrag_position_id","INT(11)","gutschrift_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kostenlos","tinyint(1)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lagertext", "varchar(255)", "lieferschein_position", "NOT NULL DEFAULT ''"); - - $this->CheckColumn("zolleinzelwert","DECIMAL(18,8)","auftrag_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zollgesamtwert","DECIMAL(18,8)","auftrag_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zollwaehrung", "varchar(3)", "auftrag_position", "NOT NULL DEFAULT ''"); - $this->CheckColumn("zolleinzelgewicht","DECIMAL(18,8)","auftrag_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zollgesamtgewicht","DECIMAL(18,8)","auftrag_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("zolleinzelwert","DECIMAL(18,8)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zollgesamtwert","DECIMAL(18,8)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zollwaehrung", "varchar(3)", "lieferschein_position", "NOT NULL DEFAULT ''"); - $this->CheckColumn("zolleinzelgewicht","DECIMAL(18,8)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zollgesamtgewicht","DECIMAL(18,8)","lieferschein_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("nve", "varchar(255)", "lieferschein_position", "NOT NULL DEFAULT ''"); - $this->CheckColumn("packstueck", "varchar(255)", "lieferschein_position", "NOT NULL DEFAULT ''"); - $this->CheckColumn("vpemenge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("einzelstueckmenge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lieferschein_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("schreibschutz","int(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("schreibschutz","int(1)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("schreibschutz","int(1)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("schreibschutz","int(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("schreibschutz","int(1)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("schreibschutz","int(1)","lieferschein","DEFAULT '0' NOT NULL"); - - - $this->CheckColumn("pdfarchiviert","int(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviert","int(1)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviert","int(1)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviert","int(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviert","int(1)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviert","int(1)","lieferschein","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("pdfarchiviertversion","int(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviertversion","int(11)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviertversion","int(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviertversion","int(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviertversion","int(11)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("pdfarchiviertversion","int(11)","lieferschein","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("typ","varchar(255)","rechnung","DEFAULT 'firma' NOT NULL"); - $this->CheckColumn("typ","varchar(255)","gutschrift","DEFAULT 'firma' NOT NULL"); - $this->CheckColumn("typ","varchar(255)","angebot","DEFAULT 'firma' NOT NULL"); - $this->CheckColumn("typ","varchar(255)","auftrag","DEFAULT 'firma' NOT NULL"); - $this->CheckColumn("typ","varchar(255)","bestellung","DEFAULT 'firma' NOT NULL"); - $this->CheckColumn("typ","varchar(255)","lieferschein","DEFAULT 'firma' NOT NULL"); - - $this->CheckColumn("verbindlichkeiteninfo","varchar(255)","bestellung","DEFAULT '' NOT NULL"); - $this->CheckColumn("beschreibung","varchar(255)","abrechnungsartikel","DEFAULT '' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `abrechnungsartikel` CHANGE `beschreibung` `beschreibung` TEXT NOT NULL DEFAULT ''"); - - $this->CheckColumn("dokument","varchar(64)","abrechnungsartikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("preisart","varchar(64)","abrechnungsartikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("waehrung","varchar(10)","abrechnungsartikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("enddatum","DATE","abrechnungsartikel","NOT NULL"); - $this->CheckColumn("angelegtvon","INT(11)","abrechnungsartikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("angelegtam","DATE","abrechnungsartikel","NOT NULL"); - $this->CheckColumn("experte","TINYINT(1)","abrechnungsartikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("beschreibungersetzten","TINYINT(1)","abrechnungsartikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","INT(11)","abrechnungsartikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rabatt","DECIMAL(5,2)","abrechnungsartikel","DEFAULT '0' NOT NULL"); - - $this->CheckTable("abrechnungsartikel_gruppe"); - $this->CheckColumn("id","int(11)","abrechnungsartikel_gruppe","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("beschreibung","varchar(255)","abrechnungsartikel_gruppe","DEFAULT '' NOT NULL"); - $this->CheckColumn("beschreibung2","TEXT","abrechnungsartikel_gruppe","DEFAULT '' NOT NULL"); - $this->CheckColumn("rabatt","DECIMAL(10,2)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ansprechpartner","varchar(255)","abrechnungsartikel_gruppe","DEFAULT '' NOT NULL"); - $this->CheckColumn("extrarechnung","INT(11)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppensumme","TINYINT(1)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","INT(11)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projekt","INT(11)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("sort","INT(11)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rechnungadresse","INT(11)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("sammelrechnung","INT(11)","abrechnungsartikel_gruppe","DEFAULT '0' NOT NULL"); - $this->app->DB->Query("ALTER TABLE abrechnungsartikel_gruppe MODIFY extrarechnung INT(11)"); - - - $this->CheckTable("kontoauszuege"); - $this->CheckColumn("id","int(11)","kontoauszuege","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("konto", "int(11)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("buchung", "date", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("originalbuchung", "date", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("vorgang", "text", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("originalvorgang", "text", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("soll", "decimal(10,2)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("originalsoll", "decimal(10,2)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("haben", "decimal(10,2)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("originalhaben", "decimal(10,2)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("gebuehr", "decimal(10,2)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("originalgebuehr", "decimal(10,2)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("waehrung", "varchar(255)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("originalwaehrung", "varchar(255)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("fertig", "int(1)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("datev_abgeschlossen", "int(1)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("buchungstext", "varchar(255)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("gegenkonto", "varchar(255)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("belegfeld1", "varchar(255)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("bearbeiter", "varchar(255)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("mailbenachrichtigung", "int(11)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("pruefsumme", "varchar(255)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("kostenstelle","varchar(10)","kontoauszuege","DEFAULT '' NOT NULL"); - $this->CheckColumn("importgroup","bigint","kontoauszuege"); - $this->CheckColumn("diff","DECIMAL(12,4)","kontoauszuege", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("diffangelegt","TIMESTAMP","kontoauszuege", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - $this->CheckColumn("internebemerkung","text","kontoauszuege"); - $this->CheckColumn("importfehler","int(1)","kontoauszuege"); - $this->CheckColumn("parent", "int(11)", "kontoauszuege", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("sort", "int(11)", "kontoauszuege", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("doctype", "varchar(64)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("doctypeid", "int(11)", "kontoauszuege", "NOT NULL"); - $this->CheckColumn("vorauswahltyp", "varchar(64)", "kontoauszuege", "NOT NULL DEFAULT ''"); - $this->CheckColumn("vorauswahlparameter", "varchar(255)", "kontoauszuege", "NOT NULL DEFAULT ''"); - $this->CheckColumn("klaerfall", "tinyint(1)", "kontoauszuege", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("klaergrund", "varchar(255)", "kontoauszuege", "NOT NULL DEFAULT ''"); - $this->CheckColumn("bezugtyp", "varchar(64)", "kontoauszuege", "NOT NULL DEFAULT ''"); - $this->CheckColumn("bezugparameter", "varchar(255)", "kontoauszuege", "NOT NULL DEFAULT ''"); - $this->CheckColumn('vorauswahlvorschlag', 'int(11)', 'kontoauszuege', 'NOT NULL DEFAULT 0'); - - $this->CheckTable("kontoauszuege_zahlungsausgang"); - $this->CheckColumn("id","int(11)","kontoauszuege_zahlungsausgang","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("adresse", "int(11)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("bearbeiter", "varchar(255)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("betrag", "decimal(10,2)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("datum", "date", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("objekt", "varchar(255)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("parameter", "int(11)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("kontoauszuege", "int(11)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("firma", "int(11)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - $this->CheckColumn("abgeschlossen", "int(11)", "kontoauszuege_zahlungsausgang", "NOT NULL"); - - $this->CheckTable("kontoauszuege_zahlungseingang"); - $this->CheckColumn("id","int(11)","kontoauszuege_zahlungseingang","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("adresse", "int(11)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("bearbeiter", "varchar(255)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("betrag", "decimal(10,2)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("datum", "date", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("objekt", "varchar(255)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("parameter", "int(11)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("kontoauszuege", "int(11)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("firma", "int(11)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("abgeschlossen", "int(11)", "kontoauszuege_zahlungseingang", "NOT NULL"); - $this->CheckColumn("parameter2","int(11)","kontoauszuege_zahlungseingang", "NULL DEFAULT NULL"); - $this->CheckColumn("beschreibung_de","text","artikelgruppen"); - $this->CheckColumn("beschreibung_en","text","artikelgruppen"); - - $this->CheckColumn("internebemerkung","text","gutschrift"); - $this->CheckColumn("internebemerkung","text","rechnung"); - $this->CheckColumn("internebemerkung","text","lieferschein"); - $this->CheckColumn("internebemerkung","text","anfrage"); - - $this->CheckColumn("internebemerkung","text","proformarechnung"); - - $this->CheckColumn("ohne_briefpapier","int(1)","rechnung"); - $this->CheckColumn("ohne_briefpapier","int(1)","lieferschein"); - $this->CheckColumn("ohne_briefpapier","int(1)","angebot"); - $this->CheckColumn("ohne_briefpapier","int(1)","auftrag"); - $this->CheckColumn("ohne_briefpapier","int(1)","bestellung"); - $this->CheckColumn("ohne_briefpapier","int(1)","gutschrift"); - - $this->CheckColumn("ohne_artikeltext","int(1)","rechnung"); - $this->CheckColumn("ohne_artikeltext","int(1)","lieferschein"); - $this->CheckColumn("ohne_artikeltext","int(1)","angebot"); - $this->CheckColumn("ohne_artikeltext","int(1)","auftrag"); - $this->CheckColumn("ohne_artikeltext","int(1)","bestellung"); - $this->CheckColumn("ohne_artikeltext","int(1)","gutschrift"); - - - $this->CheckColumn("projekt","int(11)","firmendaten"); - $this->CheckColumn("externereinkauf","int(1)","firmendaten"); - $this->CheckColumn("schriftart","varchar(255)","firmendaten"); - $this->CheckColumn("knickfalz","int(1)","firmendaten"); - $this->CheckColumn("artikeleinheit","int(1)","firmendaten"); - $this->CheckColumn("artikeleinheit_standard","varchar(255)","firmendaten"); - - $this->CheckColumn("abstand_name_beschreibung","int(11)","firmendaten"," DEFAULT '4' NOT NULL"); - $this->CheckColumn("abstand_boxrechtsoben_lr","int(11)","firmendaten"," DEFAULT '0' NOT NULL"); - $this->CheckColumn("abstand_gesamtsumme_lr","int(11)","firmendaten"," DEFAULT '100' NOT NULL"); - - $this->CheckColumn("zahlungsweise","varchar(255)","firmendaten","NOT NULL"); - $this->CheckColumn("zahlungszieltage","int(11)","firmendaten","DEFAULT '14' NOT NULL"); - $this->CheckColumn("zahlungszielskonto","int(11)","firmendaten","NOT NULL"); - $this->CheckColumn("zahlungszieltageskonto","int(11)","firmendaten","NOT NULL"); - - $this->CheckColumn("footer_zentriert","int(1)","firmendaten"," DEFAULT '0' NOT NULL"); - $this->CheckColumn("footer_farbe","int(11)","firmendaten"," DEFAULT '30' NOT NULL"); - - $this->CheckColumn("zahlung_rechnung","int(1)","firmendaten"," DEFAULT '1' NOT NULL"); - $this->CheckColumn("zahlung_vorkasse","int(1)","firmendaten"," DEFAULT '1' NOT NULL"); - $this->CheckColumn("zahlung_nachnahme","int(1)","firmendaten"," DEFAULT '1' NOT NULL"); - $this->CheckColumn("zahlung_kreditkarte","int(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("zahlung_einzugsermaechtigung","int(1)","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_paypal","int(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("zahlung_bar","int(1)","firmendaten","DEFAULT '1' NOT NULL"); - $this->CheckColumn("zahlung_lastschrift","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlung_amazon","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlung_amazon_bestellung","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlung_billsafe","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlung_sofortueberweisung","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlung_ratenzahlung","int(1)","firmendaten"," DEFAULT '1' NOT NULL"); - $this->CheckColumn("zahlung_secupay","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("zahlung_eckarte","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("zahlung_rechnung_sofort_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_rechnung_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_vorkasse_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_lastschrift_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_nachnahme_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_bar_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_paypal_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_amazon_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_amazon_bestellung_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_billsafe_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_sofortueberweisung_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_kreditkarte_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_ratenzahlung_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_secupay_de","text","firmendaten","NOT NULL"); - $this->CheckColumn("zahlung_eckarte_de","text","firmendaten","NOT NULL"); - - $this->CheckColumn("briefpapier2","longblob","firmendaten"); - $this->CheckColumn("briefpapier2vorhanden","int(1)","firmendaten"); - $this->CheckColumn("abseite2y","int(11)","firmendaten","DEFAULT '50' NOT NULL"); - - $this->CheckColumn("paketannahme","int(11)","zwischenlager"); - $this->CheckColumn("paketannahme","int(11)","lager_bewegung"); - - $this->CheckColumn("doctype","varchar(32)","lager_bewegung","DEFAULT '' NOT NULL"); - $this->CheckColumn("doctypeid","int(11)","lager_bewegung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("vpeid","int(11)","lager_bewegung","DEFAULT '0' NOT NULL"); - $this->CheckColumn('is_interim','TINYINT(1)','lager_bewegung','DEFAULT 0 NOT NULL'); - - $this->CheckColumn("zahlungsmailcounter","int(1)","auftrag"); - - $this->CheckColumn("ansprechpartner","varchar(255)","angebot"); - $this->CheckColumn("ansprechpartner","varchar(255)","gutschrift"); - $this->CheckColumn("mobil","varchar(64)","ansprechpartner"); - - $this->CheckTable("event_api"); - $this->CheckColumn("id","int(11)","event_api","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("cachetime","timestamp","event_api"); - $this->CheckColumn("eventname","varchar(255)","event_api"); - $this->CheckColumn("parameter","varchar(255)","event_api"); - $this->CheckColumn("module","varchar(255)","event_api"); - $this->CheckColumn("action","varchar(255)","event_api"); - $this->CheckColumn("retries","int(11)","event_api"); - $this->CheckColumn("kommentar","varchar(255)","event_api"); - $this->CheckColumn("api","int(11)","event_api","DEFAULT '0' NOT NULL"); - - $this->CheckTable("gpsstechuhr"); - $this->CheckColumn("id","int(11)","gpsstechuhr","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("adresse","int(11)","gpsstechuhr"); - $this->CheckColumn("user","int(11)","gpsstechuhr"); - $this->CheckColumn("koordinaten","varchar(512)","gpsstechuhr"); - $this->CheckColumn("zeit","datetime","gpsstechuhr"); - - $this->CheckTable("kostenstellen"); - $this->CheckColumn("id","int(11)","kostenstellen","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("nummer","varchar(20)","kostenstellen"); - $this->CheckColumn("beschreibung","varchar(512)","kostenstellen"); - $this->CheckColumn("internebemerkung","text","kostenstellen"); - - $this->CheckTable("zolltarifnummer"); - $this->CheckColumn("id","int(11)","zolltarifnummer","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("nummer","varchar(255)","zolltarifnummer"); - $this->CheckColumn("beschreibung","varchar(512)","zolltarifnummer"); - $this->CheckColumn("internebemerkung","text","zolltarifnummer"); - - $this->CheckTable("lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("id","int(11)","lager_mindesthaltbarkeitsdatum","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("datum","DATE","lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("mhddatum","DATE","lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("artikel","int(11)","lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("lager_platz","int(11)","lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("zwischenlagerid","int(11)","lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("charge","varchar(1024)","lager_mindesthaltbarkeitsdatum"); - $this->CheckColumn("internebemerkung","text","lager_mindesthaltbarkeitsdatum"); - - $this->CheckTable("lager_charge"); - $this->CheckColumn("id","int(11)","lager_charge","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("charge","varchar(1024)","lager_charge"); - $this->CheckColumn("datum","DATE","lager_charge"); - $this->CheckColumn("artikel","int(11)","lager_charge"); - $this->CheckColumn("menge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_charge"); - $this->CheckAlterTable("ALTER TABLE `lager_charge` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL;"); - $this->CheckColumn("lager_platz","int(11)","lager_charge"); - $this->CheckColumn("zwischenlagerid","int(11)","lager_charge"); - $this->CheckColumn("internebemerkung","text","lager_charge"); - - $this->CheckTable("lager_differenzen"); - $this->CheckColumn("id","int(11)","lager_differenzen","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","int(11)","lager_differenzen"); - $this->CheckColumn("eingang","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_differenzen"); - $this->CheckColumn("ausgang","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_differenzen"); - $this->CheckColumn("berechnet","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_differenzen"); - $this->CheckColumn("bestand","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_differenzen"); - $this->CheckColumn("differenz","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","lager_differenzen"); - $this->CheckColumn("user","int(11)","lager_differenzen"); - $this->CheckColumn("lager_platz","int(11)","lager_differenzen"); - - - $this->CheckTable("adresse_import"); - $this->CheckColumn("id","int(11)","adresse_import","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("typ","varchar(20)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("name","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("ansprechpartner","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("abteilung","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("unterabteilung","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("adresszusatz","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("strasse","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("plz","varchar(64)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("ort","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("land","varchar(64)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("telefon","varchar(128)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("telefax","varchar(128)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("email","varchar(128)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("mobil","varchar(64)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("internetseite","varchar(255)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("ustid","varchar(64)","adresse_import","DEFAULT '' NOT NULL"); - $this->CheckColumn("user","INT(11)","adresse_import","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","INT(11)","adresse_import","DEFAULT '0' NOT NULL"); - $this->CheckColumn("angelegt_am","DATETIME","adresse_import"); - $this->CheckColumn("abgeschlossen","tinyint(1)","adresse_import","DEFAULT '0' NOT NULL"); - - $this->CheckTable("berichte"); - $this->CheckColumn("id","int(11)","berichte","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("name","varchar(64)","berichte"); - $this->CheckColumn("beschreibung","text","berichte"); - $this->CheckColumn("variablen","text","berichte"); - $this->CheckColumn("internebemerkung","text","berichte"); - $this->CheckColumn("struktur","text","berichte"); - $this->CheckColumn("spaltennamen","varchar(1024)","berichte"); - $this->CheckColumn("spaltenbreite","varchar(1024)","berichte"); - $this->CheckColumn("spaltenausrichtung","varchar(1024)","berichte"); - $this->CheckColumn("sumcols","varchar(1024)","berichte"); - $this->CheckColumn("doctype","varchar(64)","berichte"); - $this->CheckColumn("doctype_actionmenu","int(1)","berichte","DEFAULT '0' NOT NULL"); - $this->CheckColumn("doctype_actionmenuname","varchar(256)","berichte","DEFAULT '' NOT NULL"); - $this->CheckColumn("doctype_actionmenufiletype","varchar(256)","berichte","DEFAULT 'csv' NOT NULL"); - $this->CheckColumn("project","int(11)","berichte","DEFAULT '0' NOT NULL"); - - $this->CheckIndex('berichte','doctype'); - - $this->CheckColumn("ftpuebertragung","INT(1)","berichte","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ftppassivemode","INT(1)","berichte","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ftphost","varchar(512)","berichte"); - $this->CheckColumn("ftpport","INT(11)","berichte"); - $this->CheckColumn("ftpuser","varchar(512)","berichte"); - $this->CheckColumn("ftppassword","varchar(512)","berichte"); - $this->CheckColumn("ftpuhrzeit","TIME","berichte"); - $this->CheckColumn("ftpletzteuebertragung","datetime","berichte"); - $this->CheckColumn("ftpnamealternativ","varchar(512)","berichte","DEFAULT ''"); - - $this->CheckColumn("emailuebertragung","INT(1)","berichte","DEFAULT '0' NOT NULL"); - $this->CheckColumn("emailempfaenger","varchar(512)","berichte"); - $this->CheckColumn("emailbetreff","varchar(512)","berichte"); - $this->CheckColumn("emailuhrzeit","TIME","berichte"); - $this->CheckColumn("emailletzteuebertragung","datetime","berichte"); - $this->CheckColumn("emailnamealternativ","varchar(512)","berichte","DEFAULT ''"); - $this->CheckColumn('typ','VARCHAR(16)','berichte',"DEFAULT 'ftp' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `berichte` CHANGE `name` `name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;"); - } - if($stufe == 0 || $stufe == 7) - { - - $this->CheckTable("sqlcache"); - $this->CheckColumn("id","int(11)","sqlcache","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("abfrage","text","sqlcache","DEFAULT '' NOT NULL"); - $this->CheckColumn("ergebnis","text","sqlcache","DEFAULT '' NOT NULL"); - $this->CheckColumn("shortcode","varchar(255)","sqlcache","DEFAULT '' NOT NULL"); - $this->CheckColumn("sekunden","int(11)","sqlcache","DEFAULT '120' NOT NULL"); - $this->CheckColumn("zeitstempel", "TIMESTAMP", "sqlcache", "DEFAULT CURRENT_TIMESTAMP NOT NULL"); - - $this->CheckTable("verrechnungsart"); - $this->CheckColumn("id","int(11)","verrechnungsart","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("nummer","varchar(20)","verrechnungsart"); - $this->CheckColumn("beschreibung","varchar(512)","verrechnungsart"); - $this->CheckColumn("internebemerkung","text","verrechnungsart"); - - $this->CheckColumn("bonus1","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus1_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus2","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus2_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus3","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus3_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus4","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus4_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus5","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus5_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus6","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus6_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus7","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus7_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus8","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus8_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus9","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus9_ab","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus10","DECIMAL(10,2)","adresse"); - $this->CheckColumn("bonus10_ab","DECIMAL(10,2)","adresse"); - - $this->CheckColumn("rechnung_periode","int(11)","adresse"); - $this->CheckColumn("rechnung_anzahlpapier","int(11)","adresse"); - $this->CheckColumn("rechnung_permail","int(1)","adresse"); - $this->CheckColumn("rechnung_email","varchar(255)","adresse"); - - $this->CheckColumn("webid","int(11)","artikel"); - $this->CheckColumn("webid","VARCHAR(1024)","auftrag_position"); - - $this->CheckColumn("webid","int(11)","auftrag"); - - $this->CheckTable("reisekostenart"); - $this->CheckColumn("id","int(11)","reisekostenart","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("nummer","varchar(20)","reisekostenart"); - $this->CheckColumn("beschreibung","varchar(512)","reisekostenart"); - $this->CheckColumn("internebemerkung","text","reisekostenart"); - - $this->CheckTable("artikeleinheit"); - $this->CheckColumn("id","int(11)","artikeleinheit","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("einheit_de","varchar(255)","artikeleinheit"); - $this->CheckColumn("internebemerkung","text","artikeleinheit"); - - $this->CheckTable("importvorlage_log"); - $this->CheckColumn("id","int(11)","importvorlage_log","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("importvorlage","int(11)","importvorlage_log"); - $this->CheckColumn("zeitstempel","TIMESTAMP","importvorlage_log"); - $this->CheckColumn("user","int(11)","importvorlage_log"); - $this->CheckColumn("tabelle","varchar(255)","importvorlage_log"); - $this->CheckColumn("datensatz","int(11)","importvorlage_log"); - $this->CheckColumn("ersterdatensatz","tinyint(1)","importvorlage_log","DEFAULT '0' NOT NULL"); - - $this->CheckTable("importvorlage"); - $this->CheckColumn("id","int(11)","importvorlage","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","varchar(255)","importvorlage"); - $this->CheckColumn("ziel","varchar(255)","importvorlage"); - $this->CheckColumn("internebemerkung","text","importvorlage"); - $this->CheckColumn("fields","text","importvorlage"); - $this->CheckColumn("letzterimport","datetime","importvorlage"); - $this->CheckColumn("mitarbeiterletzterimport","varchar(255)","importvorlage"); - $this->CheckColumn("importtrennzeichen","varchar(255)","importvorlage"); - $this->CheckColumn("importerstezeilenummer","int(11)","importvorlage"); - $this->CheckColumn("importdatenmaskierung","varchar(255)","importvorlage"); - $this->CheckColumn("importzeichensatz","varchar(255)","importvorlage"); - $this->CheckColumn("utf8decode","tinyint(1)","importvorlage","DEFAULT '1' NOT NULL"); - $this->CheckColumn("charset","varchar(32)","importvorlage","DEFAULT 'UTF8' NOT NULL"); - - $this->CheckTable("exportvorlage"); - $this->CheckColumn("id","int(11)","exportvorlage","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","varchar(255)","exportvorlage"); - $this->CheckColumn("ziel","varchar(255)","exportvorlage"); - $this->CheckColumn("internebemerkung","text","exportvorlage"); - $this->CheckColumn("fields","text","exportvorlage"); - $this->CheckColumn("fields_where","text","exportvorlage"); - $this->CheckColumn("letzterexport","datetime","exportvorlage"); - $this->CheckColumn("mitarbeiterletzterexport","varchar(255)","exportvorlage"); - $this->CheckColumn("exporttrennzeichen","varchar(255)","exportvorlage"); - $this->CheckColumn("exporterstezeilenummer","int(11)","exportvorlage"); - $this->CheckColumn("exportdatenmaskierung","varchar(255)","exportvorlage"); - $this->CheckColumn("exportzeichensatz","varchar(255)","exportvorlage"); - $this->CheckColumn("filterdatum","tinyint(1)","exportvorlage","DEFAULT '0' NOT NULL"); - $this->CheckColumn("filterprojekt","tinyint(1)","exportvorlage","DEFAULT '0' NOT NULL"); - $this->CheckColumn("apifreigabe","tinyint(1)","exportvorlage","DEFAULT '0' NOT NULL"); - - // accordion - $this->CheckTable("accordion"); - $this->CheckColumn("id","int(11)","accordion"); - $this->CheckColumn("name","varchar(255)","accordion"); - $this->CheckColumn("target","varchar(255)","accordion"); - $this->CheckColumn("position","int(2)","accordion"); - - //inhalt - $this->CheckColumn("kurztext","text","inhalt"); - $this->CheckColumn("title","varchar(255)","inhalt"); - $this->CheckColumn("description","varchar(512)","inhalt"); - $this->CheckColumn("keywords","varchar(512)","inhalt"); - $this->CheckColumn("inhaltstyp","varchar(255)","inhalt"); - $this->CheckColumn("sichtbarbis","datetime","inhalt"); - $this->CheckColumn("datum","date","inhalt"); - $this->CheckColumn("template","varchar(255)","inhalt"); - $this->CheckColumn("finalparse","varchar(255)","inhalt"); - $this->CheckColumn("navigation","varchar(255)","inhalt"); - - $this->CheckColumn("hwtoken","int(1)","user"); - $this->CheckColumn("hwkey","varchar(255)","user"); - $this->CheckColumn("hwcounter","int(11)","user"); - $this->CheckColumn("hwdatablock","varchar(255)","user"); - $this->CheckColumn("motppin","varchar(255)","user"); - $this->CheckColumn("motpsecret","varchar(255)","user"); - $this->CheckColumn("externlogin","int(1)","user"); - - //wiki - $this->CheckTable("wiki"); - $this->CheckColumn("name","varchar(255)","wiki"); - $this->CheckColumn("content","text","wiki"); - $this->CheckColumn("lastcontent","text","wiki"); - - $this->CheckColumn('wiki_workspace_id','INT(11)','wiki','DEFAULT 0 NOT NULL'); - $this->CheckColumn('parent_id','INT(11)','wiki','DEFAULT 0 NOT NULL'); - $this->CheckColumn('language','VARCHAR(32)','wiki',"DEFAULT '' NOT NULL"); - - $this->CheckTable('wiki_workspace'); - $this->CheckColumn('name','varchar(255)','wiki_workspace',"DEFAULT '' NOT NULL"); - $this->CheckColumn('foldername','varchar(255)','wiki_workspace',"DEFAULT '' NOT NULL"); - $this->CheckColumn('description','TEXT','wiki_workspace'); - $this->CheckColumn('savein','VARCHAR(32)','wiki_workspace',"DEFAULT '' NOT NULL"); - $this->CheckColumn('active','TINYINT(1)','wiki_workspace','DEFAULT 1 NOT NULL'); - - $this->CheckIndex('wiki_workspace', 'name', true); - $this->CheckTable('wiki_changelog'); - $this->CheckColumn('wiki_id','INT(11)','wiki_changelog','DEFAULT 0 NOT NULL'); - $this->CheckColumn('comment','varchar(255)','wiki_changelog',"DEFAULT '' NOT NULL"); - $this->CheckColumn('created_by','varchar(255)','wiki_changelog',"DEFAULT '' NOT NULL"); - $this->CheckColumn('created_at','TIMESTAMP','wiki_changelog','DEFAULT CURRENT_TIMESTAMP NOT NULL'); - $this->CheckColumn('content','TEXT','wiki_changelog'); - $this->CheckColumn('notify','TINYINT(1)','wiki_changelog','DEFAULT 0 NOT NULL'); - - $this->CheckIndex('wiki_changelog', 'wiki_id'); - - $this->CheckTable('wiki_subscription'); - $this->CheckColumn('wiki_id','INT(11)','wiki_subscription','DEFAULT 0 NOT NULL'); - $this->CheckColumn('user_id','INT(11)','wiki_subscription','DEFAULT 0 NOT NULL'); - $this->CheckColumn('active','TINYINT(1)','wiki_subscription','DEFAULT 1 NOT NULL'); - $this->CheckIndex('wiki_subscription', 'wiki_id'); - - $this->app->erp->CheckTable('wiki_faq'); - $this->app->erp->CheckColumn('wiki_id','INT(11)','wiki_faq','NOT NULL DEFAULT 0'); - $this->app->erp->CheckColumn('question','TEXT','wiki_faq'); - $this->app->erp->CheckColumn('answer','TEXT','wiki_faq'); - $this->app->erp->CheckColumn('created_by','VARCHAR(255)','wiki_faq',"NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn('created_at','TIMESTAMP','wiki_faq'); - $this->app->erp->CheckColumn('updated_at','TIMESTAMP','wiki_faq'); - $this->app->erp->CheckIndex('wiki_faq', 'wiki_id'); - - //tabelle backup - $this->CheckTable("backup"); - $this->CheckColumn("adresse","int(11)","backup"); - $this->CheckColumn("name","varchar(255)","backup"); - $this->CheckColumn("dateiname","varchar(255)","backup"); - $this->CheckColumn("datum","datetime","backup"); - - //Tabelle artikel_shop - $this->CheckTable("artikel_shop"); - $this->CheckColumn("artikel","int(11)","artikel_shop"); - $this->CheckColumn("shop","int(11)","artikel_shop"); - $this->CheckColumn("checksum","text","artikel_shop"); - - // Tabelle dokumente - $this->CheckTable("dokumente"); - $this->CheckColumn("id","int(11)","dokumente"); - $this->CheckColumn("adresse_from","int(11)","dokumente"); - $this->CheckColumn("adresse_to","int(11)","dokumente"); - $this->CheckColumn("typ","varchar(24)","dokumente"); - $this->CheckColumn("von","varchar(512)","dokumente"); - $this->CheckColumn("firma","varchar(512)","dokumente"); - $this->CheckColumn("ansprechpartner","varchar(512)","dokumente"); - $this->CheckColumn("an","varchar(512)","dokumente"); - $this->CheckColumn("email_an","varchar(255)","dokumente"); - $this->CheckColumn("email_cc","varchar(255)","dokumente"); - $this->CheckColumn("email_bcc","varchar(255)","dokumente"); - $this->CheckColumn("firma_an","varchar(255)","dokumente"); - $this->CheckColumn("adresse","varchar(255)","dokumente"); - $this->CheckColumn("plz","varchar(16)","dokumente"); - $this->CheckColumn("ort","varchar(255)","dokumente"); - $this->CheckColumn("land","varchar(32)","dokumente"); - $this->CheckColumn("datum","date","dokumente"); - $this->CheckColumn("betreff","varchar(1023)","dokumente"); - $this->CheckColumn("content","text","dokumente"); - $this->CheckColumn("signatur","tinyint(1)","dokumente"); - $this->CheckColumn("send_as","varchar(24)","dokumente"); - $this->CheckColumn("email","varchar(255)","dokumente"); - $this->CheckColumn("printer","int(2)","dokumente"); - $this->CheckColumn("fax","int(2)","dokumente"); - $this->CheckColumn("sent","int(1)","dokumente"); - $this->CheckColumn("deleted","int(1)","dokumente"); - $this->CheckColumn("created","datetime","dokumente"); - $this->CheckColumn("bearbeiter","varchar(128)","dokumente"); - $this->CheckColumn("uhrzeit","time","dokumente"); - $this->CheckColumn("projekt","int(11)","dokumente","DEFAULT '0' NOT NULL"); - $this->CheckColumn("internebezeichnung","varchar(255)","dokumente","DEFAULT '' NOT NULL"); - - // Tabelle linkeditor - $this->CheckTable("linkeditor"); - $this->CheckColumn("id","int(4)","linkeditor"); - $this->CheckColumn("rule","varchar(1024)","linkeditor"); - $this->CheckColumn("replacewith","varchar(1024)","linkeditor"); - $this->CheckColumn("active","varchar(1)","linkeditor"); - - // Tabelle userrights - $this->CheckTable("userrights"); - $this->CheckColumn("id","int(11)","userrights"); - $this->CheckColumn("user","int(11)","userrights"); - $this->CheckColumn("module","varchar(64)","userrights"); - $this->CheckColumn("action","varchar(64)","userrights"); - $this->CheckColumn("permission","int(1)","userrights"); - - //Tabelle Rechte Historie - $this->CheckTable('permissionhistory'); - $this->CheckColumn('id','int(11)','permissionhistory','NOT NULL AUTO_INCREMENT'); - $this->CheckColumn('granting_user_id','int(11)','permissionhistory'); - $this->CheckColumn('granting_user_name','varchar(255)','permissionhistory'); - $this->CheckColumn('receiving_user_id','int(11)','permissionhistory'); - $this->CheckColumn('receiving_user_name','varchar(255)','permissionhistory'); - $this->CheckColumn('module','varchar(255)','permissionhistory'); - $this->CheckColumn('action','varchar(255)','permissionhistory'); - $this->CheckColumn('permission','int(1)','permissionhistory'); - $this->CheckColumn('timeofpermission','timestamp','permissionhistory','DEFAULT CURRENT_TIMESTAMP'); - - // Tabelle userrights - $this->CheckTable("uservorlagerights"); - $this->CheckColumn("id","int(11)","uservorlagerights","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("vorlage","int(11)","uservorlagerights"); - $this->CheckColumn("module","varchar(64)","uservorlagerights"); - $this->CheckColumn("action","varchar(64)","uservorlagerights"); - $this->CheckColumn("permission","int(1)","uservorlagerights"); - - // Tabelle userrights - $this->CheckTable("uservorlage"); - $this->CheckColumn("id","int(11)","uservorlage","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","VARCHAR(255)","uservorlage"); - $this->CheckColumn("beschreibung","TEXT","uservorlage"); - - $this->CheckTable("newsletter_blacklist"); - $this->CheckColumn("email","varchar(255)","newsletter_blacklist"); - - $this->CheckTable('returnorder_quantity'); - $this->CheckColumn('delivery_note_id', 'INT(11)','returnorder_quantity', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('quantity', 'DECIMAL(14,4)','returnorder_quantity', 'DEFAULT NULL'); - $this->CheckColumn('serialnumber', 'VARCHAR(255)','returnorder_quantity', "DEFAULT '' NOT NULL"); - $this->CheckColumn('batch', 'VARCHAR(255)','returnorder_quantity', "DEFAULT '' NOT NULL"); - $this->CheckColumn('bestbefore', 'VARCHAR(255)','returnorder_quantity', "DEFAULT '' NOT NULL"); - $this->CheckIndex('returnorder_quantity', 'delivery_note_id'); - - // Tabelle artikel - $this->CheckColumn("herstellernummer","varchar(255)","artikel"); - $this->CheckColumn("restmenge","int(1)","artikel"); - $this->CheckColumn("lieferzeitmanuell_en","varchar(255)","artikel"); - $this->CheckColumn("variante","int(1)","artikel"); - $this->CheckColumn("variante_von","int(11)","artikel"); - $this->CheckColumn("variante_kopie","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("unikat","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("downloadartikel","tinyint(1)", "artikel","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("matrixprodukt","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("generierenummerbeioption","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("allelieferanten","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("tagespreise","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rohstoffe","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bestandalternativartikel","int(11)","artikel","DEFAULT '0' NOT NULL"); - - //firmendaten - $this->CheckColumn("email","varchar(255)","firmendaten"); - $this->CheckColumn("absendername","varchar(255)","firmendaten"); - $this->CheckColumn("bcc1","varchar(255)","firmendaten"); - $this->CheckColumn("bcc2","varchar(255)","firmendaten"); - $this->CheckColumn("firmenfarbe","varchar(255)","firmendaten","DEFAULT '#ececec' NOT NULL"); - $this->CheckColumn("name","varchar(255)","firmendaten"); - $this->CheckColumn("strasse","varchar(255)","firmendaten"); - $this->CheckColumn("plz","varchar(64)","firmendaten"); - $this->CheckColumn("ort","varchar(255)","firmendaten"); - $this->CheckColumn("steuernummer","varchar(255)","firmendaten"); - $this->CheckColumn("brieftext","varchar(255)","firmendaten"); - $this->CheckColumn("startseite_wiki","varchar(255)","firmendaten"); - $this->CheckColumn("artikel_suche_kurztext","int(1)","firmendaten"); - $this->CheckColumn("artikel_bilder_uebersicht","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse_freitext1_suche","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikel_freitext1_suche","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("iconset_dunkel","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("eigenernummernkreis","int(11)","projekt"); - $this->CheckColumn("next_angebot","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_auftrag","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_rechnung","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_lieferschein","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_retoure","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_arbeitsnachweis","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_reisekosten","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_kalkulation","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_bestellung","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_gutschrift","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_kundennummer","varchar(64)","projekt"); - $this->CheckColumn("next_lieferantennummer","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_mitarbeiternummer","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_waren","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_produktion","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_sonstiges","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_produktion","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_anfrage","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_preisanfrage","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_proformarechnung","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_artikelnummer","varchar(64)","projekt","DEFAULT ''"); - $this->CheckColumn("next_verbindlichkeit","varchar(128)","projekt","DEFAULT ''"); - $this->CheckColumn('next_goodspostingdocument','varchar(64)','projekt',"DEFAULT ''"); - $this->CheckColumn('next_receiptdocument','varchar(64)','projekt',"DEFAULT ''"); - $this->CheckColumn('pos_disable_single_entries','TINYINT(1)','projekt','DEFAULT 0'); - $this->CheckColumn('pos_disable_single_day','TINYINT(1)','projekt','DEFAULT 0'); - $this->CheckColumn('pos_disable_counting_protocol','TINYINT(1)','projekt','DEFAULT 0'); - $this->CheckColumn('pos_disable_signature','TINYINT(1)','projekt','DEFAULT 0'); - - $this->CheckColumn('steuer_erloese_inland_normal','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_aufwendung_inland_normal','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_erloese_inland_ermaessigt','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_aufwendung_inland_ermaessigt','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_erloese_inland_nichtsteuerbar','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_aufwendung_inland_nichtsteuerbar','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_erloese_inland_innergemeinschaftlich','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_aufwendung_inland_innergemeinschaftlich','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_erloese_inland_eunormal','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_aufwendung_inland_eunormal','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_erloese_inland_euermaessigt','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_aufwendung_inland_euermaessigt','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_erloese_inland_export','VARCHAR(10)','projekt',"DEFAULT ''"); - $this->CheckColumn('steuer_aufwendung_inland_import','VARCHAR(10)','projekt',"DEFAULT ''"); - - $this->CheckColumn('create_proformainvoice','TINYINT(1)','projekt','DEFAULT 0'); - $this->CheckColumn('print_proformainvoice','TINYINT(1)','projekt','DEFAULT 0'); - $this->CheckColumn('proformainvoice_amount','INT(11)','projekt','DEFAULT 0'); - $this->CheckColumn('anzeigesteuerbelegebestellung','TINYINT(1)','projekt','DEFAULT 0'); - $this->CheckColumn('autobestbeforebatch','TINYINT(1)','projekt','DEFAULT 0'); - $this->CheckColumn('allwaysautobestbeforebatch','TINYINT(1)','projekt','DEFAULT 0'); - - $this->CheckColumn("warnung_doppelte_nummern","INT(1)","firmendaten","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("next_angebot","varchar(64)","firmendaten"); - $this->CheckColumn("next_auftrag","varchar(64)","firmendaten"); - $this->CheckColumn("next_rechnung","varchar(64)","firmendaten"); - $this->CheckColumn("next_lieferschein","varchar(64)","firmendaten"); - $this->CheckColumn("next_retoure","varchar(64)","firmendaten"); - $this->CheckColumn("next_arbeitsnachweis","varchar(64)","firmendaten"); - $this->CheckColumn("next_reisekosten","varchar(64)","firmendaten"); - $this->CheckColumn("next_kalkulation","varchar(64)","firmendaten"); - $this->CheckColumn("next_bestellung","varchar(64)","firmendaten"); - $this->CheckColumn("next_gutschrift","varchar(64)","firmendaten"); - $this->CheckColumn("next_kundennummer","varchar(64)","firmendaten"); - $this->CheckColumn("next_lieferantennummer","varchar(64)","firmendaten"); - $this->CheckColumn("next_mitarbeiternummer","varchar(64)","firmendaten"); - $this->CheckColumn("next_waren","varchar(64)","firmendaten"); - $this->CheckColumn("next_produktion","varchar(64)","firmendaten"); - $this->CheckColumn("next_sonstiges","varchar(64)","firmendaten"); - $this->CheckColumn("next_produktion","varchar(64)","firmendaten"); - $this->CheckColumn("next_preisanfrage","varchar(64)","firmendaten"); - $this->CheckColumn("next_proformarechnung","varchar(64)","firmendaten"); - $this->CheckColumn("next_artikelnummer","varchar(64)","firmendaten","DEFAULT '' NOT NULL"); - - $this->CheckColumn("seite_von_ausrichtung","varchar(255)","firmendaten"); - $this->CheckColumn("seite_von_sichtbar","int(1)","firmendaten"); - - $this->CheckColumn("parameterundfreifelder","int(1)","firmendaten"); - - for($i=1;$i<=40;$i++) { - $this->CheckColumn("freifeld" . $i, "TEXT", "firmendaten", "DEFAULT '' NOT NULL"); - } - - for($i=1;$i<=20;$i++) { - $this->CheckColumn("adressefreifeld" . $i, "TEXT", "firmendaten", "DEFAULT '' NOT NULL"); - $this->CheckColumn("adressefreifeld".$i."typ", "varchar(16)", "firmendaten", "DEFAULT 'einzeilig' NOT NULL"); - $this->CheckColumn("adressefreifeld".$i."spalte", "int(11)", "firmendaten", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("adressefreifeld".$i."sort", "int(11)", "firmendaten", "DEFAULT '0' NOT NULL"); - } - - $this->CheckColumn("wareneingangauftragzubestellung", "tinyint(1)", "firmendaten", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("firmenfarbehell","text","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("firmenfarbedunkel","text","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("firmenfarbeganzdunkel","text","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("navigationfarbe","text","firmendaten","DEFAULT '#e0e0e0' NOT NULL"); - $this->CheckColumn("navigationfarbeschrift","text","firmendaten","DEFAULT '#686868' NOT NULL"); - $this->CheckColumn("unternavigationfarbe","text","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("unternavigationfarbeschrift","text","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("firmenlogo","longblob","firmendaten"); - $this->CheckColumn("firmenlogotype","varchar(255)","firmendaten"); - $this->CheckColumn("firmenlogoaktiv","int(1)","firmendaten"); - - $this->CheckColumn("beleg_artikelbild","int(1)","firmendaten"); - $this->CheckColumn("lieferschein_artikelbild","int(1)","firmendaten"); - $this->CheckColumn("rechnung_artikelbild","int(1)","firmendaten"); - $this->CheckColumn("bestellung_artikelbild","int(1)","firmendaten"); - $this->CheckColumn("gutschrift_artikelbild","int(1)","firmendaten"); - $this->CheckColumn("angebot_artikelbild","int(1)","firmendaten"); - - $this->CheckColumn("projektnummerimdokument","int(1)","firmendaten"); - $this->CheckColumn("freifelderimdokument","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("internetnummerimbeleg","int(1)","firmendaten"); - $this->CheckColumn("beschriftunginternetnummer","varchar(64)","firmendaten","DEFAULT 'Internetnummer' NOT NULL"); - $this->CheckColumn("mailanstellesmtp","int(1)","firmendaten"); - $this->CheckColumn("herstellernummerimdokument","int(1)","firmendaten"); - $this->CheckColumn("standardmarge","int(11)","firmendaten"); - - $this->CheckColumn("steuer_erloese_inland_normal","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_normal","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_ermaessigt","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_ermaessigt","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_steuerfrei","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_steuerfrei","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_innergemeinschaftlich","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_innergemeinschaftlich","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_eunormal","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_nichtsteuerbar","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - - $this->CheckColumn("steuer_erloese_inland_euermaessigt","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_nichtsteuerbar","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_eunormal","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_euermaessigt","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_export","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_import","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_anpassung_kundennummer","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - - $this->CheckColumn("steuer_erloese_inland_normal","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_normal","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_ermaessigt","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_ermaessigt","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_steuerfrei","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_steuerfrei","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_innergemeinschaftlich","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_innergemeinschaftlich","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_eunormal","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_nichtsteuerbar","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - - $this->CheckColumn("steuer_erloese_inland_euermaessigt","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_nichtsteuerbar","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_eunormal","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_euermaessigt","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_erloese_inland_export","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_aufwendung_inland_import","VARCHAR(10)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_art_produkt","INT(1)","artikel","DEFAULT '1' NOT NULL"); - $this->CheckColumn("steuer_art_produkt_download","INT(1)","artikel","DEFAULT '1' NOT NULL"); - - $this->CheckColumn("metadescription_de","text","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("metadescription_en","text","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("metakeywords_de","text","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("metakeywords_en","text","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("metatitle_de","text","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("metatitle_en","text","artikel","DEFAULT '' NOT NULL"); - - for($ki=1;$ki<=15;$ki++) - { - $this->CheckColumn("steuer_art_".$ki,"VARCHAR(30)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_art_".$ki."_normal","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_art_".$ki."_ermaessigt","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("steuer_art_".$ki."_steuerfrei","VARCHAR(10)","firmendaten","DEFAULT '' NOT NULL"); - } - - $this->CheckColumn("rechnung_header","text","firmendaten"); - $this->CheckColumn("lieferschein_header","text","firmendaten"); - $this->CheckColumn("angebot_header","text","firmendaten"); - $this->CheckColumn("auftrag_header","text","firmendaten"); - $this->CheckColumn("rechnung_header","text","firmendaten"); - $this->CheckColumn("gutschrift_header","text","firmendaten"); - $this->CheckColumn("bestellung_header","text","firmendaten"); - $this->CheckColumn("arbeitsnachweis_header","text","firmendaten"); - $this->CheckColumn("provisionsgutschrift_header","text","firmendaten"); - $this->CheckColumn("proformarechnung_header","text","firmendaten"); - - $this->CheckColumn("rechnung_footer","text","firmendaten"); - $this->CheckColumn("lieferschein_footer","text","firmendaten"); - $this->CheckColumn("angebot_footer","text","firmendaten"); - $this->CheckColumn("auftrag_footer","text","firmendaten"); - $this->CheckColumn("rechnung_footer","text","firmendaten"); - $this->CheckColumn("gutschrift_footer","text","firmendaten"); - $this->CheckColumn("bestellung_footer","text","firmendaten"); - $this->CheckColumn("arbeitsnachweis_footer","text","firmendaten"); - $this->CheckColumn("provisionsgutschrift_footer","text","firmendaten"); - $this->CheckColumn("proformarechnung_footer","text","firmendaten"); - - $this->CheckColumn("rechnung_ohnebriefpapier","int(1)","firmendaten"); - $this->CheckColumn("lieferschein_ohnebriefpapier","int(1)","firmendaten"); - $this->CheckColumn("angebot_ohnebriefpapier","int(1)","firmendaten"); - $this->CheckColumn("auftrag_ohnebriefpapier","int(1)","firmendaten"); - $this->CheckColumn("rechnung_ohnebriefpapier","int(1)","firmendaten"); - $this->CheckColumn("gutschrift_ohnebriefpapier","int(1)","firmendaten"); - $this->CheckColumn("bestellung_ohnebriefpapier","int(1)","firmendaten"); - $this->CheckColumn("arbeitsnachweis_ohnebriefpapier","int(1)","firmendaten"); - - $this->CheckColumn("eu_lieferung_vermerk","text","firmendaten","DEFAULT '' NOT NULL"); - $this->CheckColumn("export_lieferung_vermerk","text","firmendaten","DEFAULT '' NOT NULL"); - - $this->CheckColumn("abstand_adresszeileoben","int(11)","firmendaten"); - $this->CheckColumn("abstand_seitenrandlinks","int(11)","firmendaten","DEFAULT '15' NOT NULL"); - $this->CheckColumn("abstand_adresszeilelinks","int(11)","firmendaten","DEFAULT '15' NOT NULL"); - $this->CheckColumn("abstand_boxrechtsoben","int(11)","firmendaten"); - $this->CheckColumn("abstand_betreffzeileoben","int(11)","firmendaten"); - $this->CheckColumn("abstand_artikeltabelleoben","int(11)","firmendaten"); - - $this->CheckColumn("rabatt","int(11)","angebot_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rabatt","int(11)","rechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rabatt","int(11)","auftrag_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rabatt","int(11)","gutschrift_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("internerkommentar","varchar(255)","rechnung_position","DEFAULT '' NOT NULL"); - - $this->CheckColumn("wareneingang_kamera_waage","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("wareneingang_gross","int(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("layout_iconbar","int(1)","firmendaten"); - - $this->CheckColumn("briefpapier_bearbeiter_ausblenden","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("briefpapier_vertrieb_ausblenden","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("auftragmarkierenegsaldo","tinyint(1)","firmendaten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("artikelnummerninfotext","int(1)","bestellung"); - $this->CheckColumn("langeartikelnummern","tinyint(1)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("abgeschlossen","int(1)","bestellung_position"); - - $this->CheckColumn("auswahlmenge","DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")","bestellung_position","DEFAULT NULL"); - $this->CheckColumn("auswahletiketten","int(11)","bestellung_position","DEFAULT NULL"); - $this->CheckColumn("auswahllagerplatz","int(11)","bestellung_position","DEFAULT NULL"); - - $this->CheckColumn("doppel","int(1)","rechnung"); - - $this->CheckColumn("ansprechpartner","varchar(255)","bestellung"); - - $this->CheckColumn("interne_bemerkung","TEXT","lieferadressen"); - $this->CheckColumn("hinweis","TEXT","lieferadressen"); - $this->CheckColumn("ansprechpartner","varchar(255)","lieferadressen"); - $this->CheckColumn("standardlieferadresse","tinyint(1)","lieferadressen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gln","varchar(32)","lieferadressen","DEFAULT '' NOT NULL"); - $this->CheckColumn("ustid","varchar(32)","lieferadressen","DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferbedingung","TEXT","lieferadressen","DEFAULT '' NOT NULL"); - $this->CheckColumn("ust_befreit","varchar(1)","lieferadressen","DEFAULT '' NOT NULL"); - $this->CheckColumn("gln","varchar(32)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("rechnung_gln","varchar(32)","adresse","DEFAULT '' NOT NULL"); - $this->CheckColumn("keinealtersabfrage","tinyint(1)","adresse","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("keinetrackingmail","int(1)","auftrag"); - $this->CheckColumn("keinetrackingmail","int(1)","versand"); - $this->CheckColumn("improzess","TINYINT(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("improzessuser","INT(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("versandzweigeteilt","TINYINT(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("weitererlieferschein","int(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzahlpakete","int(11)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gelesen","int(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("tracking_link", "text", "versand"); - - $this->CheckColumn("paketmarkegedruckt","int(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("papieregedruckt","int(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("cronjob","int(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adressvalidation","int(1)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn("retoure","int(11)","versand","DEFAULT '0' NOT NULL"); - $this->CheckColumn('klaergrund','varchar(255)','versand',"DEFAULT '' NOT NULL"); - $this->CheckColumn("permission","int(1)","userrights"); - - // Tabelle userrights - - $this->CheckColumn("inventur","decimal(14,4)","lager_platz_inhalt"); - $this->CheckColumn("lager_platz_vpe","int(11)","lager_platz_inhalt","DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `lager_platz_inhalt` CHANGE `inventur` `inventur` DECIMAL(14,4) NULL DEFAULT NULL;"); - - $this->CheckTable("lager_platz_vpe"); - $this->CheckColumn("id","int(11)","lager_platz_vpe","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("lager_platz","int(11)","lager_platz_vpe"); - $this->CheckColumn("artikel","int(11)","lager_platz_vpe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("inventur","int(11)","lager_platz_vpe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("breite", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("hoehe", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("laenge", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("gewicht", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge2", "int(11)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("breite2", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("hoehe2", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("laenge2", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("gewicht2", "decimal(10,2)", "lager_platz_vpe", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("startseite","varchar(1024)","user"); - $this->CheckColumn("webid","varchar(1024)","adresse"); - $this->CheckColumn("titel","varchar(1024)","adresse"); - $this->CheckColumn("anschreiben","varchar(1024)","adresse"); - $this->CheckColumn("titel","varchar(1024)","ansprechpartner"); - $this->CheckColumn("anschreiben","varchar(1024)","ansprechpartner"); - $this->CheckColumn("ansprechpartner_land","varchar(255)","ansprechpartner"); - $this->CheckColumn("vorname","varchar(1024)","ansprechpartner"); - $this->CheckColumn("interne_bemerkung","varchar(1024)","ansprechpartner", "NOT NULL"); - - $this->CheckColumn("geburtstag","DATE","ansprechpartner"); - $this->CheckColumn("geburtstagkalender","tinyint(1)","ansprechpartner","DEFAULT '0' NOT NULL"); - $this->CheckColumn("geburtstagskarte","tinyint(1)","ansprechpartner","DEFAULT '0' NOT NULL"); - $this->CheckColumn("geloescht","tinyint(1)","ansprechpartner","DEFAULT '0' NOT NULL"); - - $this->CheckTable("ansprechpartner_gruppen"); - $this->CheckColumn("id","int(11)","ansprechpartner_gruppen","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("ansprechpartner","int(11)","ansprechpartner_gruppen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","ansprechpartner_gruppen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","ansprechpartner_gruppen","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("geloescht","int(1)","shopexport"); - $this->CheckColumn("multiprojekt","int(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftragabgleich","int(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("adressupdate","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kundenurvonprojekt","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("eigenschaftenuebertragen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kategorienuebertragen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("stornoabgleich","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("nurpreise","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("steuerfreilieferlandexport","tinyint(1)","shopexport","DEFAULT '1' NOT NULL"); - $this->CheckColumn("gutscheineuebertragen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `shopexport` CHANGE `steuerfreilieferlandexport` `steuerfreilieferlandexport` TINYINT(1) NOT NULL DEFAULT '1'"); - $this->CheckColumn("gesamtbetragfestsetzen","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lastschriftdatenueberschreiben","tinyint(1)","shopexport","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gesamtbetragfestsetzendifferenz","decimal(10,2)","shopexport","DEFAULT '0' NOT NULL"); -/* - $this->CheckAlterTable("ALTER TABLE shopexport DROP COLUMN `gesamtbetragfestsetzendifferenz`"); -*/ - $this->CheckTable("shopexport_archiv"); - $this->CheckColumn("id","int(11)","shopexport_archiv","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("shop","int(11)","shopexport_archiv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzahl","int(11)","shopexport_archiv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("erfolgreich","int(11)","shopexport_archiv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("status","varchar(255)","shopexport_archiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("letzteabgeholtenummer","varchar(255)","shopexport_archiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("type","varchar(255)","shopexport_archiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("datumvon","timestamp", "shopexport_archiv", ""); - $this->CheckColumn("datumbis","timestamp", "shopexport_archiv", ""); - $this->CheckColumn("nummervon","varchar(255)","shopexport_archiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("nummerbis","varchar(255)","shopexport_archiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("abschliessen","tinyint(1)","shopexport_archiv","DEFAULT '1' NOT NULL"); - $this->CheckColumn("stornierteabholen","tinyint(1)","shopexport_archiv","DEFAULT '1' NOT NULL"); - $this->CheckColumn("rechnung_erzeugen","tinyint(1)","shopexport_archiv","DEFAULT '1' NOT NULL"); - $this->CheckColumn("rechnung_bezahlt","tinyint(1)","shopexport_archiv","DEFAULT '1' NOT NULL"); - $this->CheckColumn("bearbeiter","varchar(255)","shopexport_archiv","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","shopexport_archiv","DEFAULT CURRENT_TIMESTAMP"); - $this->CheckColumn('donotimport','tinyint(1)','shopexport_archiv','DEFAULT 0 NOT NULL'); - $this->CheckIndex("shopexport_archiv", "shop"); - - $this->CheckColumn("produktioninfo","text","artikel"); - $this->CheckColumn("sonderaktion","text","artikel"); - $this->CheckColumn("sonderaktion_en","text","artikel"); - $this->CheckColumn("anabregs_text","text","artikel"); - $this->CheckColumn("anabregs_text_en","text","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("restmenge","int(1)","artikel"); - $this->CheckColumn("autobestellung","int(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("autolagerlampe","int(1)","artikel","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("produktion","int(1)","artikel"); - $this->CheckColumn("herstellernummer","varchar(255)","artikel"); - $this->CheckColumn("vkmeldungunterdruecken","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("altersfreigabe","varchar(3)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn("unikatbeikopie","tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("steuergruppe","int(11)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kostenstelle","varchar(10)","artikel","DEFAULT '' NOT NULL"); - - $this->CheckColumn("kundenartikelnummer","varchar(255)","verkaufspreise"); - $this->CheckColumn("art","varchar(255)","verkaufspreise","DEFAULT 'Kunde' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","verkaufspreise"); - $this->CheckColumn("apichange","tinyint(1)","verkaufspreise","DEFAULT '0' NOT NULL"); - $this->CheckColumn("inbelegausblenden","tinyint(1)","verkaufspreise","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gueltig_ab","DATE","verkaufspreise","DEFAULT '0000-00-00' NOT NULL"); - $this->CheckColumn('kurs','DECIMAL(14,4)','verkaufspreise','DEFAULT -1'); - $this->CheckColumn('kursdatum','DATE','verkaufspreise','DEFAULT NULL'); - - $this->CheckColumn("apichange","tinyint(1)","einkaufspreise","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rahmenvertrag","tinyint(1)","einkaufspreise","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rahmenvertrag_von","DATE","einkaufspreise"); - $this->CheckColumn("rahmenvertrag_bis","DATE","einkaufspreise"); - $this->CheckColumn("rahmenvertrag_menge","INT(11)","einkaufspreise","DEFAULT '0' NOT NULL"); - $this->CheckColumn("beschreibung","TEXT","einkaufspreise","DEFAULT '' NOT NULL"); - - $this->CheckColumn("allDay","int(1)","kalender_event"); - $this->CheckColumn("color","varchar(7)","kalender_event"); - - $this->CheckColumn("ganztags","int(1)","aufgabe","DEFAULT '1' NOT NULL"); - $this->CheckColumn("abgabe_bis_zeit","TIME","aufgabe"); - $this->CheckColumn("abgabe_bis","DATE","aufgabe"); - $this->CheckColumn("email_gesendet_vorankuendigung","tinyint(1)","aufgabe","DEFAULT '0' NOT NULL"); - $this->CheckColumn("email_gesendet","tinyint(1)","aufgabe","DEFAULT '0' NOT NULL"); - - // Tabelle linkeditor - $this->CheckTable("adresse_kontakte"); - $this->CheckColumn("id","int(11)","adresse_kontakte"); - $this->CheckColumn("adresse","int(11)","adresse_kontakte"); - $this->CheckColumn("bezeichnung","varchar(1024)","adresse_kontakte"); - $this->CheckColumn("kontakt","varchar(1024)","adresse_kontakte"); - - $this->CheckTable("pos_rksv"); - $this->CheckColumn("id","int(11)","pos_rksv"); - $this->CheckColumn("projekt","int(11)","pos_rksv"); - $this->CheckColumn("rechnung","int(11)","pos_rksv"); - $this->CheckColumn("belegnummer","int(11)","pos_rksv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("betragnormal","DECIMAL(18,2)","pos_rksv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("betragermaessigt1","DECIMAL(18,2)","pos_rksv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("betragermaessigt2","DECIMAL(18,2)","pos_rksv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("betragbesonders","DECIMAL(18,2)","pos_rksv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("betragnull","DECIMAL(18,2)","pos_rksv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("umsatzzaehler","DECIMAL(18,2)","pos_rksv","DEFAULT '0' NOT NULL"); - $this->CheckColumn("umsatzzaehler_aes","TEXT","pos_rksv","DEFAULT '' NOT NULL"); - $this->CheckColumn("signatur","TEXT","pos_rksv","DEFAULT '' NOT NULL"); - $this->CheckColumn("jwscompact","TEXT","pos_rksv","DEFAULT '' NOT NULL"); - $this->CheckColumn("belegart","varchar(10)","pos_rksv","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","DATETIME","pos_rksv"); - - // Tabelle linkeditor - $this->CheckTable("adresse_accounts"); - $this->CheckColumn("id","int(11)","adresse_accounts"); - $this->CheckColumn("aktiv","tinyint(1)","adresse_accounts","DEFAULT '1' NOT NULL"); - $this->CheckColumn("adresse","int(11)","adresse_accounts"); - $this->CheckColumn("bezeichnung","varchar(128)","adresse_accounts"); - $this->CheckColumn("art","varchar(128)","adresse_accounts"); - $this->CheckColumn("url","TEXT","adresse_accounts","DEFAULT '' NOT NULL"); - $this->CheckColumn("benutzername","TEXT","adresse_accounts","DEFAULT '' NOT NULL"); - $this->CheckColumn("passwort","TEXT","adresse_accounts","DEFAULT '' NOT NULL"); - $this->CheckColumn("webid","int(11)","adresse_accounts","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gueltig_ab","DATE","adresse_accounts"); - $this->CheckColumn("gueltig_bis","DATE","adresse_accounts"); - - $this->CheckColumn("gesamtstunden_max","int(11)","projekt"); - $this->CheckColumn("auftragid","int(11)","projekt"); - $this->CheckColumn("auftragid","int(11)","arbeitspaket"); - $this->CheckColumn("sort","int(11)","arbeitspaket","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("ek_geplant","DECIMAL(18,8)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("vk_geplant","DECIMAL(18,8)","arbeitspaket","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kalkulationbasis","varchar(64)","arbeitspaket","DEFAULT 'stundenbasis' NOT NULL"); - $this->CheckColumn("vkkalkulationbasis","varchar(64)","arbeitspaket","DEFAULT NULL"); - $this->CheckColumn("projektplanausblenden","tinyint(1)","arbeitspaket","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("arbeitsnachweis","int(11)","zeiterfassung"); - $this->CheckColumn("nachbestelltexternereinkauf","int(1)","auftrag_position"); - - $this->CheckColumn("dhlzahlungmandant","varchar(3)","projekt","NOT NULL COMMENT 'DHL Zahlungsmandant ID'"); - $this->CheckColumn("dhlretourenschein","int(1)","projekt","NOT NULL COMMENT 'Retourenschein drucken 1=ja;0=nein'"); - $this->CheckColumn("kommissionierlauflieferschein","tinyint(1)","projekt","NOT NULL DEFAULT '0'"); - $this->CheckColumn("intraship_exportdrucker","int(11)","projekt","NOT NULL DEFAULT '0'"); - $this->CheckColumn("multiorderpicking","tinyint(1)","projekt","NOT NULL DEFAULT '0'"); - - $this->CheckColumn("marketingsperre","tinyint(1)","ansprechpartner","DEFAULT '0' NOT NULL"); - // Tabelle textvorlagen - $this->CheckTable("textvorlagen"); - $this->CheckColumn("name","varchar(255)","textvorlagen"); - $this->CheckColumn("text","text","textvorlagen"); - $this->CheckColumn("stichwoerter","varchar(255)","textvorlagen"); - $this->CheckColumn("projekt","varchar(255)","textvorlagen"); - - $this->CheckTable("module_lock"); - $this->CheckColumn("module","varchar(255)","module_lock"); - $this->CheckColumn("action","varchar(255)","module_lock"); - $this->CheckColumn("userid","int(15)","module_lock","DEFAULT '0'"); - $this->CheckColumn("salt","varchar(255)","module_lock","DEFAULT ''"); - $this->CheckColumn("zeit","timestamp","module_lock","DEFAULT CURRENT_TIMESTAMP"); - - $this->CheckColumn("abweichendebezeichnung","tinyint(1)","angebot", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("abweichendebezeichnung","tinyint(1)","auftrag", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("abweichendebezeichnung","tinyint(1)","rechnung", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("abweichendebezeichnung","tinyint(1)","lieferschein", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("abweichendebezeichnung","tinyint(1)","bestellung", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("anzeigesteuer","tinyint(11)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzeigesteuer","tinyint(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzeigesteuer","tinyint(11)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzeigesteuer","tinyint(11)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzeigesteuer","tinyint(11)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("anzeigesteuer","tinyint(11)","proformarechnung","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("serienbrief","tinyint(1)","adresse","DEFAULT '0' NOT NULL"); - - $this->CheckTable("shopimport_auftraege"); - $this->CheckColumn("shopid","int(15)","shopimport_auftraege","DEFAULT '0'"); - $this->CheckColumn("bestellnummer","varchar(255)","shopimport_auftraege","DEFAULT NULL"); - $this->CheckColumn("jsonencoded","tinyint(1)","shopimport_auftraege","DEFAULT '0' NOT NULL"); - - $this->CheckTable('onlineshop_transfer_cart'); - $this->CheckColumn('shop_id', 'int(11)', 'onlineshop_transfer_cart', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('cart_original', 'mediumtext', 'onlineshop_transfer_cart'); - $this->CheckColumn('cart_transfer', 'mediumtext', 'onlineshop_transfer_cart'); - $this->CheckColumn('template', 'mediumtext', 'onlineshop_transfer_cart'); - $this->CheckColumn('extid','varchar(255)','onlineshop_transfer_cart',"DEFAULT ''"); - $this->CheckColumn('internet','varchar(255)','onlineshop_transfer_cart',"DEFAULT ''"); - $this->CheckColumn('status','varchar(255)','onlineshop_transfer_cart',"DEFAULT ''"); - $this->CheckColumn('created_at', 'timestamp', 'onlineshop_transfer_cart', 'NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'); - $this->CheckIndex('onlineshop_transfer_cart', 'shop_id'); - $this->CheckIndex('onlineshop_transfer_cart', 'extid'); - - $this->CheckTable('onlineshops_tasks'); - $this->CheckColumn('id','int(11)','onlineshops_tasks','NOT NULL AUTO_INCREMENT'); - $this->CheckColumn('shop_id','int(15)','onlineshops_tasks','DEFAULT \'0\''); - $this->CheckColumn('command','varchar(255)','onlineshops_tasks','DEFAULT \'\''); - $this->CheckColumn('status','varchar(255)','onlineshops_tasks','DEFAULT \'inactive\''); - $this->CheckColumn('counter','int(15)','onlineshops_tasks','DEFAULT \'0\''); - $this->CheckColumn('created', 'timestamp', 'onlineshops_tasks', 'NOT NULL DEFAULT CURRENT_TIMESTAMP'); - $this->CheckColumn('lastupdate', 'timestamp', 'onlineshops_tasks', 'NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'); - $this->CheckColumn("bezahlt_am","DATE","rechnung","DEFAULT NULL"); - - - - $this->CheckColumn("artikelautokalkulation", "int(11)", "artikel", "NOT NULL DEFAULT 0"); - $this->CheckColumn("artikelabschliessenkalkulation", "int(11)", "artikel", "NOT NULL DEFAULT 0"); - $this->CheckColumn("artikelfifokalkulation", "int(11)", "artikel", "NOT NULL DEFAULT 0"); - $this->CheckColumn("lagertext", "varchar(255)", "lieferschein_position", "NOT NULL DEFAULT ''"); - - $this->CheckTable("objekt_lager_platz"); - $this->CheckColumn("id","int(11)","objekt_lager_platz","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("parameter", "int(11)", "objekt_lager_platz", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("objekt", "varchar(255)", "objekt_lager_platz", "NOT NULL DEFAULT ''"); - $this->CheckColumn("artikel", "int(11)", "objekt_lager_platz", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("lager_platz", "int(11)", "objekt_lager_platz", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("menge", "DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().")", "objekt_lager_platz", "NOT NULL DEFAULT '0'"); - $this->CheckColumn("kommentar","varchar(255)","objekt_lager_platz","DEFAULT ''"); - $this->CheckColumn("bearbeiter","varchar(255)","objekt_lager_platz","DEFAULT ''"); - $this->CheckColumn("zeitstempel","timestamp","objekt_lager_platz","DEFAULT CURRENT_TIMESTAMP"); - - //Währung Umrechnungstabelle - - $this->CheckColumn("nichtberechnet", "tinyint(1)", "einkaufspreise", "NOT NULL DEFAULT '1'"); - $this->CheckColumn("nichtberechnet", "tinyint(1)", "verkaufspreise", "NOT NULL DEFAULT '1'"); - - $this->CheckTable("sammelrechnung_position"); - $this->CheckColumn("id","int(11)","sammelrechnung_position","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("adresse","INT(11)","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rechnung","INT(11)","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge","float","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rechnung_position_id","INT(11)","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftrag_position_id","INT(11)","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferschein_position_id","INT(11)","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("preis","DECIMAL(18,8)","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auswahl","tinyint(0)","sammelrechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommissionierung", "INT(11)","lieferschein", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("cronjobkommissionierung", "INT(11)","auftrag", "DEFAULT '0' NOT NULL"); - - $this->CheckTable("kommissionierung"); - $this->CheckColumn("id","int(11)","kommissionierung","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("zeitstempel", "TIMESTAMP", "kommissionierung", "NOT NULL DEFAULT CURRENT_TIMESTAMP"); - $this->CheckColumn("bearbeiter","varchar(255)","kommissionierung","DEFAULT '' NOT NULL"); - $this->CheckColumn("user","INT(11)","kommissionierung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommentar","varchar(255)","kommissionierung","DEFAULT '' NOT NULL"); - $this->CheckColumn("abgeschlossen","tinyint(1)","kommissionierung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("improzess","tinyint(1)","kommissionierung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bezeichnung","varchar(40)","kommissionierung","DEFAULT '' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `kommissionierung` CHANGE `bezeichnung` `bezeichnung` VARCHAR(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';"); - $this->CheckColumn('skipconfirmboxscan','tinyint(1)','kommissionierung','DEFAULT -1 NOT NULL'); - - $this->CheckTable('cronjob_kommissionierung'); - $this->CheckColumn('id','int(11)','cronjob_kommissionierung','NOT NULL AUTO_INCREMENT'); - $this->CheckColumn('zeitstempel', 'TIMESTAMP', 'cronjob_kommissionierung', 'NOT NULL DEFAULT CURRENT_TIMESTAMP'); - $this->CheckColumn('bezeichnung','varchar(40)','cronjob_kommissionierung',"DEFAULT '' NOT NULL"); - - $this->CheckTable("kommissionierung_position"); - $this->CheckColumn("id","int(11)","kommissionierung_position","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("artikel","INT(11)","kommissionierung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","INT(11)","kommissionierung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommissionierung","INT(11)","kommissionierung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ausgeblendet","tinyint(1)","kommissionierung_position","DEFAULT '0' NOT NULL"); - - $this->CheckTable("kommissionierung_position_ls"); - $this->CheckColumn("id","int(11)","kommissionierung_position_ls","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("kommissionierung","INT(11)","kommissionierung_position_ls","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikel","INT(11)","kommissionierung_position_ls","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lager_platz","INT(11)","kommissionierung_position_ls","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferschein","INT(11)","kommissionierung_position_ls","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ausgeblendet","tinyint(1)","kommissionierung_position_ls","DEFAULT '0' NOT NULL"); - $this->CheckColumn("rabatteportofestschreiben","tinyint(1)","auftrag","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("passwordsha512","varchar(128)","user","DEFAULT '' NOT NULL"); - $this->CheckColumn("salt","varchar(128)","user","DEFAULT '' NOT NULL"); - - $this->CheckColumn("sprache","VARCHAR(32)","adresse","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(32)","auftrag","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(32)","angebot","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(32)","rechnung","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(32)","lieferschein","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(32)","gutschrift","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(32)","bestellung","DEFAULT '' NOT NULL "); - $this->CheckColumn("sprache","VARCHAR(32)","anfrage","DEFAULT '' NOT NULL "); - - $this->CheckColumn("sprache","VARCHAR(32)","proformarechnung","DEFAULT '' NOT NULL "); - - $this->CheckColumn("kostenstelle","VARCHAR(10)","angebot","DEFAULT '' NOT NULL "); - $this->CheckColumn("kostenstelle","VARCHAR(10)","auftrag","DEFAULT '' NOT NULL "); - $this->CheckColumn("kostenstelle","VARCHAR(10)","rechnung","DEFAULT '' NOT NULL "); - $this->CheckColumn("kostenstelle","VARCHAR(10)","gutschrift","DEFAULT '' NOT NULL "); - $this->CheckColumn("kostenstelle","VARCHAR(10)","bestellung","DEFAULT '' NOT NULL "); - $this->CheckColumn("kostenstelle","VARCHAR(10)","lieferschein","DEFAULT '' NOT NULL "); - - $this->CheckColumn("bodyzusatz","TEXT","auftrag","DEFAULT '' NOT NULL "); - $this->CheckColumn("bodyzusatz","TEXT","angebot","DEFAULT '' NOT NULL "); - $this->CheckColumn("bodyzusatz","TEXT","rechnung","DEFAULT '' NOT NULL "); - $this->CheckColumn("bodyzusatz","TEXT","lieferschein","DEFAULT '' NOT NULL "); - $this->CheckColumn("bodyzusatz","TEXT","gutschrift","DEFAULT '' NOT NULL "); - $this->CheckColumn("bodyzusatz","TEXT","bestellung","DEFAULT '' NOT NULL "); - $this->CheckColumn("bodyzusatz","TEXT","anfrage","DEFAULT '' NOT NULL "); - - $this->CheckColumn("bodyzusatz","TEXT","proformarechnung","DEFAULT '' NOT NULL "); - - $this->CheckColumn("lieferbedingung","TEXT","anfrage","DEFAULT '' NOT NULL "); - $this->CheckColumn("lieferbedingung","TEXT","angebot","DEFAULT '' NOT NULL "); - $this->CheckColumn("lieferbedingung","TEXT","auftrag","DEFAULT '' NOT NULL "); - $this->CheckColumn("lieferbedingung","TEXT","rechnung","DEFAULT '' NOT NULL "); - $this->CheckColumn("lieferbedingung","TEXT","gutschrift","DEFAULT '' NOT NULL "); - $this->CheckColumn("lieferbedingung","TEXT","lieferschein","DEFAULT '' NOT NULL "); - - $this->CheckColumn("lieferbedingung","TEXT","bestellung","DEFAULT '' NOT NULL "); - $this->CheckColumn("lieferbedingung","TEXT","adresse","DEFAULT '' NOT NULL "); - - $this->CheckColumn("titel","VARCHAR(64)","anfrage","DEFAULT '' NOT NULL "); - $this->CheckColumn("titel","VARCHAR(64)","angebot","DEFAULT '' NOT NULL "); - $this->CheckColumn("titel","VARCHAR(64)","auftrag","DEFAULT '' NOT NULL "); - $this->CheckColumn("titel","VARCHAR(64)","rechnung","DEFAULT '' NOT NULL "); - $this->CheckColumn("titel","VARCHAR(64)","gutschrift","DEFAULT '' NOT NULL "); - $this->CheckColumn("titel","VARCHAR(64)","lieferschein","DEFAULT '' NOT NULL "); - - $this->CheckColumn("titel","VARCHAR(64)","bestellung","DEFAULT '' NOT NULL "); - $this->CheckColumn("liefertitel","VARCHAR(64)","bestellung","DEFAULT '' NOT NULL "); - $this->CheckColumn("liefertitel","VARCHAR(64)","auftrag","DEFAULT '' NOT NULL "); - $this->CheckColumn("liefertitel","VARCHAR(64)","angebot","DEFAULT '' NOT NULL "); - - $this->CheckColumn("kundennummer","VARCHAR(64)","adresse","DEFAULT '' NOT NULL "); - $this->CheckColumn("kundennummer","VARCHAR(64)","auftrag","DEFAULT '' NOT NULL "); - $this->CheckColumn("kundennummer","VARCHAR(64)","angebot","DEFAULT '' NOT NULL "); - $this->CheckColumn("kundennummer","VARCHAR(64)","rechnung","DEFAULT '' NOT NULL "); - $this->CheckColumn("kundennummer","VARCHAR(64)","gutschrift","DEFAULT '' NOT NULL "); - $this->CheckColumn("kundennummer","VARCHAR(64)","lieferschein","DEFAULT '' NOT NULL "); - $this->CheckColumn("kundennummerlieferant","VARCHAR(64)","bestellung","DEFAULT '' NOT NULL "); - - $this->CheckColumn('retoure_position','INT(11)','paketdistribution','DEFAULT 0 NOT NULL'); - - $this->CheckColumn("standardlager","INT(11)","auftrag","DEFAULT '0' NOT NULL "); - $this->CheckColumn("standardlager","INT(11)","lieferschein","DEFAULT '0' NOT NULL "); - $this->CheckColumn("standardlager","INT(11)","projekt","DEFAULT '0' NOT NULL "); - $this->CheckColumn('standardlager','INT(11)','angebot','DEFAULT 0 NOT NULL '); - $this->CheckColumn("standardlagerproduktion","INT(11)","projekt","DEFAULT '0' NOT NULL "); - - $this->CheckColumn("klarna_merchantid","VARCHAR(64)","projekt","DEFAULT '' NOT NULL "); - $this->CheckColumn("klarna_sharedsecret","VARCHAR(64)","projekt","DEFAULT '' NOT NULL "); - $this->CheckColumn("nurlagerartikel","TINYINT(1)","projekt","DEFAULT '1' NOT NULL"); - $this->CheckColumn("paketmarkedrucken","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferscheinedrucken","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("lieferscheinedruckenmenge","INT(11)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("auftragdrucken","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftragdruckenmenge","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("druckennachtracking","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("exportdruckrechnungstufe1","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("exportdruckrechnungstufe1menge","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("exportdruckrechnung","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("exportdruckrechnungmenge","INT(11)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("kommissionierlistestufe1","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommissionierlistestufe1menge","INT(11)","projekt","DEFAULT '0' NOT NULL"); - $this->CheckColumn("fremdnummerscanerlauben","TINYINT(1)","projekt","DEFAULT '0' NOT NULL"); - - $this->CheckColumn('zvt100url','varchar(255)','projekt',"DEFAULT '' NOT NULL"); - $this->CheckColumn('zvt100port','varchar(5)','projekt',"DEFAULT '' NOT NULL"); - $this->CheckColumn('production_show_only_needed_storages','TINYINT(1)','projekt','DEFAULT 0 NOT NULL'); - $this->CheckColumn('produktion_extra_seiten','TINYINT(1)','projekt','DEFAULT 0 NOT NULL'); - $this->CheckColumn('kasse_button_trinkgeldeckredit','TINYINT(1)','projekt','DEFAULT 0 NOT NULL'); - $this->CheckColumn('kasse_autologout','INT(11)','projekt','DEFAULT 0 NOT NULL'); - $this->CheckColumn('kasse_autologout_abschluss','INT(11)','projekt','DEFAULT 0 NOT NULL'); - - $this->CheckColumn("standardlager","INT(11)","produktion","DEFAULT '0' NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `pseudolager` `pseudolager` VARCHAR( 255 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `artikel_onlineshops` CHANGE `pseudolager` `pseudolager` VARCHAR( 255 ) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `kontoauszuege` CHANGE `pruefsumme` `pruefsumme` VARCHAR( 255 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `emailbackup_mails` CHANGE `subject` `subject` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `emailbackup_mails` CHANGE `checksum` `checksum` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL "); - - $sqlviews = array('belege'=>"VIEW `belege` AS select `rechnung`.`id` AS `id`,`rechnung`.`adresse` AS `adresse`,`rechnung`.`datum` AS `datum`,`rechnung`.`belegnr` AS `belegnr`,`rechnung`.`status` AS `status`,`rechnung`.`land` AS `land`,'rechnung' AS `typ`,`rechnung`.`umsatz_netto` AS `umsatz_netto`,`rechnung`.`erloes_netto` AS `erloes_netto`,`rechnung`.`deckungsbeitrag` AS `deckungsbeitrag`,`rechnung`.`provision_summe` AS `provision_summe`,`rechnung`.`vertriebid` AS `vertriebid`,`rechnung`.`gruppe` AS `gruppe` from `rechnung` where (`rechnung`.`status` <> 'angelegt') - union all select `gutschrift`.`id` AS `id`,`gutschrift`.`adresse` AS `adresse`,`gutschrift`.`datum` AS `datum`,`gutschrift`.`belegnr` AS `belegnr`,`gutschrift`.`status` AS `status`,`gutschrift`.`land` AS `land`,'gutschrift' AS `typ`,(`gutschrift`.`umsatz_netto` * -(1)) AS `umsatz_netto*-1`,(`gutschrift`.`erloes_netto` * -(1)) AS `erloes_netto*-1`,(`gutschrift`.`deckungsbeitrag` * -(1)) AS `deckungsbeitrag*-1`,(`gutschrift`.`provision_summe` * -(1)) AS `provision_summe*-1`,`gutschrift`.`vertriebid` AS `vertriebid`,`gutschrift`.`gruppe` AS `gruppe` from `gutschrift` where (`gutschrift`.`status` <> 'angelegt');", - 'belegegesamt'=>"view `belegegesamt` AS - select `rechnung`.`id` AS `id`,`rechnung`.`adresse` AS `adresse`,`rechnung`.`datum` AS `datum`,`rechnung`.`belegnr` AS `belegnr`,`rechnung`.`status` AS `status`,`rechnung`.`land` AS `land`,'rechnung' AS `typ`,`rechnung`.`umsatz_netto` AS `umsatz_netto`,`rechnung`.`soll` AS `umsatz_brutto`,`rechnung`.`erloes_netto` AS `erloes_netto`,`rechnung`.`deckungsbeitrag` AS `deckungsbeitrag`,`rechnung`.`provision_summe` AS `provision_summe`,`rechnung`.`vertriebid` AS `vertriebid`,`rechnung`.`gruppe` AS `gruppe`,`rechnung`.`projekt` AS `projekt` - from `rechnung` - - union all select `gutschrift`.`id` AS `id`,`gutschrift`.`adresse` AS `adresse`,`gutschrift`.`datum` AS `datum`,`gutschrift`.`belegnr` AS `belegnr`,`gutschrift`.`status` AS `status`,`gutschrift`.`land` AS `land`,'gutschrift' AS `typ`,(`gutschrift`.`umsatz_netto` * -(1)) AS `umsatz_netto*-1`,(`gutschrift`.`soll` * -(1)) AS `umsatz_brutto*-1`,(`gutschrift`.`erloes_netto` * -(1)) AS `erloes_netto*-1`,(`gutschrift`.`deckungsbeitrag` * -(1)) AS `deckungsbeitrag*-1`,(`gutschrift`.`provision_summe` * -(1)) AS `provision_summe*-1`,`gutschrift`.`vertriebid` AS `vertriebid`,`gutschrift`.`gruppe` AS `gruppe`,`gutschrift`.`projekt` AS `projekt` - from `gutschrift` - - union all select `auftrag`.`id` AS `id`,`auftrag`.`adresse` AS `adresse`,`auftrag`.`datum` AS `datum`,`auftrag`.`belegnr` AS `belegnr`,`auftrag`.`status` AS `status`,`auftrag`.`land` AS `land`,'auftrag' AS `typ`,`auftrag`.`umsatz_netto` AS `umsatz_netto`,`auftrag`.`gesamtsumme` AS `umsatz_brutto`,`auftrag`.`erloes_netto` AS `erloes_netto`,`auftrag`.`deckungsbeitrag` AS `deckungsbeitrag`,`auftrag`.`provision_summe` AS `provision_summe`,`auftrag`.`vertriebid` AS `vertriebid`,`auftrag`.`gruppe` AS `gruppe`, `auftrag`.`projekt` AS `projekt` - from `auftrag` - - union all select `bestellung`.`id` AS `id`,`bestellung`.`adresse` AS `adresse`,`bestellung`.`datum` AS `datum`,`bestellung`.`belegnr` AS `belegnr`,`bestellung`.`status` AS `status`,`bestellung`.`land` AS `land`,'bestellung' AS `typ`,`bestellung`.`gesamtsumme` AS `umsatz_netto`,`bestellung`.`gesamtsumme` AS `umsatz_brutto`,'0' AS `erloes_netto`,'0' AS `deckungsbeitrag`,'0' AS `provision_summe`,'0' AS `vertriebid`,'0' AS `gruppe`, `bestellung`.`projekt` AS `projekt` - from `bestellung` - union all select `lieferschein`.`id` AS `id`,`lieferschein`.`adresse` AS `adresse`,`lieferschein`.`datum` AS `datum`,`lieferschein`.`belegnr` AS `belegnr`,`lieferschein`.`status` AS `status`,`lieferschein`.`land` AS `land`,'lieferschein' AS `typ`,'0' AS `umsatz_netto`,'0' AS `umsatz_brutto`,'0' AS `erloes_netto`,'0' AS `deckungsbeitrag`,'0' AS `provision_summe`,'0' AS `vertriebid`,'0' AS `gruppe`, `lieferschein`.`projekt` AS `projekt` - from `lieferschein` - union all select `angebot`.`id` AS `id`,`angebot`.`adresse` AS `adresse`,`angebot`.`datum` AS `datum`,`angebot`.`belegnr` AS `belegnr`,`angebot`.`status` AS `status`,`angebot`.`land` AS `land`,'angebot' AS `typ`,`angebot`.`umsatz_netto` AS `umsatz_netto`,`angebot`.`gesamtsumme` AS `umsatz_brutto`,'0' AS `erloes_netto`,`angebot`.deckungsbeitrag AS `deckungsbeitrag`,'0' AS `provision_summe`,`angebot`.vertriebid AS `vertriebid`,'0' AS `gruppe`, `angebot`.`projekt` AS `projekt` - from `angebot` - ", - 'belegeregs'=>"view `belegeregs` AS - select `rechnung`.`id` AS `id`,`rechnung`.`adresse` AS `adresse`,`rechnung`.`datum` AS `datum`,`rechnung`.`belegnr` AS `belegnr`,`rechnung`.`status` AS `status`,`rechnung`.`land` AS `land`,'rechnung' AS `typ`,`rechnung`.`umsatz_netto` AS `umsatz_netto`,`rechnung`.`erloes_netto` AS `erloes_netto`,`rechnung`.`deckungsbeitrag` AS `deckungsbeitrag`,`rechnung`.`provision_summe` AS `provision_summe`,`rechnung`.`vertriebid` AS `vertriebid`,`rechnung`.`gruppe` AS `gruppe`,`rechnung`.`projekt` AS `projekt` - from `rechnung` - - union all select `gutschrift`.`id` AS `id`,`gutschrift`.`adresse` AS `adresse`,`gutschrift`.`datum` AS `datum`,`gutschrift`.`belegnr` AS `belegnr`,`gutschrift`.`status` AS `status`,`gutschrift`.`land` AS `land`,'gutschrift' AS `typ`,(`gutschrift`.`umsatz_netto` * -(1)) AS `umsatz_netto*-1`,(`gutschrift`.`erloes_netto` * -(1)) AS `erloes_netto*-1`,(`gutschrift`.`deckungsbeitrag` * -(1)) AS `deckungsbeitrag*-1`,(`gutschrift`.`provision_summe` * -(1)) AS `provision_summe*-1`,`gutschrift`.`vertriebid` AS `vertriebid`,`gutschrift`.`gruppe` AS `gruppe`,`gutschrift`.`projekt` AS `projekt` - from `gutschrift`" - ); - - foreach($sqlviews as $view => $sql) - { - $this->app->DB->Query("create or replace $sql "); - if($this->app->DB->error()) - { - $this->app->DB->Query("DROP TABLE IF EXISTS `$view`"); - $this->app->DB->Query("create or replace $sql "); - if($this->app->DB->error()) - { - $this->app->DB->Query("DROP VIEW IF EXISTS `$view`"); - $this->app->DB->Query("CREATE ALGORITHM=UNDEFINED DEFINER=`".$this->app->Conf->WFdbuser."`@`".$this->app->Conf->WFdbhost."` SQL SECURITY DEFINER $sql "); - } - } - } - - $this->CheckTable('system_disk_free'); - $this->CheckColumn('disk_free_kb_start', 'INT(11)', 'system_disk_free', 'DEFAULT NULL'); - $this->CheckColumn('disk_free_kb_end', 'INT(11)','system_disk_free', 'DEFAULT NULL'); - $this->CheckColumn('db_size', 'INT(11)','system_disk_free', 'DEFAULT NULL'); - $this->CheckColumn('userdata_mb_size', 'INT(11)','system_disk_free', 'DEFAULT NULL'); - $this->CheckColumn('created_at','TIMESTAMP','system_disk_free'); - $this->CheckIndex('system_disk_free', 'created_at'); - - - $this->CheckTable("api_mapping"); - $this->CheckColumn("id","int(11)","api_mapping","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("api","INT(11)","api_mapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("uebertragung_account","INT(11)","api_mapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("tabelle","varchar(64)","api_mapping","DEFAULT '' NOT NULL"); - $this->CheckColumn("id_int","INT(11)","api_mapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("id_ext","VARCHAR(64)","api_mapping","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","api_mapping","NOT NULL DEFAULT CURRENT_TIMESTAMP"); - $this->CheckIndex("api_mapping", "uebertragung_account"); - $this->CheckIndex("api_mapping", "id_ext"); - $this->CheckTable('api_account'); - $this->CheckColumn("id","int(11)","api_account","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","varchar(64)","api_account","DEFAULT '' NOT NULL"); - $this->CheckColumn("initkey","varchar(128)","api_account","DEFAULT '' NOT NULL"); - $this->CheckColumn("importwarteschlange_name","varchar(64)","api_account","DEFAULT '' NOT NULL"); - $this->CheckColumn("event_url","varchar(128)","api_account","DEFAULT '' NOT NULL"); - $this->CheckColumn("remotedomain","varchar(128)","api_account","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","TINYINT(1)","api_account","DEFAULT '1' NOT NULL"); - $this->CheckColumn("importwarteschlange","TINYINT(1)","api_account","DEFAULT '1' NOT NULL"); - $this->CheckColumn("cleanutf8","TINYINT(1)","api_account","DEFAULT '1' NOT NULL"); - $this->CheckColumn("uebertragung_account","INT(11)","api_account","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projekt","INT(11)","api_account","DEFAULT '0' NOT NULL"); - - $this->CheckTable("api_keys"); - $this->CheckColumn("id","int(11)","api_keys","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("nonce","varchar(64)","api_keys","DEFAULT '' NOT NULL"); - $this->CheckColumn("opaque","varchar(64)","api_keys","DEFAULT '' NOT NULL"); - $this->CheckColumn("nonce_count","INT(11)","api_keys","DEFAULT '1' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","api_keys","NOT NULL DEFAULT CURRENT_TIMESTAMP"); - - $this->CheckTable('api_request_response_log'); - $this->CheckColumn('api_id','INT(11)','api_request_response_log','DEFAULT 0 NOT NULL'); - $this->CheckColumn('raw_request', 'MEDIUMTEXT','api_request_response_log'); - $this->CheckColumn('raw_response', 'MEDIUMTEXT','api_request_response_log'); - $this->CheckColumn('type', 'VARCHAR(64)','api_request_response_log', "DEFAULT '' NOT NULL"); - $this->CheckColumn('status', 'VARCHAR(64)','api_request_response_log', "DEFAULT '' NOT NULL"); - $this->CheckColumn('doctype', 'VARCHAR(64)','api_request_response_log', "DEFAULT '' NOT NULL"); - $this->CheckColumn('doctype_id', 'INT(11)','api_request_response_log', 'DEFAULT 0 NOT NULL'); - $this->CheckColumn('is_incomming', 'TINYINT(1)','api_request_response_log', 'DEFAULT 1 NOT NULL'); - $this->CheckColumn('created_at','timestamp', 'api_request_response_log', 'NOT NULL DEFAULT CURRENT_TIMESTAMP'); - $this->CheckIndex('api_request_response_log', 'api_id'); - $this->CheckIndex('api_request_response_log', 'created_at'); - - - $this->CheckTable("hook_module"); - $this->CheckColumn("id","int(11)","hook_module","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("module","varchar(64)","hook_module","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","hook_module","DEFAULT '1' NOT NULL"); - - $this->CheckTable("hook"); - $this->CheckColumn("id","int(11)","hook","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("name","varchar(64)","hook","DEFAULT '' NOT NULL"); - $this->CheckColumn('alias','varchar(64)','hook',"DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","hook","DEFAULT '1' NOT NULL"); - $this->CheckColumn("parametercount","INT(11)","hook","DEFAULT '1' NOT NULL"); - $this->CheckColumn('description','VARCHAR(1024)','hook',"DEFAULT '' NOT NULL"); - $this->CheckIndex('hook','name'); - $this->CheckIndex('hook','alias'); - - $this->CheckTable("hook_register"); - $this->CheckColumn("id","int(11)","hook_register","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("hook","INT(11)","hook_register","DEFAULT '0' NOT NULL"); - $this->CheckColumn("module","varchar(64)","hook_register","DEFAULT '' NOT NULL"); - $this->CheckColumn("function","varchar(64)","hook_register","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","hook_register","DEFAULT '1' NOT NULL"); - $this->CheckColumn("position","INT(11)","hook_register","DEFAULT '0' NOT NULL"); - $this->CheckColumn('module_parameter','INT(11)','hook_register','DEFAULT 0 NOT NULL'); - $this->CheckIndex('hook_register','hook'); - - $this->CheckTable("hook_menu"); - $this->CheckColumn("id","int(11)","hook_menu","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("module","varchar(64)","hook_menu","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","hook_menu","DEFAULT '1' NOT NULL"); - $this->CheckIndex('hook_menu','module'); - - $this->CheckTable("hook_menu_register"); - $this->CheckColumn("id","int(11)","hook_menu_register","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("hook_menu","INT(11)","hook_menu_register","DEFAULT '0' NOT NULL"); - $this->CheckColumn("module","varchar(64)","hook_menu_register","DEFAULT '' NOT NULL"); - $this->CheckColumn("funktion","varchar(64)","hook_menu_register","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","hook_menu_register","DEFAULT '1' NOT NULL"); - $this->CheckColumn("position","INT(11)","hook_menu_register","DEFAULT '0' NOT NULL"); - $this->CheckIndex('hook_menu_register','module'); - - $this->CheckTable("hook_layout"); - $this->CheckColumn("id","int(11)","hook_layout","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("name","varchar(64)","hook_layout","DEFAULT '' NOT NULL"); - $this->CheckColumn("dokumenttyp","varchar(64)","hook_layout","DEFAULT '' NOT NULL"); - $this->CheckColumn("module","varchar(64)","hook_layout","DEFAULT '' NOT NULL"); - $this->CheckColumn("funktion","varchar(64)","hook_layout","DEFAULT '' NOT NULL"); - $this->CheckColumn("typ","varchar(64)","hook_layout","DEFAULT '' NOT NULL"); - $this->CheckColumn("block","varchar(64)","hook_layout","DEFAULT '' NOT NULL"); - $this->CheckColumn("blocktyp","varchar(64)","hook_layout","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","hook_layout","DEFAULT '1' NOT NULL"); - - $this->app->DB->Delete("DELETE FROM `hook` WHERE `name` = '0'"); - $this->addAliasToHook('adresse_create', 'AfterAddressCreate'); - - $this->CheckColumn("kommentar","varchar(255)","kommissionierung","DEFAULT '' NOT NULL"); - - $this->CheckColumn("improzess","tinyint(1)","kommissionierung","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("teilprojekt","int(11)","bestellung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","produktion_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","angebot_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","auftrag_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","lieferschein_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","rechnung_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","gutschrift_position","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilprojekt","int(11)","proformarechnung_position","DEFAULT '0' NOT NULL"); - - $this->CheckTable("boxnachrichten"); - $this->CheckColumn("id","int(11)","boxnachrichten","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("user","int(11)","boxnachrichten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","boxnachrichten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("bezeichnung","varchar(255)","boxnachrichten","DEFAULT '' NOT NULL"); - $this->CheckColumn("nachricht","text","boxnachrichten","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","boxnachrichten","NOT NULL DEFAULT CURRENT_TIMESTAMP"); - $this->CheckColumn("prio","int(11)","boxnachrichten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("ablaufzeit","int(11)","boxnachrichten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("objekt","varchar(255)","boxnachrichten","DEFAULT '' NOT NULL"); - $this->CheckColumn("parameter","int(11)","boxnachrichten","DEFAULT '0' NOT NULL"); - $this->CheckColumn("beep","int(11)","boxnachrichten","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("potentiellerliefertermin","DATE","auftrag_position"); - - $this->CheckColumn("keinskonto", "tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("berechneterek", "DECIMAL(14,4)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("verwendeberechneterek", "tinyint(1)","artikel","DEFAULT '0' NOT NULL"); - $this->CheckColumn("berechneterekwaehrung", "VARCHAR(16)","artikel","DEFAULT '' NOT NULL"); - $this->CheckColumn('has_preproduced_partlist','TINYINT(1)','artikel','DEFAULT 0'); - $this->CheckColumn('preproduced_partlist','INT(11)','artikel','DEFAULT 0'); - - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","auftrag"); - $this->CheckColumn("skontoberechnet", "tinyint(1)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","auftrag_position"); - $this->CheckColumn("skontobetrag_netto_einzeln", "DECIMAL(14,4)","auftrag_position"); - $this->CheckColumn("skontobetrag_netto_gesamt", "DECIMAL(14,4)","auftrag_position"); - $this->CheckColumn("skontobetrag_brutto_einzeln", "DECIMAL(14,4)","auftrag_position"); - $this->CheckColumn("skontobetrag_brutto_gesamt", "DECIMAL(14,4)","auftrag_position"); - $this->CheckColumn("steuerbetrag", "DECIMAL(14,4)","auftrag_position"); - $this->CheckColumn("skontosperre", "tinyint(1)","auftrag_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","rechnung"); - $this->CheckColumn("skontoberechnet", "tinyint(1)","rechnung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","rechnung_position"); - $this->CheckColumn("skontobetrag_netto_einzeln", "DECIMAL(14,4)","rechnung_position"); - $this->CheckColumn("skontobetrag_netto_gesamt", "DECIMAL(14,4)","rechnung_position"); - $this->CheckColumn("skontobetrag_brutto_einzeln", "DECIMAL(14,4)","rechnung_position"); - $this->CheckColumn("skontobetrag_brutto_gesamt", "DECIMAL(14,4)","rechnung_position"); - $this->CheckColumn("steuerbetrag", "DECIMAL(14,4)","rechnung_position"); - $this->CheckColumn("skontosperre", "tinyint(1)","rechnung_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","gutschrift"); - $this->CheckColumn("skontoberechnet", "tinyint(1)","gutschrift","DEFAULT '0' NOT NULL"); - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","gutschrift_position"); - $this->CheckColumn("skontobetrag_netto_einzeln", "DECIMAL(14,4)","gutschrift_position"); - $this->CheckColumn("skontobetrag_netto_gesamt", "DECIMAL(14,4)","gutschrift_position"); - $this->CheckColumn("skontobetrag_brutto_einzeln", "DECIMAL(14,4)","gutschrift_position"); - $this->CheckColumn("skontobetrag_brutto_gesamt", "DECIMAL(14,4)","gutschrift_position"); - $this->CheckColumn("steuerbetrag", "DECIMAL(14,4)","gutschrift_position"); - $this->CheckColumn("skontosperre", "tinyint(1)","gutschrift_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","angebot"); - $this->CheckColumn("skontoberechnet", "tinyint(1)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","angebot_position"); - $this->CheckColumn("skontobetrag_netto_einzeln", "DECIMAL(14,4)","angebot_position"); - $this->CheckColumn("skontobetrag_netto_gesamt", "DECIMAL(14,4)","angebot_position"); - $this->CheckColumn("skontobetrag_brutto_einzeln", "DECIMAL(14,4)","angebot_position"); - $this->CheckColumn("skontobetrag_brutto_gesamt", "DECIMAL(14,4)","angebot_position"); - $this->CheckColumn("steuerbetrag", "DECIMAL(14,4)","angebot_position"); - $this->CheckColumn("skontosperre", "tinyint(1)","angebot_position","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("shop", "int(1)","angebot","DEFAULT '0' NOT NULL"); - $this->CheckColumn("internet", "varchar(255)","angebot","DEFAULT '' NOT NULL"); - $this->CheckColumn("transaktionsnummer", "varchar(255)","angebot","DEFAULT '' NOT NULL"); - $this->CheckColumn("packstation_inhaber", "varchar(255)", "angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("packstation_station", "varchar(255)", "angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("packstation_ident", "varchar(255)", "angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("packstation_plz", "varchar(64)", "angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("packstation_ort", "varchar(255)", "angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("shopextid","varchar(1024)","angebot","DEFAULT '' NOT NULL"); - - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","bestellung"); - $this->CheckColumn("skontoberechnet", "tinyint(1)","bestellung","DEFAULT '0' NOT NULL"); - $this->CheckColumn("skontobetrag", "DECIMAL(14,4)","bestellung_position"); - $this->CheckColumn("skontobetrag_netto_einzeln", "DECIMAL(14,4)","bestellung_position"); - $this->CheckColumn("skontobetrag_netto_gesamt", "DECIMAL(14,4)","bestellung_position"); - $this->CheckColumn("skontobetrag_brutto_einzeln", "DECIMAL(14,4)","bestellung_position"); - $this->CheckColumn("skontobetrag_brutto_gesamt", "DECIMAL(14,4)","bestellung_position"); - - $this->CheckColumn("berechnen_aus_teile", "tinyint(1)","angebot_position","DEFAULT '0'"); - $this->CheckColumn("ausblenden_im_pdf", "tinyint(1)","angebot_position","DEFAULT '0'"); - $this->CheckColumn("explodiert_parent", "int(11)","angebot_position","DEFAULT '0'"); - - $this->CheckColumn("ausblenden_im_pdf", "tinyint(1)","auftrag_position","DEFAULT '0'"); - $this->CheckColumn("ausblenden_im_pdf", "tinyint(1)","gutschrift_position","DEFAULT '0'"); - $this->CheckColumn("ausblenden_im_pdf", "tinyint(1)","rechnung_position","DEFAULT '0'"); - $this->CheckColumn("ausblenden_im_pdf", "tinyint(1)","lieferschein_position","DEFAULT '0'"); - - - $this->CheckColumn('umsatz_netto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','angebot_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_netto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','auftrag_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_netto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','gutschrift_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_netto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','rechnung_position','DEFAULT NULL'); - - $this->CheckColumn('umsatz_netto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','angebot_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_netto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','auftrag_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_netto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','gutschrift_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_netto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','rechnung_position','DEFAULT NULL'); - - $this->CheckColumn('umsatz_brutto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','angebot_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_brutto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','auftrag_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_brutto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','gutschrift_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_brutto_einzeln', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','rechnung_position','DEFAULT NULL'); - - $this->CheckColumn('umsatz_brutto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','angebot_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_brutto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','auftrag_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_brutto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','gutschrift_position','DEFAULT NULL'); - $this->CheckColumn('umsatz_brutto_gesamt', 'DECIMAL('.(10+$this->GetLagerNachkommastellen()).','.$this->GetLagerNachkommastellen().')','rechnung_position','DEFAULT NULL'); - - $this->app->erp->CheckTable('massenbearbeitung'); - $this->app->erp->CheckColumn('id', 'int(11)', 'massenbearbeitung', 'NOT NULL AUTO INCREMENT'); - $this->app->erp->CheckColumn('user_id', 'int(11)', 'massenbearbeitung', 'NOT NULL'); - $this->app->erp->CheckColumn('feld', 'varchar(255)', 'massenbearbeitung', "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn('wert', 'text', 'massenbearbeitung', "NOT NULL DEFAULT ''"); - $this->app->erp->CheckColumn('subjekt', 'varchar(255)', 'massenbearbeitung', 'NOT NULL'); - $this->app->erp->CheckColumn('objekt', 'varchar(255)', 'massenbearbeitung', 'NOT NULL'); - - $this->CheckTable("gruppen_kategorien"); - $this->CheckColumn("id","int(11)","gruppen_kategorien","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","varchar(255)","gruppen_kategorien","DEFAULT '' NOT NULL"); - $this->CheckColumn("projekt","int(11)","gruppen_kategorien","DEFAULT '0' NOT NULL"); - - $this->CheckTable("gruppenmapping"); - $this->CheckColumn("id","int(11)","gruppenmapping","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("gruppe","int(11)","gruppenmapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projekt","int(11)","gruppenmapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parameter1","varchar(255)","gruppenmapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parameter2","varchar(255)","gruppenmapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parameter3","varchar(255)","gruppenmapping","DEFAULT '0' NOT NULL"); - $this->CheckColumn("von","date","gruppenmapping","NOT NULL"); - $this->CheckColumn("bis","date","gruppenmapping","NOT NULL"); - - $this->CheckTable("provision_regeln"); - $this->CheckColumn("id","int(11)","provision_regeln","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("name","varchar(64)","provision_regeln","DEFAULT '' NOT NULL"); - $this->CheckColumn("beschreibung","text","provision_regeln","DEFAULT '' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","provision_regeln","DEFAULT '0' NOT NULL"); - $this->CheckColumn("adresse","int(11)","provision_regeln","DEFAULT '0' NOT NULL"); - $this->CheckColumn("artikel","int(11)","provision_regeln","DEFAULT '0' NOT NULL"); - $this->CheckColumn("projekt","int(11)","provision_regeln","DEFAULT '0' NOT NULL"); - $this->CheckColumn("von","date","provision_regeln","NOT NULL"); - $this->CheckColumn("bis","date","provision_regeln","NOT NULL"); - $this->CheckColumn("typ","varchar(32)","provision_regeln","DEFAULT '' NOT NULL"); - $this->CheckColumn("prio","int(11)","provision_regeln","DEFAULT '0' NOT NULL"); - $this->CheckColumn("typ","varchar(32)","provision_regeln","DEFAULT '' NOT NULL"); - $this->CheckColumn("absolut","tinyint(1)","provision_regeln","DEFAULT '0' NOT NULL"); - $this->CheckColumn("provision","decimal(10,4)","provision_regeln","DEFAULT '0' NOT NULL"); - $this->CheckColumn("belegtyp","varchar(32)","provision_regeln","DEFAULT '' NOT NULL"); - $this->CheckColumn("belegnr","int(11)","provision_regeln","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("mlmintranetgesamtestruktur","tinyint(1)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommissionskonsignationslager","int(11)","adresse","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommissionskonsignationslager","int(11)","auftrag","DEFAULT '0' NOT NULL"); - $this->CheckColumn("kommissionskonsignationslager","int(11)","lieferschein","DEFAULT '0' NOT NULL"); - - $this->CheckColumn("zollinformationen","text","adresse","DEFAULT '' NOT NULL"); - - $this->CheckTable("adresse_filter"); - $this->CheckColumn("id","int(11)","adresse_filter","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","varchar(64)","adresse_filter","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","adresse_filter","DEFAULT '1' NOT NULL"); - $this->CheckColumn("ansprechpartner","tinyint(1)","adresse_filter","DEFAULT '0' NOT NULL"); - $this->CheckColumn("user","int(11)","adresse_filter","DEFAULT '0' NOT NULL"); - - $this->CheckTable("adresse_filter_gruppen"); - $this->CheckColumn("filter","int(11)","adresse_filter_gruppen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("sort","int(11)","adresse_filter_gruppen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parent","int(11)","adresse_filter_gruppen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("isand","tinyint(1)","adresse_filter_gruppen","DEFAULT '1' NOT NULL"); - $this->CheckColumn("isnot","tinyint(1)","adresse_filter_gruppen","DEFAULT '0' NOT NULL"); - - $this->CheckTable("adresse_filter_positionen"); - $this->CheckColumn("id","int(11)","adresse_filter_positionen","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("filter","int(11)","adresse_filter_positionen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("gruppe","int(11)","adresse_filter_positionen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("typ","varchar(32)","adresse_filter_positionen","DEFAULT '' NOT NULL"); - $this->CheckColumn("typ2","varchar(32)","adresse_filter_positionen","DEFAULT '' NOT NULL"); - $this->CheckColumn("isand","tinyint(1)","adresse_filter_positionen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("isnot","tinyint(1)","adresse_filter_positionen","DEFAULT '0' NOT NULL"); - $this->CheckColumn("parameter1","varchar(64)","adresse_filter_positionen","DEFAULT '' NOT NULL"); - $this->CheckColumn("parameter2","varchar(64)","adresse_filter_positionen","DEFAULT '' NOT NULL"); - $this->CheckColumn("parameter3","varchar(64)","adresse_filter_positionen","DEFAULT '' NOT NULL"); - $this->CheckColumn("sort","int(11)","adresse_filter_positionen","DEFAULT '0' NOT NULL"); - - $this->CheckTable("gruppenrechnung_auswahl"); - $this->CheckColumn("id","int(11)","gruppenrechnung_auswahl","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("lieferschein","int(11)","gruppenrechnung_auswahl","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auftrag","int(11)","gruppenrechnung_auswahl","DEFAULT '0' NOT NULL"); - $this->CheckColumn("user","int(11)","gruppenrechnung_auswahl","DEFAULT '0' NOT NULL"); - $this->CheckColumn("auswahl","tinyint(1)","gruppenrechnung_auswahl","DEFAULT '1' NOT NULL"); - - $this->CheckTable("steuersaetze"); - $this->CheckColumn("id","int(11)","steuersaetze","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bezeichnung","varchar(64)","steuersaetze","DEFAULT '' NOT NULL"); - $this->CheckColumn("satz","decimal(5,2)","steuersaetze","DEFAULT '0' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","steuersaetze","DEFAULT '1' NOT NULL"); - $this->CheckColumn("bearbeiter","varchar(64)","steuersaetze","DEFAULT '' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","steuersaetze","NOT NULL DEFAULT CURRENT_TIMESTAMP"); - $this->CheckColumn('project_id','int(11)','steuersaetze','DEFAULT 0 NOT NULL'); - $this->CheckColumn('valid_from','date','steuersaetze','NULL DEFAULT NULL'); - $this->CheckColumn('valid_to','date','steuersaetze','NULL DEFAULT NULL'); - $this->CheckColumn('type','varchar(32)','steuersaetze',"DEFAULT '' NOT NULL"); - $this->CheckColumn('country_code','varchar(8)','steuersaetze',"DEFAULT '' NOT NULL"); - $this->CheckColumn('set_data', 'tinyint(1)', 'steuersaetze','DEFAULT 0 NOT NULL'); - - $this->CheckTable("hook_navigation"); - $this->CheckColumn("id","int(11)","hook_navigation","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("module","varchar(64)","hook_navigation","DEFAULT '' NOT NULL"); - $this->CheckColumn("action","varchar(64)","hook_navigation","DEFAULT '' NOT NULL"); - $this->CheckColumn("first","varchar(64)","hook_navigation","DEFAULT '' NOT NULL"); - $this->CheckColumn("sec","varchar(64)","hook_navigation","DEFAULT '' NOT NULL"); - $this->CheckColumn("aftersec","varchar(64)","hook_navigation","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","hook_navigation","DEFAULT '1' NOT NULL"); - $this->CheckColumn("position","INT(11)","hook_navigation","DEFAULT '0' NOT NULL"); - - $this->CheckTable("navigation_alternative"); - $this->CheckColumn("id","int(11)","navigation_alternative","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("module","varchar(64)","navigation_alternative","DEFAULT '' NOT NULL"); - $this->CheckColumn("action","varchar(64)","navigation_alternative","DEFAULT '' NOT NULL"); - $this->CheckColumn("first","varchar(64)","navigation_alternative","DEFAULT '' NOT NULL"); - $this->CheckColumn("sec","varchar(64)","navigation_alternative","DEFAULT '' NOT NULL"); - $this->CheckColumn("aktiv","tinyint(1)","navigation_alternative","DEFAULT '1' NOT NULL"); - $this->CheckColumn("prio","INT(11)","navigation_alternative","DEFAULT '0' NOT NULL"); - - $this->app->erp->RegisterNavigationAlternative('Controlling','Statistiken','statistiken','topartikel'); - $this->app->erp->RegisterNavigationAlternative('Controlling','Statistiken','statistiken','artikel'); - - $this->CheckColumn("extsoll", "decimal(10,2)", "auftrag", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("extsoll", "decimal(10,2)", "rechnung", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("teilstorno", "tinyint(1)", "rechnung", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("extsoll", "decimal(10,2)", "gutschrift", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("bundesstaat","varchar(32)","auftrag", "DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferbundesstaat","varchar(32)","auftrag", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","rechnung", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","lieferschein", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","versand", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","gutschrift", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferbundesstaat","varchar(32)","angebot", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("rechnung_bundesstaat","varchar(32)","adresse", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","bestellung", "DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferbundesstaat","varchar(32)","bestellung", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","anfrage", "DEFAULT '' NOT NULL"); - $this->CheckColumn("bundesstaat","varchar(32)","proformarechnung", "DEFAULT '' NOT NULL"); - $this->CheckColumn("lieferbundesstaat","varchar(32)","proformarechnung", "DEFAULT '' NOT NULL"); - - $this->CheckColumn("teillieferungvon","int(11)","lieferschein","DEFAULT '0' NOT NULL"); - $this->CheckColumn("teillieferungnummer","int(11)","lieferschein","DEFAULT '0' NOT NULL"); - $this->CheckColumn('kiste','int(11)','lieferschein','DEFAULT -1 NOT NULL'); - - $this->CheckColumn('kundennummer_buchhaltung','varchar(32)','auftrag', "DEFAULT '' NOT NULL"); - $this->CheckColumn('kundennummer_buchhaltung','varchar(32)','rechnung', "DEFAULT '' NOT NULL"); - $this->CheckColumn('kundennummer_buchhaltung','varchar(32)','gutschrift', "DEFAULT '' NOT NULL"); - - $this->CheckColumn('storage_country','varchar(3)','auftrag', "DEFAULT '' NOT NULL"); - $this->CheckColumn('storage_country','varchar(3)','rechnung', "DEFAULT '' NOT NULL"); - $this->CheckColumn('storage_country','varchar(3)','gutschrift', "DEFAULT '' NOT NULL"); - - $this->CheckTable("change_log"); - $this->CheckColumn("id","int(11)","change_log","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("bearbeiter","varchar(32)","change_log", "DEFAULT '' NOT NULL"); - $this->CheckColumn("module","varchar(32)","change_log", "DEFAULT '' NOT NULL"); - $this->CheckColumn("action","varchar(32)","change_log", "DEFAULT '' NOT NULL"); - $this->CheckColumn("tabelle","varchar(64)","change_log", "DEFAULT '' NOT NULL"); - $this->CheckColumn("tableid","int(11)","change_log", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("zeitstempel","timestamp","change_log","NOT NULL DEFAULT CURRENT_TIMESTAMP"); - - $this->CheckTable("change_log_field"); - $this->CheckColumn("id","int(11)","change_log_field","NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("change_log","int(11)","change_log_field", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("fieldname","varchar(64)","change_log_field", "DEFAULT '' NOT NULL"); - $this->CheckColumn("oldvalue","text","change_log_field", "DEFAULT '' NOT NULL"); - $this->CheckColumn("newvalue","text","change_log_field", "DEFAULT '' NOT NULL"); - - $this->CheckIndex("change_log", "tableid"); - $this->CheckIndex("change_log_field", "change_log"); - $this->CheckIndex('useronline','sessionid'); - $this->app->DB->Update("UPDATE auftrag a - INNER JOIN projekt p ON a.projekt = p.id - INNER JOIN adresse adr ON p.kasse_laufkundschaft = adr.id AND ifnull(adr.geloescht,0) = 0 - SET a.adresse = adr.id WHERE a.adresse = 0 - "); - - $this->app->DB->Update("UPDATE rechnung a - INNER JOIN projekt p ON a.projekt = p.id - INNER JOIN adresse adr ON p.kasse_laufkundschaft = adr.id AND ifnull(adr.geloescht,0) = 0 - SET a.adresse = adr.id WHERE a.adresse = 0 - "); - - $this->app->DB->Update("UPDATE gutschrift a - INNER JOIN projekt p ON a.projekt = p.id - INNER JOIN adresse adr ON p.kasse_laufkundschaft = adr.id AND ifnull(adr.geloescht,0) = 0 - SET a.adresse = adr.id WHERE a.adresse = 0 - "); - - $this->CheckTable('fee_reduction'); - $this->CheckColumn('doctype','VARCHAR(64)','fee_reduction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('doctype_id','INT(11)','fee_reduction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('position_id','INT(11)','fee_reduction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('amount','DECIMAL(14, 4)','fee_reduction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('price','DECIMAL(14, 4)','fee_reduction','DEFAULT 0 NOT NULL'); - $this->CheckColumn('price_type','VARCHAR(64)','fee_reduction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('currency','VARCHAR(8)','fee_reduction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('comment','VARCHAR(1024)','fee_reduction',"DEFAULT '' NOT NULL"); - $this->CheckColumn('created_at','TIMESTAMP','fee_reduction','NOT NULL DEFAULT CURRENT_TIMESTAMP'); - $this->CheckIndex('fee_reduction','doctype'); - $this->CheckIndex('fee_reduction','doctype_id'); - $this->CheckIndex('fee_reduction','price_type'); - } - if($stufe == 0 || $stufe == 8) - { - $this->CheckAlterTable("ALTER TABLE `ansprechpartner` CHANGE `adresse` `adresse` INT( 10 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `aufgabe` CHANGE `stunden` `stunden` DECIMAL( 10,2 ) "); - - $this->CheckAlterTable("ALTER TABLE `lieferschein_position` CHANGE `geliefert` `geliefert` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `geliefert_menge` `geliefert_menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `produktion_position` CHANGE `geliefert_menge` `geliefert_menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `zwischenlager` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL; "); - - $this->CheckAlterTable("ALTER TABLE `user` ALTER activ SET DEFAULT '1'"); - - $this->CheckAlterTable("ALTER TABLE `einkaufspreise` CHANGE `vpe` `vpe` VARCHAR( 64 ) NOT NULL DEFAULT '1'"); - $this->CheckAlterTable("ALTER TABLE `verkaufspreise` CHANGE `vpe` `vpe` VARCHAR( 64 ) NOT NULL DEFAULT '1'"); - - $this->CheckAlterTable("ALTER TABLE `wiki` CHANGE `content` `content` LONGTEXT NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `wiki` CHANGE `lastcontent` `lastcontent` LONGTEXT NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `mlmpunkte` `mlmpunkte` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `mlmbonuspunkte` `mlmbonuspunkte` DECIMAL( 10, 2 ) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `rechnung` CHANGE `auftrag` `auftrag` VARCHAR( 255 ) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `angebot_position` CHANGE `rabatt` `rabatt` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `rabatt` `rabatt` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `rechnung_position` CHANGE `rabatt` `rabatt` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `gutschrift_position` CHANGE `rabatt` `rabatt` DECIMAL( 10, 2 ) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `angebot_position` CHANGE `punkte` `punkte` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `angebot_position` CHANGE `bonuspunkte` `bonuspunkte` DECIMAL( 10, 2 ) NOT NULL "); - - - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `punkte` `punkte` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `bonuspunkte` `bonuspunkte` DECIMAL( 10, 2 ) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `rechnung_position` CHANGE `punkte` `punkte` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `rechnung_position` CHANGE `bonuspunkte` `bonuspunkte` DECIMAL( 10, 2 ) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `webid` `webid` VARCHAR(1024) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `arbeitspaket` CHANGE `zeit_geplant` `zeit_geplant` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `gesamtstunden_max` `gesamtstunden_max` DECIMAL( 10, 2 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `zeiterfassung` CHANGE `kostenstelle` `kostenstelle` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `sonstiges` `sonstiges` TEXT NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `absendesignatur` `absendesignatur` TEXT NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `auftrag` `auftrag` INT( 11 ) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `artikel` `artikel` INT( 11 ) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `dokumente_send` CHANGE `ansprechpartner` `ansprechpartner` VARCHAR(255) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `auftrag` CHANGE `zahlungszielskonto` `zahlungszielskonto` DECIMAL(10,2) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `angebot` CHANGE `zahlungszielskonto` `zahlungszielskonto` DECIMAL(10,2) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `rechnung` CHANGE `zahlungszielskonto` `zahlungszielskonto` DECIMAL(10,2) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `gutschrift` CHANGE `zahlungszielskonto` `zahlungszielskonto` DECIMAL(10,2) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `bestellung` CHANGE `zahlungszielskonto` `zahlungszielskonto` DECIMAL(10,2) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `verbindlichkeit` CHANGE `skonto` `skonto` DECIMAL(10,2) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `auftrag` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `angebot` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `rechnung` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `lieferschein` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `gutschrift` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `bestellung` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `reisekosten` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `anfrage` CHANGE `belegnr` `belegnr` VARCHAR(255) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `adresse` CHANGE `kundennummer` `kundennummer` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `adresse` CHANGE `lieferantennummer` `lieferantennummer` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `adresse` CHANGE `mitarbeiternummer` `mitarbeiternummer` VARCHAR(255) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `beschreibung` `beschreibung` TEXT NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE kostenstellen DROP PRIMARY KEY, ADD PRIMARY KEY ( `id` )"); - $this->CheckAlterTable("ALTER TABLE verrechnungsart DROP PRIMARY KEY, ADD PRIMARY KEY ( `id` )"); - - $this->CheckAlterTable("ALTER TABLE `angebot_position` CHANGE `angebot` `angebot` INT(11) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `gutschrift_position` CHANGE `gutschrift` `gutschrift` INT(11) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `rechnung_position` CHANGE `rechnung` `rechnung` INT(11) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `reisekosten_position` CHANGE `reisekosten` `reisekosten` INT(11) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `lager_reserviert` CHANGE `reserviertdatum` `reserviertdatum` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP"); - $this->CheckAlterTable("ALTER TABLE `shopimport_auftraege` CHANGE `warenkorb` `warenkorb` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;"); - $this->CheckAlterTable("ALTER TABLE `shopimport_auftraege` CHANGE `extid` `extid` VARCHAR(255) NOT NULL DEFAULT '';"); - - $this->CheckAlterTable("ALTER TABLE `einkaufspreise` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `verkaufspreise` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `auftrag_position` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `rechnung_position` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `angebot_position` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `gutschrift_position` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `bestellung_position` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `sammelrechnung_position` CHANGE `preis` `preis` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `reisekosten_position` CHANGE `betrag` `betrag` DECIMAL(18,8) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `produktion_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL;"); - $this->CheckAlterTable("ALTER TABLE `produktion_charge` CHANGE `ausgelagert` `ausgelagert` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0';"); - $this->CheckAlterTable("ALTER TABLE `rechnung` CHANGE `ist` `ist` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `rechnung` CHANGE `soll` `soll` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `rechnung` CHANGE `umsatz_netto` `umsatz_netto` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `rechnung` CHANGE `erloes_netto` `erloes_netto` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `gutschrift` CHANGE `ist` `ist` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `gutschrift` CHANGE `soll` `soll` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `gutschrift` CHANGE `umsatz_netto` `umsatz_netto` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `gutschrift` CHANGE `erloes_netto` `erloes_netto` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `auftrag` CHANGE `gesamtsumme` `gesamtsumme` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `auftrag` CHANGE `stornobetrag` `stornobetrag` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `produktion` CHANGE `gesamtsumme` `gesamtsumme` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `produktion` CHANGE `stornobetrag` `stornobetrag` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `bestellung` CHANGE `gesamtsumme` `gesamtsumme` DECIMAL(18,4) DEFAULT '0' NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `angebot` CHANGE `gesamtsumme` `gesamtsumme` DECIMAL(18,4) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `angebot` CHANGE `provision_summe` `provision_summe` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `angebot` CHANGE `umsatz_netto` `umsatz_netto` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `angebot` CHANGE `erloes_netto` `erloes_netto` DECIMAL(18,2) DEFAULT '0' NOT NULL"); - - $this->app->DB->Update("UPDATE zeiterfassung SET status = 'abgeschlossen' WHERE (isnull(status) || status = '') AND abrechnen = 0 || abgerechnet = 1"); - $this->app->DB->Update("UPDATE zeiterfassung SET status = 'offen' WHERE (isnull(status) || status = '') AND abrechnen = 1 AND abgerechnet = 0"); - - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `aktiv` `aktiv` VARCHAR(10) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `farbe` `farbe` VARCHAR(16) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `checkname` `checkname` VARCHAR(64) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `name` `name` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `abkuerzung` `abkuerzung` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `dpdkundennr` `dpdkundennr` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `dhlkundennr` `dhlkundennr` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `kommissionierverfahren` `kommissionierverfahren` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `abrechnungsart` `abrechnungsart` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `kasse_bon_zeile2` `kasse_bon_zeile2` TEXT NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `kasse_bon_zeile3` `kasse_bon_zeile3` TEXT NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `absendegrussformel` `absendegrussformel` TEXT NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `next_proformarechnung` `next_proformarechnung` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `next_preisanfrage` `next_preisanfrage` VARCHAR(128) NOT NULL "); - $this->CheckAlterTable("ALTER TABLE `projekt` CHANGE `next_kalkulation` `next_kalkulation` VARCHAR(128) NOT NULL "); - - $this->CheckAlterTable("ALTER TABLE `lager_reserviert` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0' "); - $this->CheckAlterTable("ALTER TABLE `lager_charge` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `lager_platz_inhalt` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `objekt_lager_platz` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0.00'"); - $this->CheckAlterTable("ALTER TABLE `lager_mindesthaltbarkeitsdatum` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `lagermindestmengen` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `rma_artikel` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `stueckliste` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `lager_bewegung` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `lager_bewegung` CHANGE `bestand` `bestand` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - - $this->CheckAlterTable("ALTER TABLE `einkaufspreise` CHANGE `ab_menge` `ab_menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '1'"); - $this->CheckAlterTable("ALTER TABLE `verkaufspreise` CHANGE `ab_menge` `ab_menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '1'"); - - $this->CheckAlterTable("ALTER TABLE `verkaufspreise` CHANGE `vpe_menge` `vpe_menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `bestellung_position` CHANGE `auswahlmenge` `auswahlmenge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NULL DEFAULT NULL"); - $this->CheckAlterTable("ALTER TABLE `bestellung_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `bestellung_position` CHANGE `geliefert` `geliefert` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `chargenverwaltung` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `projekt_inventar` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `produktionslager` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `artikel_permanenteinventur` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL DEFAULT '0'"); - $this->CheckAlterTable("ALTER TABLE `inventur_position` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - $this->CheckAlterTable("ALTER TABLE `paketdistribution` CHANGE `menge` `menge` DECIMAL(".(10+$this->GetLagerNachkommastellen()).",".$this->GetLagerNachkommastellen().") NOT NULL"); - - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `metadescription_de` `metadescription_de` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''"); - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `metadescription_en` `metadescription_en` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''"); - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `metakeywords_de` `metakeywords_de` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''"); - $this->CheckAlterTable("ALTER TABLE `artikel` CHANGE `metakeywords_en` `metakeywords_en` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''"); - - $this->FirmenDatenStandard(); - - $this->GenerateMenuHook('artikel', 1, true); - $this->GenerateMenuHook('provisionenartikel', 1, true); - - $this->CheckIndex("mitarbeiterzeiterfassung_sollstunden", "adresse"); - $this->CheckIndex("mitarbeiterzeiterfassung_sollstunden", "datum"); - $this->CheckIndex("mitarbeiterzeiterfassung_einstellungen", "erstellt"); - $this->CheckIndex("stechuhr", "datum"); - $this->CheckIndex("arbeitsfreietage", "datum"); - $this->CheckIndex('artikel_onlineshops', ['artikel','shop']); - $this->CheckIndex('shopexport_artikel',['shopid', 'artikel']); - - $this->CheckIndex('projekt','abkuerzung'); - $this->CheckIndex('projekt','kunde'); - $this->CheckIndex('zeiterfassung', 'adresse_abrechnung'); - $this->CheckIndex('zeiterfassung', 'abrechnen'); - - $this->dropIndex('adresse', ['vertrieb']); - $this->dropIndex('adresse', ['sponsor']); - $this->dropIndex('adresse', ['innendienst']); - $this->dropIndex('auftrag', ['gruppe']); - $this->dropIndex('auftrag', ['usereditid']); - $this->dropIndex('bestellung', ['usereditid']); - $this->dropIndex('angebot', ['usereditid']); - $this->dropIndex('angebot', ['gruppe']); - $this->dropIndex('gutschrift', ['usereditid']); - $this->dropIndex('gutschrift', ['gruppe']); - $this->dropIndex('lieferschein', ['usereditid']); - $this->dropIndex('lieferschein', ['vertriebid']); - $this->dropIndex('rechnung', ['usereditid']); - $this->dropIndex('rechnung', ['vertriebid']); - $this->dropIndex('rechnung', ['gruppe']); - $this->dropIndex('artikel', ['usereditid']); - $this->dropIndex('versand', ['adresse']); - } - if($stufe == 0 || $stufe == 9){ - $this->InstallModul('prozessstarter'); - if(!$this->GetKonfiguration('cronjob_fix_time')) { - $cronjobs = [ - 'lagerzahlen' => 15, - 'produktion_berechnen' => 60, - 'tickets' => 15, - 'kalender' => 15, - 'wiedervorlage' => 15, - 'artikelcache' => 30, - 'getarticles' => 15, - 'bestellungabschliessen' => 60, - 'autoversand_berechnung' => 60, - 'auftraglagercheck' => 15, - 'chat' => 15, - 'amazon' => 5, - 'shopimport' => 15, - 'doppeltenummerncheck' => 240, - 'api_uebertragungen' => 10, - 'mahnwesencheck' => 120, - 'openstreetmap' => 60, - 'pdfarchiv_app' => 15, - ]; - foreach($cronjobs as $parameter => $periode) { - $this->app->DB->Update( - sprintf( - "UPDATE `prozessstarter` - SET `periode` = '%d' WHERE `periode` < %d AND `parameter` = '%s' AND `art` IN ('periodisch','periode')", - $periode, $periode, $parameter - ) - ); - } - $this->SetKonfigurationValue('cronjob_fix_time', 1); - } - $this->app->DB->Update("UPDATE prozessstarter SET art = 'periodisch' WHERE art = 'periode'"); - $this->CheckProzessstarter("Kalender Erinnerung", "periodisch", "15", "", "cronjob", "kalender", 1); - $this->CheckProzessstarter("Shopimport unbezahlte Aufträge prüfen", "periodisch", "15", "", "cronjob", "shopimport_checkorder", 1); - $this->CheckProzessstarter("Onlineshops Hintergrundtask", "periodisch", "1", "", "cronjob", "onlineshops_tasks", 1); - $this->CheckProzessstarter("Wiedervorlage Erinnerung", "periodisch", "15", "", "cronjob", "wiedervorlage", 1); - $this->CheckProzessstarter("Zahlungseingang", "periodisch", "720", "", "cronjob", "zahlungseingang", 1); - $this->CheckProzessstarter("Chat Benachrichtigung", "periodisch", "15", "", "cronjob", "chat", 1); - $this->CheckProzessstarter("PDF Archiv", "periodisch", "15", "", "cronjob", "pdfarchiv_app", 1); - $this->CheckProzessstarter('Bereiniger', 'uhrzeit', '1440', '2017-01-01 00:00:00', 'cronjob', 'cleaner', 1); - $this->CheckProzessstarter("Autoversand Manuell", "periodisch", "5", "2017-01-01 00:00:00", "cronjob", "autoversand_manuell", 0); - //$this->CheckProzessstarter("Autoversand Plus","uhrzeit","5","2017-01-01 00:00:00","cronjob","autoversand_plus",0); - $this->CheckProzessstarter("Openstreetmap", "periodisch", "60", "2017-01-01 00:00:00", "cronjob", "openstreetmap", 0); - $this->CheckProzessstarter("Versandmails und Rückmeldung", "periodisch", "5", "2017-01-01 00:00:00", "cronjob", "versandmailsundrueckmeldung", 0); - $this->CheckProzessstarter("Mahnwesen-Check", "periodisch", "120", "2017-01-01 00:00:00", "cronjob", "mahnwesencheck", 1); - $this->CheckProzessstarter("Artikelimport", "periodisch", "15", "2017-01-01 00:00:00", "cronjob", "getarticles", 0); - $this->CheckProzessstarter('Artikel Übertragen', 'periodisch', '5', '2017-01-01 00:00:00', 'cronjob', 'artikeluebertragen', 1); - $this->CheckProzessstarter("Autoversand Berechnen", "periodisch", "60", "2017-01-01 00:00:00", "cronjob", "autoversand_berechnung", 0); - $this->CheckProzessstarter("Shop-Rückmeldungen", "periodisch", "60", "2017-01-01 00:00:00", "cronjob", "shop_rueckmeldungen", 1); - $this->CheckProzessstarter("Berichte FTP Übertragung", "periodisch", "1", "2017-01-01 00:00:00", "cronjob", "berichte_ftp_uebertragen", 0); - $this->CheckProzessstarter("Artikel Cache", "periodisch", "30", "2017-01-01 00:00:00", "cronjob", "artikelcache", 1); - $this->CheckProzessstarter("Bestellung automatisch abschliessen", "periodisch", "60", "", "cronjob", "bestellungabschliessen", 1); - $this->CheckProzessstarter("Internetmarke Produktliste aktualisieren", "periodisch", "1440", "", "cronjob", "internetmarke", 1); - - $this->CheckProzessstarter('Doppelte Nummern prüfen','periodisch','240','','cronjob','doppeltenummerncheck',1); - - $this->CheckTable("laender"); - $this->CheckColumn("id", "int(11)", "laender", "NOT NULL AUTO_INCREMENT"); - $this->CheckColumn("iso", "varchar(3)", "laender", "NOT NULL DEFAULT ''"); - $this->CheckColumn("iso3", "varchar(3)", "laender", "NOT NULL DEFAULT ''"); - $this->CheckColumn("num_code", "varchar(3)", "laender", "NOT NULL DEFAULT ''"); - $this->CheckColumn("bezeichnung_de", "varchar(255)", "laender", "NOT NULL DEFAULT ''"); - $this->CheckColumn("bezeichnung_en", "varchar(255)", "laender", "NOT NULL DEFAULT ''"); - $this->CheckColumn("eu", "tinyint(1)", "laender", "DEFAULT '0' NOT NULL"); - - $this->CheckColumn("preis", "DECIMAL(" . (10 + $this->GetLagerNachkommastellen()) . "," . $this->GetLagerNachkommastellen() . ")", "verbindlichkeit_position", "DEFAULT '0' NOT NULL"); - $this->CheckColumn("menge", "DECIMAL(" . (10 + $this->GetLagerNachkommastellen()) . "," . $this->GetLagerNachkommastellen() . ")", "verbindlichkeit_position", "DEFAULT '0' NOT NULL"); - - $this->CheckGeschaeftsbriefvorlagen('EinladungKalender', 'deutsch', 'Einladung: {BEZEICHNUNG} @ {VON}', 'Ort: {ORT}
Von: {VON}
Bis: {BIS}'); - $this->CheckGeschaeftsbriefvorlagen('Folgebestaetigung', 'deutsch', 'Folgebestätigung für offene Aufträge', 'Lieber Kunde,

- anbei übersenden wir Ihnen eine Liste mit den aktuell offenen Aufträgen (Rückstand und Aufträge mit Liefertermin):

{ARTIKELTABELLE}'); - - // mahnwesen als Geschaeftsbriefvorlage - - $mahnstufen = array('z'=>'Zahlungserinnerung','m1'=>'Mahnung1','m2'=>'Mahnung2','m3'=>'Mahnung3','i'=>'Inkasso'); - foreach($mahnstufen as $kurz=>$label) - { - $checktext = $this->GetKonfiguration("text".$kurz); - $checktext_en = $this->GetKonfiguration("text".$kurz."_en"); - if($checktext!="") { - $this->CheckGeschaeftsbriefvorlagen('Mahnwesen'.$label, 'deutsch','Buchhaltung: Ihre offene Rechnung {BELEGNR}',$checktext); - $this->SetKonfigurationValue("text".$kurz,""); - } - if($checktext_en!="") { - $this->CheckGeschaeftsbriefvorlagen('Mahnwesen'.$label, 'englisch','Account: Open Invoice {BELEGNR}',$checktext_en); - $this->SetKonfigurationValue("text".$kurz."_en",""); - } - } - - $this->CheckGeschaeftsbriefvorlagen('MahnwesenZahlungserinnerung','deutsch','Zahlungserinnerung: Ihre offene Rechnung {BELEGNR}','Sehr geehrte Damen und Herren,

-vielen Dank für Ihren Auftrag, den wir gerne für Sie ausgeführt haben.
-Leider konnten wir Ihrer Rechnung {RECHNUNG} bislang noch keinen Zahlungseingang verzeichnen.
-Kann es sein, dass der unten aufgeführte Betrag übersehen wurde?

-Falls der Betrag bereits überwiesen wurde, bitten wir Sie, dieses Schreiben als gegenstandslos anzusehen und uns bei der Zuordnung Ihrer Zahlung behilflich zu sein. Bitte senden Sie uns dazu eine E-Mail an buchhaltung@unseredomain.de.

Andernfalls freuen wir uns auf die Begleichung des offenen Forderungsbetrages in Höhe von {OFFEN} EUR bis zum {DATUM}. Bitte geben Sie im Betreff die Rechnungsnummer {RECHNUNG} an.'); - - $this->CheckGeschaeftsbriefvorlagen('MahnwesenMahnung1','deutsch','Mahnung 1: Ihre offene Rechnung {BELEGNR}','Sehr geehrte Damen und Herren,

-sicher haben Sie unsere Zahlungserinnerung übersehen.
Deshalb erhalten Sie mit diesem Schreiben nochmals eine Aufstellung der offenen Positionen.

-Sollten Sie die Zahlung noch nicht vorgenommen haben, bitten wir Sie, den Betrag in Höhe von {OFFEN} EUR bis zum {DATUM} auf unser Konto zu überweisen, um weitere Mahnschreiben und Gebühren zu vermeiden. Bitte geben Sie im Betreff die Rechnungsnummer {RECHNUNG} an.

-Wurde der offene Betrag bereits beglichen, so sehen Sie dieses Schreiben als gegenstandslos an.'); - - $this->CheckGeschaeftsbriefvorlagen('MahnwesenMahnung2','deutsch','Mahnung 2: Ihre offene Rechnung {BELEGNR}','Sehr geehrte Damen und Herren,

-unsere Rechnung vom {DATUMRECHNUNG} war am {DATUMRECHNUNGZAHLUNGSZIEL} zur Zahlung fällig.
-Trotz Mahnung und Fristsetzung wurde der Betrag von {OFFEN} EUR noch immer nicht beglichen.
-Deshalb erhalten Sie mit diesem Schreiben erneut eine Aufstellung der offenen Positionen.

-Bitte überweisen Sie den Betrag von {OFFEN} EUR bis zum {DATUM} auf unser unten genanntes Konto. Wir erlauben uns Mahngebühren in Höhe von {MAHNGEBUEHR} EUR zu berechnen. Bitte geben Sie im Betreff die Rechnungsnummer {RECHNUNG} an.

-Wurde der offene Betrag bereits beglichen, so sehen Sie dieses Schreiben als gegenstandslos an.'); - - $this->CheckGeschaeftsbriefvorlagen('MahnwesenMahnung3','deutsch','Mahnung 3: Ihre offene Rechnung {BELEGNR}','Sehr geehrte Damen und Herren,

-unsere Rechnung vom {DATUMRECHNUNG} war am {DATUMRECHNUNGZAHLUNGSZIEL} zur Zahlung fällig.
-Trotz Mahnungen und Fristsetzung wurde der Betrag von {OFFEN} EUR noch immer nicht beglichen.
-Deshalb erhalten Sie mit diesem Schreiben eine letzte Aufstellung der offenen Positionen. Bitte geben Sie im Betreff die Rechnungsnummer {RECHNUNG} an.

-Sollte der Betrag in Höhe von {OFFEN} EUR bis zum {DATUM} noch nicht auf unserem Konto eingegangen sein, werden wir das gerichtliche Mahnverfahren einleiten.

-Bitte kontaktieren Sie uns und lassen Sie uns dies vermeiden: 0123/45678'); - - $this->CheckGeschaeftsbriefvorlagen('MahnwesenInkasso','deutsch','Inkasso: Ihre offene Rechnung {BELEGNR}','Sehr geehrte Damen und Herren,

-unsere Rechnung vom {DATUMRECHNUNG} war am {DATUMRECHNUNGZAHLUNGSZIEL} zur Zahlung fällig.
-Trotz Mahnungen und Fristsetzung wurde der Betrag von {OFFEN} EUR noch immer nicht beglichen.
-Deshalb erhalten Sie mit diesem Schreiben eine letzte Aufstellung der offenen Positionen. Bitte geben Sie im Betreff die Rechnungsnummer {RECHNUNG} an.

-Sollte der Betrag in Höhe von {OFFEN} EUR bis zum {DATUM} noch nicht auf unserem Konto eingegangen sein, werden wir das gerichtliche Mahnverfahren einleiten.

-Bitte kontaktieren Sie uns und lassen Sie uns dies vermeiden: 0123/45678'); - - $checklaender = $this->app->DB->Select("SELECT COUNT(id) FROM laender"); - if($checklaender <= 0){ - $laender = $this->GetSelectLaenderliste(); - $laender_en = $this->GetSelectLaenderlisteEN(); - - $laender_eu = $this->GetUSTEU(); - - foreach ($laender as $iso => $bezeichnung) { - $bezeichnung_en = $laender_en[$iso]; - $bezeichnung = html_entity_decode($bezeichnung); - if(in_array($iso, $laender_eu)) $eu = 1;else $eu = 0; - - $bezeichnung = mysqli_real_escape_string($this->app->DB->connection,$bezeichnung); - $bezeichnung_en = mysqli_real_escape_string($this->app->DB->connection,$bezeichnung_en); - - $this->app->DB->Insert("INSERT INTO laender (id,iso,bezeichnung_de,bezeichnung_en,eu) VALUES ('','$iso','$bezeichnung','$bezeichnung_en','$eu')"); - } - } - - $checksprachen = $this->app->DB->Select("SELECT COUNT(id) FROM sprachen"); - if($checksprachen <= 0){ - $sprachen = $this->GetSelectSprachenListe(); - $sprachen_en = $this->GetSelectSprachenListeEN(); - - foreach ($sprachen as $iso => $bezeichnung) { - $bezeichnung_en = $sprachen_en[$iso]; - $bezeichnung = html_entity_decode($bezeichnung); - $this->app->DB->Insert("INSERT INTO sprachen (iso, bezeichnung_de, bezeichnung_en) VALUES ('$iso', '$bezeichnung', '$bezeichnung_en')"); - } - } - - $checkstaaten = $this->app->DB->Select("SELECT COUNT(id) FROM bundesstaaten"); - if($checkstaaten <= 0){ - $staaten = $this->GetSelectStaatenliste('DE'); - - foreach ($staaten as $iso => $bezeichnung) { - $bezeichnung = html_entity_decode($bezeichnung); - $this->app->DB->Insert("INSERT INTO bundesstaaten (land, iso, bundesstaat, aktiv) VALUES ('DE', '$iso', '$bezeichnung', 1)"); - } - - $staaten = $this->GetSelectStaatenliste('CA'); - - foreach ($staaten as $iso => $bezeichnung) { - $bezeichnung = html_entity_decode($bezeichnung); - $this->app->DB->Insert("INSERT INTO bundesstaaten (land, iso, bundesstaat, aktiv) VALUES ('CA', '$iso', '$bezeichnung', 1)"); - } - - $staaten = $this->GetSelectStaatenliste('US'); - - foreach ($staaten as $iso => $bezeichnung) { - $bezeichnung = html_entity_decode($bezeichnung); - $this->app->DB->Insert("INSERT INTO bundesstaaten (land, iso, bundesstaat, aktiv) VALUES ('US', '$iso', '$bezeichnung', 1)"); - } - - $staaten = $this->GetSelectStaatenliste('AT'); - - foreach ($staaten as $iso => $bezeichnung) { - $bezeichnung = html_entity_decode($bezeichnung); - $this->app->DB->Insert("INSERT INTO bundesstaaten (land, iso, bundesstaat, aktiv) VALUES ('AT', '$iso', '$bezeichnung', 1)"); - } - - $staaten = $this->GetSelectStaatenliste('CH'); - - foreach ($staaten as $iso => $bezeichnung) { - $bezeichnung = html_entity_decode($bezeichnung); - $this->app->DB->Insert("INSERT INTO bundesstaaten (land, iso, bundesstaat, aktiv) VALUES ('CH', '$iso', '$bezeichnung', 1)"); - } - } - $this->InstallModul('report'); - $this->InstallModul('kalender'); - $this->InstallModul('anfrage'); - } - - - if($stufe == 0 || substr((String)$stufe,0,2) === '10') { - $modules = [ - 'kommissionierlauf', - 'provisionenartikelvertreter', - 'matrixprodukt', - 'vorlage', - 'konditionen', - 'adressefilter', - 'artikelarbeitsanweisung', - 'artikelfunktionsprotokoll', - 'abschlagsrechnung', - 'multiorderpicking', - 'auftragautoversand', - 'auftragoffenepositionen', - 'auftragoffenepositionendienstleistung', - 'multilabelprint', - 'pos', - 'lager', - 'preisliste', - 'artikel_texte', - 'projektlogbuch', - 'sprachen', - 'dokumentation', - 'bundesstaaten', - 'belegpositionberechnung', - 'proformarechnung', - 'rechnungzuverbindlichkeit', - 'adresssucheerweitert', - 'iaaplus', - 'alkoholsteuerrechner', - 'retailpricetemplate', - 'documenttoproject', - 'singleshipment', - 'triggerapp', - 'supportapp', - 'dsgvo', - 'verpackungen', - 'verbindlichkeit', - 'rma_vorlagen', - 'stuecklistendetails', - 'versandarten', - 'gruppen', - 'artikel', - 'preisanfrage', - 'gefahrgut', - 'paymentslip_swiss', - 'adressabhaengigesetikett', - 'ups', - 'elo', - 'dekodinexus', - 'filelink', - 'prozess_monitor', - 'auftragsampel', - 'ticket', - 'pos_kassierer', - 'layouttemplateattachment', - 'frameagreement', - 'inventur', - 'maximumdiscount', - 'zeiterfassungvorlage', - 'serviceauftrag', - 'freearticle', - 'receiptprotocolitems', - 'itemtemplate', - 'mandatoryfields', - 'xcs', - 'gls', - 'standardpackages', - 'extendedapproval', - 'eangenerator', - 'internalsupport', - 'collectivedebitors', - 'wiki' - ]; - - $onlyInstallFromKey = 0; - if($stufe != 0 && (string)$stufe !== '10') { - $onlyInstallFromKey = (int)substr($stufe, 3); - $lastModuleUpdate = (int)$this->GetKonfiguration('moduleupdatelasttime'); - if($lastModuleUpdate < time() - 600) { - $lastModuleUpdate = time(); - $this->app->erp->SetKonfigurationValue('moduleupdatelasttime', $lastModuleUpdate); - $nextKeyIfUpgradeFail = $onlyInstallFromKey + 1; - $this->app->erp->SetKonfigurationValue('moduleupdatenextkey', $nextKeyIfUpgradeFail); - } - else { - $nextKeyIfUpgradeFail = (int)$this->GetKonfiguration('moduleupdatenextkey'); - if($nextKeyIfUpgradeFail < $onlyInstallFromKey + 1) { - $nextKeyIfUpgradeFail = $onlyInstallFromKey + 1; - } - else { - $onlyInstallFromKey = $nextKeyIfUpgradeFail - 1; - } - } - } - foreach($modules as $key => $module) { - if($onlyInstallFromKey > 0 && $key <= $onlyInstallFromKey) { - continue; - } - $this->InstallModul($module); - if($onlyInstallFromKey > 0) { - $this->app->erp->SetKonfigurationValue('moduleupdatenextkey', $onlyInstallFromKey + 1); - $onlyInstallFromKey++; - } - } - $cModules = (!empty($modules)?count($modules):0); - $actIndex = $cModules; - $apps = $this->getAppList(); - foreach($apps as $module => $app) { - if(!empty($app['install'])) { - $actIndex++; - if($onlyInstallFromKey > 0 && $actIndex <= $onlyInstallFromKey) { - continue; - } - $this->InstallModul($module); - if($onlyInstallFromKey > 0) { - $this->app->erp->SetKonfigurationValue('moduleupdatenextkey', $onlyInstallFromKey + 1); - $onlyInstallFromKey++; - } - } - } - if($onlyInstallFromKey > 0) { - $this->app->erp->SetKonfigurationValue('moduleupdatelasttime', ''); - $this->app->erp->SetKonfigurationValue('moduleupdatenextkey', ''); - return 11; - } - } - - if($stufe == 0 || $stufe == 11) - { - $modulesToCrons = [ - 'pipedrive' => ['pipedrive_process'], - 'hubspot' => [ - 'hubspot_process', - 'hubspot_pull_contacts', - 'hubspot_pull_deals', - ], - 'amainvoice' => ['amainvoice'], - 'batches' => ['batches'], - - ]; - foreach($modulesToCrons as $module => $cronjobs) { - if($this->ModulVorhanden($module, true)){ - continue; - } - $this->app->DB->Update( - sprintf( - "UPDATE `prozessstarter` SET `aktiv` = 0 WHERE `parameter` IN ('%s')", - implode("','", $cronjobs) - ) - ); - } - - $this->CheckIndex('artikel', 'variante_von'); - $this->CheckIndex('userkonfiguration', 'user'); - $this->CheckIndex('userkonfiguration', 'name'); - $this->CheckIndex('adresse_rolle', 'adresse'); - $this->CheckIndex('adresse_kontakte', 'adresse'); - $this->CheckIndex('adresse_kontakhistorie', 'adresse'); - $this->CheckIndex('adresse_accounts', 'adresse'); - - $this->CheckIndex('emailbackup_mails','webmail'); - $this->CheckIndex('emailbackup_mails','gelesen'); - $this->CheckIndex('emailbackup_mails','spam'); - $this->CheckIndex('emailbackup_mails','geloescht'); - $this->CheckIndex('emailbackup_mails','antworten'); - $this->CheckIndex('emailbackup_mails','warteschlange'); - $this->CheckIndex('emailbackup_mails','adresse'); - $this->CheckIndex('emailbackup_mails','checksum'); - - $this->CheckIndex('kalender_event','adresse'); - - $this->CheckIndex('api_mapping', 'api'); - $this->CheckIndex('api_request', 'uebertragung_account'); - - $this->CheckIndex('abrechnungsartikel', ['adresse','artikel']); - - $this->CheckIndex('drucker_spooler', 'drucker'); - - $this->CheckIndex('dokumente', 'adresse_to'); - $this->CheckIndex('wiedervorlage', 'adresse'); - $this->CheckIndex('wiedervorlage', 'adresse_mitarbeiter'); - $this->CheckIndex('verkaufspreise', 'artikel'); - $this->CheckIndex('einkaufspreise', 'artikel'); - $this->CheckIndex('verkaufspreise', 'kundenartikelnummer'); - $this->CheckIndex('einkaufspreise', 'bestellnummer'); - - $this->CheckIndex('stueckliste', 'stuecklistevonartikel'); - $this->CheckIndex('adresse_filter_positionen', 'filter'); - $this->CheckIndex('adresse_filter_positionen', 'gruppe'); - $this->CheckIndex('adresse_filter_gruppen', 'filter'); - - $this->CheckIndex('angebot_position', 'angebot'); - $this->CheckIndex('auftrag_position', 'auftrag'); - $this->CheckIndex('auftrag_position', 'explodiert_parent'); - $this->CheckIndex('rechnung_position', 'rechnung'); - $this->CheckIndex('gutschrift_position', 'gutschrift'); - $this->CheckIndex('anfrage_position', 'anfrage'); - $this->CheckIndex('bestellung_position', 'bestellung'); - $this->CheckIndex('lieferschein_position', 'lieferschein'); - $this->CheckIndex('lieferschein_position', 'auftrag_position_id'); - $this->CheckIndex('rechnung_position', 'auftrag_position_id'); - - $this->CheckIndex('preisanfrage_position', 'preisanfrage'); - $this->CheckIndex('layoutvorlagen_positionen','layoutvorlage'); - $this->CheckIndex('proformarechnung_position','proformarechnung'); - - $this->CheckIndex('datei_version', 'datei'); - $this->CheckIndex('datei_stichwoerter', 'datei'); - $this->CheckIndex('datei_stichwoerter', 'parameter'); - $this->CheckIndex('kontoauszuege', 'konto'); - $this->CheckIndex('kontoauszuege', 'parent'); - $this->CheckIndex('kontoauszuege', 'gegenkonto'); - $this->CheckIndex('konten', 'projekt'); - - $this->CheckIndex('lager_platz', 'lager'); - $this->CheckIndex('lager_platz_inhalt', 'lager_platz'); - $this->CheckIndex('lager_platz_inhalt', 'artikel'); - - $this->CheckIndex('lager_mindesthaltbarkeitsdatum', 'lager_platz'); - $this->CheckIndex('lager_mindesthaltbarkeitsdatum', 'artikel'); - - $this->CheckIndex('lager_charge', 'lager_platz'); - $this->CheckIndex('lager_charge', 'artikel'); - - $this->CheckIndex('objekt_lager_platz', 'lager_platz'); - $this->CheckIndex('objekt_lager_platz', 'parameter'); - $this->CheckIndex('objekt_lager_platz', 'artikel'); - - $this->CheckIndex('artikel_arbeitsanweisung', 'artikel'); - - $this->CheckIndex('provision_regeln', 'gruppe'); - $this->CheckIndex('provision_regeln', 'artikel'); - $this->CheckIndex('provision_regeln', 'adresse'); - $this->CheckIndex('gruppenmapping', 'gruppe'); - $this->CheckIndex('provisionenartikel_abrechnungen', 'userid'); - - $this->CheckIndex('kalender_user', 'userid'); - $this->CheckIndex('kalender_user', 'event'); - $this->CheckIndex('user', 'adresse'); - $this->CheckIndex('aufgabe', 'adresse'); - - $this->CheckIndex('auftrag_protokoll', 'auftrag'); - $this->CheckIndex('anfrage_protokoll', 'anfrage'); - $this->CheckIndex('angebot_protokoll', 'angebot'); - $this->CheckIndex('bestellung_protokoll', 'bestellung'); - $this->CheckIndex('gutschrift_protokoll', 'gutschrift'); - $this->CheckIndex('lieferschein_protokoll', 'lieferschein'); - $this->CheckIndex('rechnung_protokoll', 'rechnung'); - $this->CheckIndex('produktion_protokoll', 'produktion'); - - $this->CheckIndex('wiedervorlage_protokoll', 'wiedervorlageid'); - - $this->CheckIndex('arbeitspaket','projekt'); - - $this->CheckIndex('emailbackup_mails','webmail'); - $this->CheckIndex('emailbackup_mails','gelesen'); - $this->CheckIndex('emailbackup_mails','spam'); - $this->CheckIndex('emailbackup_mails','geloescht'); -} -if($stufe == 0 || $stufe == 12) -{ - $this->CheckIndex('artikel_permanenteinventur', 'lager_platz'); - $this->CheckIndex('artikel_permanenteinventur', 'artikel'); - $this->CheckIndex('bestellung', 'adresse'); - $this->CheckIndex('auftrag', 'adresse'); - $this->CheckIndex('auftrag', 'teillieferungvon'); - $this->CheckIndex('rechnung', 'adresse'); - $this->CheckIndex('gutschrift', 'adresse'); - $this->CheckIndex('lieferschein', 'adresse'); - $this->CheckIndex('versand', 'lieferschein'); - $this->CheckIndex('versand', 'cronjob'); - $this->CheckIndex('lieferschein', 'auftragid'); - $this->CheckIndex('lieferschein', 'keinerechnung'); - $this->CheckIndex('lieferschein', 'rechnungid'); - $this->CheckIndex('rechnung', 'auftragid'); - $this->CheckIndex('rechnung', 'lieferschein'); - $this->CheckIndex('gutschrift', 'rechnungid'); - - $this->CheckIndex('gruppenrechnung_auswahl', 'lieferschein'); - $this->CheckIndex('gruppenrechnung_auswahl', 'auftrag'); - $this->CheckIndex('gruppenrechnung_auswahl', 'user'); - - if($this->ModulVorhanden('matrixprodukt')) - { - $this->CheckIndex('matrixprodukt_eigenschaftenoptionen_artikel', 'gruppe'); - $this->CheckIndex('matrixprodukt_optionen_zu_artikel', 'option_id'); - $this->CheckIndex('matrixprodukt_optionen_zu_artikel', 'artikel'); - $this->CheckIndex('matrixprodukt_eigenschaftengruppen_artikel', 'artikel'); - } - $this->CheckIndex('sammelrechnung_position', 'lieferschein_position_id'); - $this->CheckIndex('sammelrechnung_position', 'auftrag_position_id'); - $this->CheckIndex('sammelrechnung_position', 'rechnung'); - - $this->CheckIndex('artikeleigenschaftenwerte', 'artikeleigenschaften'); - $this->CheckIndex('artikeleigenschaftenwerte', 'artikel'); - - $this->CheckIndex('artikel', 'herstellernummer'); - $this->CheckIndex('artikel', 'geloescht'); - $this->CheckIndex('kasse', 'datum'); - $this->CheckIndex('pos_tagesabschluss', 'datum'); - $this->CheckIndex('pos_tagesabschluss', 'projekt'); - $this->CheckIndex('pos_order', 'projekt'); - - $this->CheckIndex('beleg_chargesnmhd', 'doctypeid'); - $this->CheckIndex('beleg_chargesnmhd', 'pos'); - $this->CheckIndex('beleg_chargesnmhd', 'type'); - $this->CheckIndex('beleg_chargesnmhd', 'type2'); - $this->CheckIndex('beleg_zwischenpositionen', 'doctypeid'); - - $this->CheckIndex('ticket', 'schluessel'); - $this->CheckIndex('ticket', 'service'); - $this->CheckIndex('ticket', 'adresse'); - - $this->CheckIndex('ticket_nachricht', 'ticket'); - $this->CheckIndex('api_request', 'parameter1int'); - $this->CheckIndex('artikelnummer_fremdnummern','artikel'); - $this->CheckIndex('artikelnummer_fremdnummern','shopid'); - $this->CheckIndex('artikelnummer_fremdnummern','nummer'); - $this->CheckIndex('pdfarchiv','table_id'); - $this->CheckIndex('pdfarchiv','schreibschutz'); - $this->CheckIndex('lager_reserviert','objekt'); - - $this->CheckIndex('lager_reserviert','artikel'); - $this->CheckIndex('kontoauszuege_zahlungseingang','kontoauszuege'); - $this->CheckIndex('kontoauszuege_zahlungsausgang','kontoauszuege'); - $this->app->DB->Query("DELETE FROM device_jobs WHERE art = 'metratecrfid' AND zeitstempel < DATE_SUB(now(), INTERVAL 8 HOUR)"); - $this->app->DB->Query("DELETE d1 FROM device_jobs d1 LEFT JOIN device_jobs d2 ON d1.request_id = d2.id WHERE isnull(d2.id) AND d1.request_id > 0"); - - $this->CheckIndex('shopexport_getarticles','shop'); - - $this->CheckIndex('verbindlichkeit','adresse'); - $this->CheckIndex('verbindlichkeit','bestellung'); - $this->CheckIndex('verbindlichkeit','auftrag'); - $this->CheckIndex('uebersetzung','sprache'); - $this->CheckIndex('uebersetzung','label'); - $this->CheckIndex('chargen_log','doctypeid'); - $this->CheckIndex('chargen_log','doctype'); - $this->CheckIndex('mhd_log','doctypeid'); - $this->CheckIndex('mhd_log','doctype'); - - $this->CheckIndex('pinwand_user',['pinwand','user']); - $this->CheckIndex('wiki', 'name'); - $this->CheckIndex('offenevorgaenge', 'adresse'); - - $this->CheckIndex('kontoauszuege_zahlungsausgang', 'parameter'); - $this->CheckIndex('kontoauszuege_zahlungseingang', 'parameter'); - - $this->app->erp->RegisterHook('AARLGPositionen_aktion', 'auftrag', 'AuftragAARLGPositionen_aktion'); - - $this->app->DB->Update("UPDATE artikel art INNER JOIN stueckliste s ON art.id = s.stuecklistevonartikel SET art.lagerartikel = 0 WHERE art.lagerartikel = 1 AND art.juststueckliste = 1"); - $this->app->DB->Update("UPDATE artikel art LEFT JOIN stueckliste s ON art.id = s.stuecklistevonartikel SET art.juststueckliste = 0 WHERE art.lagerartikel = 1 AND art.juststueckliste = 1 AND isnull(s.id)"); - - // ab 18.3 Wiki statt parameter muss da die ID stehen - $tmpstich = $this->app->DB->SelectArr("SELECT id,parameter FROM datei_stichwoerter WHERE objekt='Wiki' AND concat('',parameter * 1) != parameter"); - $ctmpstich = !empty($tmpstich)?count($tmpstich):0; - for($tmpstichi=0;$tmpstichi < $ctmpstich;$tmpstichi++) - { - $wikiid = $this->app->DB->Select("SELECT id FROM wiki WHERE name='".$tmpstich[$tmpstichi]['parameter']."' AND name!='' LIMIT 1"); - if($wikiid > 0) - { - $this->app->DB->Update("UPDATE datei_stichwoerter SET parameter='$wikiid' WHERE id='".$tmpstich[$tmpstichi]['id']."' AND objekt='Wiki' LIMIT 1"); - } - } - - $ohneVerbindlichkeitsbelegnr = $this->app->DB->Select("SELECT COUNT(v.id) FROM verbindlichkeit v WHERE v.belegnr = '' AND status_beleg!='angelegt'"); - $anzahlverbindlichkeit = $this->app->DB->Select("SELECT COUNT(v.id) FROM verbindlichkeit v"); - if($ohneVerbindlichkeitsbelegnr > 0 && $anzahlverbindlichkeit > 0){ - $this->app->DB->Update("UPDATE verbindlichkeit v SET v.belegnr = v.id, v.status_beleg = 'freigegeben' WHERE v.belegnr = ''"); - $maxVerbindlichkeitId = $this->app->DB->Select("SELECT MAX(v.id)+1 FROM verbindlichkeit v"); - $this->app->DB->Update("UPDATE firmendaten_werte SET wert = '$maxVerbindlichkeitId' WHERE name = 'next_verbindlichkeit' LIMIT 1"); - } - - $anzahlAlternativArtikel = $this->app->DB->Select("SELECT COUNT(id) FROM parts_list_alternative"); - if($anzahlAlternativArtikel == 0){ - $stuecklistenAlternativen = $this->app->DB->SelectArr("SELECT id, alternative FROM stueckliste WHERE alternative > 0"); - if(is_array($stuecklistenAlternativen) && !empty($stuecklistenAlternativen)){ - foreach($stuecklistenAlternativen as $alternativen=>$alternativdetails) { - $this->app->DB->Insert("INSERT INTO parts_list_alternative (parts_list_id, alternative_article_id) VALUES ('".$alternativdetails['id']."', '".$alternativdetails['alternative']."')"); - } - } - } - - $this->CheckIndex('drucker_spooler','user'); - $this->CheckIndex('warteschlangen','adresse'); - $this->CheckIndex('ticket', 'warteschlange'); - $this->app->DB->Update("UPDATE ticket AS t - INNER JOIN ( - SELECT count(id) as co, ticket - FROM ticket_nachricht - GROUP BY ticket - ) AS tn ON t.schluessel = tn.ticket - SET t.nachrichten_anz = tn.co - WHERE ISNULL(t.nachrichten_anz)"); - $this->CheckIndex('shopexport_log',['shopid','typ','parameter3','parameter4']); - $this->app->DB->Delete('DELETE FROM lager_platz_inhalt WHERE artikel = 0 OR lager_platz = 0'); - $this->app->DB->Delete('DELETE FROM lager_seriennummern WHERE artikel = 0 OR (lager_platz = 0 AND zwischenlagerid = 0)'); - $this->app->DB->Delete('DELETE FROM lager_charge WHERE artikel = 0 OR (lager_platz = 0 AND zwischenlagerid = 0)'); - $this->app->DB->Delete('DELETE FROM lager_mindesthaltbarkeitsdatum WHERE artikel = 0 OR (lager_platz = 0 AND zwischenlagerid = 0)'); - - $this->app->erp->CheckIndex('rechnung', 'zahlungsstatus'); - $this->app->erp->CheckIndex('auftrag', 'versandart'); - $this->app->erp->CheckIndex('angebot', 'versandart'); - $this->app->erp->CheckIndex('lieferschein', 'versandart'); - $this->app->erp->CheckIndex('rechnung', 'versandart'); - $this->app->erp->CheckIndex('gutschrift', 'versandart'); - $this->app->erp->CheckIndex('bestellung', 'versandart'); - $this->app->erp->CheckIndex('retoure', 'versandart'); - } - if($stufe > 0 && $stufe < 12){ - return ($stufe+1); - } - if((int)$stufe === 0) { - $this->migrateIfFirstInstall(); - } -} - - // @refactor Installer Komponente function CheckFirmendaten() { @@ -14411,41 +9145,43 @@ function CheckGeschaeftsbriefvorlagen($subjekt,$sprache,$betreff,$text) } } +// START deprecated database upgrade functions + public function ensureDatabaseUpgradeProperty() { - if ($this->app->DatabaseUpgrade === null) { +/* if ($this->app->DatabaseUpgrade === null) { $this->app->DatabaseUpgrade = new DatabaseUpgrade($this->app); - } + }*/ } function CheckTable($table, $pk = 'id') { - $this->ensureDatabaseUpgradeProperty(); - $this->app->DatabaseUpgrade->CheckTable($table, $pk); +/* $this->ensureDatabaseUpgradeProperty(); + $this->app->DatabaseUpgrade->CheckTable($table, $pk);*/ } function UpdateColumn($column,$type,$table,$default="NOT NULL") { - $this->ensureDatabaseUpgradeProperty(); - $this->app->DatabaseUpgrade->UpdateColumn($column,$type,$table,$default); +/* $this->ensureDatabaseUpgradeProperty(); + $this->app->DatabaseUpgrade->UpdateColumn($column,$type,$table,$default);*/ } public function emptyTableCache() { - $this->ensureDatabaseUpgradeProperty(); - $this->app->DatabaseUpgrade->emptyTableCache(); +/* $this->ensureDatabaseUpgradeProperty(); + $this->app->DatabaseUpgrade->emptyTableCache();*/ } public function DeleteColumn($column,$table) { - $this->ensureDatabaseUpgradeProperty(); - $this->app->DatabaseUpgrade->DeleteColumn($column,$table); +/* $this->ensureDatabaseUpgradeProperty(); + $this->app->DatabaseUpgrade->DeleteColumn($column,$table);*/ } public function CheckColumn($column,$type,$table,$default="") { - $this->ensureDatabaseUpgradeProperty(); - $this->app->DatabaseUpgrade->CheckColumn($column,$type,$table,$default); +/* $this->ensureDatabaseUpgradeProperty(); + $this->app->DatabaseUpgrade->CheckColumn($column,$type,$table,$default);*/ } /** @@ -14454,16 +9190,43 @@ function CheckGeschaeftsbriefvorlagen($subjekt,$sprache,$betreff,$text) */ public function dropIndex($table, $columns) { - $this->ensureDatabaseUpgradeProperty(); - $this->app->DatabaseUpgrade->dropIndex($table, $columns); +/* $this->ensureDatabaseUpgradeProperty(); + $this->app->DatabaseUpgrade->dropIndex($table, $columns);*/ } protected function ChangeFirmendatenToMyIsam() { - $this->ensureDatabaseUpgradeProperty(); - $this->app->DatabaseUpgrade->ChangeFirmendatenToMyIsam(); +/* $this->ensureDatabaseUpgradeProperty(); + $this->app->DatabaseUpgrade->ChangeFirmendatenToMyIsam();*/ } + + public function CheckDoubleIndex($table, $indexe) + { +/* $this->ensureDatabaseUpgradeProperty(); + return $this->app->DatabaseUpgrade->CheckDoubleIndex($table,$indexe);*/ + } + + public function CheckFulltextIndex($table, $column) + { +/* $this->ensureDatabaseUpgradeProperty(); + return $this->app->DatabaseUpgrade->CheckFulltextIndex($table,$column);*/ + } + + public function CheckIndex($table, $column, $unique = false) + { +/* $this->ensureDatabaseUpgradeProperty(); + return $this->app->DatabaseUpgrade->CheckIndex($table,$column,$unique);*/ + } + + public function CheckAlterTable($sql, $force = false) + { +/* $this->ensureDatabaseUpgradeProperty(); + return $this->app->DatabaseUpgrade->CheckAlterTable($sql,$force);*/ + } + +// END deprecated database upgrade functions + // @refactor Welcome Modul function CheckFav($bezeichnung, $url) { @@ -14610,30 +9373,6 @@ function CheckGeschaeftsbriefvorlagen($subjekt,$sprache,$betreff,$text) return $this->app->DB->GetInsertID(); } - public function CheckDoubleIndex($table, $indexe) - { - $this->ensureDatabaseUpgradeProperty(); - return $this->app->DatabaseUpgrade->CheckDoubleIndex($table,$indexe); - } - - public function CheckFulltextIndex($table, $column) - { - $this->ensureDatabaseUpgradeProperty(); - return $this->app->DatabaseUpgrade->CheckFulltextIndex($table,$column); - } - - public function CheckIndex($table, $column, $unique = false) - { - $this->ensureDatabaseUpgradeProperty(); - return $this->app->DatabaseUpgrade->CheckIndex($table,$column,$unique); - } - - public function CheckAlterTable($sql, $force = false) - { - $this->ensureDatabaseUpgradeProperty(); - return $this->app->DatabaseUpgrade->CheckAlterTable($sql,$force); - } - // @refactor Firmendaten Modul function ArtikelFreifeldBezeichnungen() { @@ -32422,7 +27161,7 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p $bcc3 = $this->Firmendaten('bcc3'); if($bcc3!="") { - $bccRecipients[] = new EmailRecipient($bcc3[0], $bcc3[1]); + $bccRecipients[] = new EmailRecipient($bcc3, $bcc3); } // This will build the mail with phpmailer 6 and send it out @@ -32545,8 +27284,13 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p function BeschriftungSprache($sprache='') { - $sprache = strtolower(trim($sprache)); - $this->beschriftung_sprache='deutsch'; + + if ($sprache === '') { + $this->beschriftung_sprache='deutsch'; + } else { + $this->beschriftung_sprache=strtolower(trim($sprache)); + } + } function BeschriftungStandardwerte($field,$sprache="deutsch",$getvars=false) @@ -32738,10 +27482,10 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p function getUebersetzung($field, $sprache, $id = true) { - $sprach = strtolower($sprache); + $sprache = strtolower($sprache); if(empty($this->uebersetzungId)) { - $arr = $this->app->DB->SelectArr('SELECT id, label, sprache, beschriftung + $arr = $this->app->DB->SelectArr('SELECT id, label, sprache, beschriftung, original FROM uebersetzung WHERE sprache <> "" AND label <> ""'); if(!empty($arr)) @@ -32749,7 +27493,12 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p foreach($arr as $row) { $this->uebersetzungId[$row['label']][strtolower($row['sprache'])] = $row['id']; - $this->uebersetzungBeschriftung[$row['label']][strtolower($row['sprache'])] = $row['beschriftung']; + + if ($row['beschriftung'] != '') { + $this->uebersetzungBeschriftung[$row['label']][strtolower($row['sprache'])] = $row['beschriftung']; + } else { + $this->uebersetzungBeschriftung[$row['label']][strtolower($row['sprache'])] = $row['original']; + } } } } @@ -32769,13 +27518,14 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p function Beschriftung($field,$sprache='') { - if($sprache!='') { + + if($sprache!='') { $this->BeschriftungSprache($sprache); } if($this->beschriftung_sprache==''){ $this->beschriftung_sprache = 'deutsch'; - } + } // wenn feld mit artikel_freifeld beginnt dann freifeld draus machen //$field = str_replace('artikel_freifeld','freifeld',$field); @@ -32809,9 +27559,7 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p { return $wert; } - //1. deutsches wort als standard - $wert = $this->BeschriftungDeutschesWort($field); - return $wert; + return $field; // Not found! } @@ -40812,7 +35560,7 @@ function Firmendaten($field,$projekt="") } $orderBy = ''; if($projekt > 0) { - $orderBy = sprintf(' ORDER BY %d DESC ', (int)$projekt); + $orderBy = ' ORDER BY projekt DESC'; } return (int)$this->app->DB->Select( sprintf( @@ -41371,7 +36119,7 @@ function Firmendaten($field,$projekt="") $tatsaechlicheslieferdatum = $orderRow['tatsaechlicheslieferdatum']; $projekt = $orderRow['projekt']; $differenztage = $this->Projektdaten($projekt,'differenz_auslieferung_tage'); - if($differenztage<0) { + if($differenztage<0 || empty($differenztage)) { $differenztage=2; } $lieferdatum = $orderRow['lieferdatum']; diff --git a/www/lib/dokumente/class.angebot.php b/www/lib/dokumente/class.angebot.php index aaddc3cf..abb92ce7 100644 --- a/www/lib/dokumente/class.angebot.php +++ b/www/lib/dokumente/class.angebot.php @@ -1,554 +1,554 @@ -app=$app; - //parent::Briefpapier(); - $this->doctype="angebot"; - $this->doctypeOrig="Angebot"; - parent::__construct($this->app,$projekt); - } - - function GetAngebot($id) - { - $this->doctypeid = $id; - - if($this->app->erp->Firmendaten("steuerspalteausblenden")=="1") - { - // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden - $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); - if(count($check)>1)$this->ust_spalteausblende=false; - else $this->ust_spalteausblende=true; - } - - $briefpapier_bearbeiter_ausblenden = $this->app->erp->Firmendaten('briefpapier_bearbeiter_ausblenden'); - $briefpapier_vertrieb_ausblenden = $this->app->erp->Firmendaten('briefpapier_vertrieb_ausblenden'); - //$this->setRecipientDB($adresse); - $this->setRecipientLieferadresse($id,"angebot"); - $email = ''; - $telefon = ''; - $data = $this->app->DB->SelectRow("SELECT adresse, kundennummer, sprache, ustid, ust_befreit, keinsteuersatz, land, - anfrage, vertrieb, bearbeiter, DATE_FORMAT(datum,'%d.%m.%Y') AS datum, - DATE_FORMAT(gueltigbis,'%d.%m.%Y') AS gueltigbis, belegnr, freitext, typ, zahlungsweise, - abweichendebezeichnung AS angebotersatz, zahlungszieltage, zahlungszieltageskonto, - zahlungszielskonto, projekt, waehrung, bodyzusatz, ohne_briefpapier,DATE_FORMAT(datum,'%Y%m%d') as datum2 - FROM angebot WHERE id='$id' LIMIT 1"); - - extract($data,EXTR_OVERWRITE); - $adresse = $data['adresse']; - $kundennummer = $data['kundennummer']; - $sprache = $data['sprache']; - $ustid = $data['ustid']; - $ust_befreit = $data['ust_befreit']; - $keinsteuersatz = $data['keinsteuersatz']; - $land = $data['land']; - - $anfrage = $data['anfrage']; - $vertrieb = $data['vertrieb']; - $bearbeiter = $data['bearbeiter']; - $freitext = $data['freitext']; - $gueltigbis = $data['gueltigbis']; - $datum = $data['datum']; - $belegnr = $data['belegnr']; - $typ = $data['typ']; - $zahlungsweise = $data['zahlungsweise']; - $angebotersatz = $data['angebotersatz']; - $zahlungszieltage = $data['zahlungszieltage']; - $zahlungszieltageskonto = $data['zahlungszieltageskonto']; - - $zahlungszielskonto = $data['zahlungszielskonto']; - $projekt = $data['projekt']; - $waehrung = $data['waehrung']; - $ohne_briefpapier = $data['ohne_briefpapier']; - $bodyzusatz = $data['bodyzusatz']; - $datum2 = $data['datum2']; - - if(empty($kundennummer)) { - $kundennummer = $this->app->DB->Select("SELECT kundennummer FROM adresse WHERE id='$adresse' LIMIT 1"); - } - if(empty($sprache)) { - $sprache = $this->app->DB->Select("SELECT sprache FROM adresse WHERE id='$adresse' LIMIT 1"); - } - - $this->app->erp->BeschriftungSprache($sprache); - if($waehrung) { - $this->waehrung = $waehrung; - } - $this->projekt = $projekt; - $projektabkuerzung = $this->app->DB->Select(sprintf('SELECT abkuerzung FROM projekt WHERE id = %d', $projekt)); - $this->sprache = $sprache; - $this->anrede = $typ; - - $zahlungsweise = $this->app->erp->ReadyForPDF($zahlungsweise); - $bearbeiter = $this->app->erp->ReadyForPDF($bearbeiter); - $vertrieb = $this->app->erp->ReadyForPDF($vertrieb); - $anfrage = $this->app->erp->ReadyForPDF($anfrage); - - if($ohne_briefpapier=="1") - { - $this->logofile = ""; - $this->briefpapier=""; - $this->briefpapier2=""; - } - - $zahlungstext = $this->app->erp->Zahlungsweisetext("angebot", $id); -/* - - //$zahlungstext = "\nZahlungsweise: $zahlungsweise "; - if($zahlungsweise=="rechnung") - { - if($zahlungszieltage >0) $zahlungstext = $this->app->erp->Beschriftung("dokument_zahlung_rechnung_anab"); - else { - $zahlungstext = $this->app->erp->Beschriftung("zahlung_rechnung_sofort_de"); - } - - - if($this->app->erp->Firmendaten("eigener_skontotext")=="1" && $zahlungszielskonto>0) - { - $skontotext = $this->app->erp->Beschriftung("eigener_skontotext_anab"); - $skontotext = str_replace('{ZAHLUNGSZIELSKONTO}',number_format($zahlungszielskonto,2,',','.'),$skontotext); - $skontotext = str_replace('{ZAHLUNGSZIELTAGESKONTO}',$zahlungszieltageskonto,$skontotext); - $zahlungstext .= "\n".$skontotext; - } else { - if($zahlungszielskonto>0) $zahlungstext .= "\n".$this->app->erp->Beschriftung("dokument_skonto")." ".number_format($zahlungszielskonto,2,',','.')."% ".$this->app->erp->Beschriftung("dokument_innerhalb")." $zahlungszieltageskonto ".$this->app->erp->Beschriftung("dokument_tagen"); - } - - } else { - $zahlungstext = $this->app->DB->Select("SELECT freitext FROM zahlungsweisen WHERE type='".$zahlungsweise."' AND aktiv='1' AND type!='' LIMIT 1"); - if($zahlungstext=="") - $zahlungstext = $this->app->erp->Beschriftung("zahlung_".$zahlungsweise."_de"); - if($zahlungstext=="") - $zahlungstext = $this->app->erp->Beschriftung("dokument_zahlung_per")." ".ucfirst($zahlungsweise); - } -*/ - - $zahlungsweise = ucfirst($zahlungsweise); - - if($belegnr=="" || $belegnr=="0") $belegnr = "- ".$this->app->erp->Beschriftung("dokument_entwurf"); - - if($angebotersatz) - $this->doctypeOrig=($this->app->erp->Beschriftung("bezeichnungangebotersatz")?$this->app->erp->Beschriftung("bezeichnungangebotersatz"):$this->app->erp->Beschriftung("dokument_angebot"))." $belegnr"; - else - $this->doctypeOrig=$this->app->erp->Beschriftung("dokument_angebot")." $belegnr"; - - - $this->zusatzfooter = " (AN$belegnr)"; - - if($angebot=="") $angebot = "-"; - if($kundennummer=="") $kundennummer= "-"; - - $bearbeiteremail = $this->app->DB->Select("SELECT b.email FROM angebot a LEFT JOIN adresse b ON b.id=a.bearbeiterid WHERE a.id='$id' LIMIT 1"); - $bearbeitertelefon = $this->app->DB->Select("SELECT b.telefon FROM angebot a LEFT JOIN adresse b ON b.id=a.bearbeiterid WHERE a.id='$id' LIMIT 1"); - - /** @var \Xentral\Modules\Company\Service\DocumentCustomizationService $service */ - $service = $this->app->Container->get('DocumentCustomizationService'); - if($block = $service->findActiveBlock('corr', 'offer', $projekt)) { - $sCD = $service->parseBlockAsArray($this->getLanguageCodeFrom($this->sprache),'corr', 'offer',[ - 'ANGEBOTSNUMMER' => $belegnr, - 'DATUM' => $datum, - 'KUNDENNUMMER' => $kundennummer, - 'BEARBEITER' => $bearbeiter, - 'BEARBEITEREMAIL' => $bearbeiteremail, - 'BEARBEITERTELEFON' => $bearbeitertelefon, - 'VERTRIEB' => $vertrieb, - 'PROJEKT' => $projektabkuerzung, - 'ANFRAGENUMMER' => $anfrage, - 'EMAIL' => $email, - 'TELEFON' => $telefon - ], $projekt); - - if(!empty($block['alignment'])) { - $this->boxalignmentleft = $block['alignment'][0]; - $this->boxalignmentright = $block['alignment'][1]; - } - - /*$elements =explode("\n", str_replace("\r",'', $this->app->erp->Firmendaten('document_settings_angebot_elements'))); - $previewArr = [ - 'DATUM' => 'datum', - 'BEARBEITER' => 'bearbeiter', - 'VERTRIEB' => 'vertrieb', - 'EMAIL' => 'email', - 'TELEFON' => 'telefon', - 'ANGEBOTSNUMMER' => 'belegnr', - 'KUNDENNUMMER' => 'kundennummer', - 'PROJEKT' => 'projektabkuerzung' - ]; - foreach($elements as $key => $el) { - $el = trim($el); - $elements[$key] = $el; - foreach($previewArr as $prevKey => $preVal) { - if(strpos($el, '{'.$prevKey.'}') !== false) { - if(empty($$preVal)) { - - unset($elements[$key]); - break; - } - $elements[$key] = trim(str_replace('{'.$prevKey.'}', $$preVal, $el)); - - break; - } - } - } - $elements = explode("\n", $this->app->erp->ParseIfVars(implode("\n", $elements))); - foreach($elements as $key => $el) { - if(!empty($elements[$key])){ - $row = explode('|', $elements[$key], 2); - $sCD[trim(rtrim(trim($row[0]),':'))] = !empty($row[1]) ? $row[1] : ''; - } - }*/ - - if(!empty($sCD)) { - switch($block['fontstyle']) { - case 'f': - $this->setBoldCorrDetails($sCD); - break; - case 'i': - $this->setItalicCorrDetails($sCD); - break; - case 'fi': - $this->setItalicBoldCorrDetails($sCD); - break; - default: - $this->setCorrDetails($sCD, true); - break; - } - } - } - else{ - if($briefpapier_bearbeiter_ausblenden || $briefpapier_vertrieb_ausblenden){ - $sCD = array($this->app->erp->Beschriftung("dokument_angebot_anfrage") => $anfrage, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("dokument_datum") => $datum); - if(!$briefpapier_bearbeiter_ausblenden){ - if($bearbeiter) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")] = $bearbeiter; - }elseif(!$briefpapier_vertrieb_ausblenden){ - if($vertrieb) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")] = $vertrieb; - } - $this->setCorrDetails($sCD); - //$this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_angebot_anfrage")=>$anfrage,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("dokument_datum")=>$datum)); - }else{ - if($vertrieb == $bearbeiter){ - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_angebot_anfrage") => $anfrage, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter)); - }else{ - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_angebot_anfrage") => $anfrage, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter, $this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb") => $vertrieb)); - } - } - } - - if($keinsteuersatz!="1") - { - if($ust_befreit==2)//$this->app->erp->Export($land)) - $steuer = $this->app->erp->Beschriftung("export_lieferung_vermerk"); - else { - if($ust_befreit==1 && $ustid!="")//$this->app->erp->IstEU($land)) - $steuer = $this->app->erp->Beschriftung("eu_lieferung_vermerk"); - } - $steuer = str_replace('{USTID}',$ustid,$steuer); - $steuer = str_replace('{LAND}',$land,$steuer); - } - - $body=$this->app->erp->Beschriftung("angebot_header"); - if($bodyzusatz!="") $body=$body."\r\n".$bodyzusatz; - - - if($this->app->erp->Firmendaten("footer_reihenfolge_angebot_aktivieren")=="1") - { - $footervorlage = $this->app->erp->Firmendaten("footer_reihenfolge_angebot"); - if($footervorlage=="") - $footervorlage = "{FOOTERFREITEXT}\r\n{FOOTERTEXTVORLAGEANGEBOT}\r\n{FOOTERSTEUER}\r\n{FOOTERZAHLUNGSWEISETEXT}"; - $footervorlage = str_replace('{FOOTERFREITEXT}',$freitext,$footervorlage); - $footervorlage = str_replace('{FOOTERTEXTVORLAGEANGEBOT}',$this->app->erp->Beschriftung("angebot_footer"),$footervorlage); - $footervorlage = str_replace('{FOOTERSTEUER}',$steuer,$footervorlage); - $footervorlage = str_replace('{FOOTERZAHLUNGSWEISETEXT}',$zahlungstext,$footervorlage); - $footervorlage = $this->app->erp->ParseUserVars("angebot",$id,$footervorlage); - $footer = $footervorlage; - } else { - $footer = "$freitext\r\n".$this->app->erp->ParseUserVars("angebot",$id,$this->app->erp->Beschriftung("angebot_footer")."\r\n$steuer\r\n$zahlungstext"); - } - - - $body = $this->app->erp->ParseUserVars("angebot",$id,$body); - $this->setTextDetails(array( - "body"=>$body, - "footer"=>$footer)); - - $artikel = $this->app->DB->SelectArr("SELECT * FROM angebot_position WHERE angebot='$id' ORDER By sort"); - if(!$this->app->erp->AngebotMitUmsatzeuer($id)) $this->ust_befreit=true; - - $summe_rabatt = $this->app->DB->Select("SELECT SUM(rabatt) FROM angebot_position WHERE angebot='$id'"); - if($summe_rabatt <> 0) $this->rabatt=1; - - if($this->app->erp->Firmendaten("modul_verband")=="1") $this->rabatt=1; - - $summe = 0; - $steuersatzV = $this->app->erp->GetSteuersatzNormal(false,$id,"angebot"); - $steuersatzR = $this->app->erp->GetSteuersatzErmaessigt(false,$id,"angebot"); - $gesamtsteuern = 0; - $mitumsatzsteuer = $this->app->erp->AngebotMitUmsatzeuer($id); - //$waehrung = $this->app->DB->Select("SELECT waehrung FROM angebot_position WHERE angebot='$id' LIMIT 1"); - $berechnen_aus_teile = false; - - foreach($artikel as $key=>$value) - { - if($value['explodiert_parent']) - { - $explodiert[$value['explodiert_parent']] = true; - } - } - $belege_subpositionenstuecklisten = $this->app->erp->Firmendaten('belege_subpositionenstuecklisten'); - $belege_stuecklisteneinrueckenmm = $this->app->erp->Firmendaten('belege_stuecklisteneinrueckenmm'); - //$positionenkaufmaenischrunden = $this->app->erp->Firmendaten('positionenkaufmaenischrunden'); - $positionenkaufmaenischrunden = $this->app->erp->Projektdaten($projekt,"preisberechnung"); - $viernachkommastellen_belege = $this->app->erp->Firmendaten('viernachkommastellen_belege'); - foreach($artikel as $key=>$value) - { - // sichtbare positionen - $checksichtbar = $this->app->DB->Select("SELECT COUNT(id)-SUM(ausblenden_im_pdf) FROM angebot_position WHERE explodiert_parent='".$value['id']."'"); - if(isset($explodiert) && $explodiert[$value['id']] && $checksichtbar > 0) $value['bezeichnung'] = $value['bezeichnung']." ".$this->app->erp->Beschriftung("dokument_stueckliste"); - if($value['explodiert_parent'] > 0) { - if($value['preis'] == 0){ - $value['preis'] = "-"; $value['umsatzsteuer']="hidden"; - } - if(!$belege_subpositionenstuecklisten && !$belege_stuecklisteneinrueckenmm)$value['bezeichnung'] = "-".$value['bezeichnung']; - //$value[beschreibung] .= $value[beschreibung]." (Bestandteil von Stückliste)"; - } - - $ohne_artikeltext = $this->app->DB->Select("SELECT ohne_artikeltext FROM ".$this->table." WHERE id='".$this->id."' LIMIT 1"); - if($ohne_artikeltext=="1") $value['beschreibung']=""; - - - if($value['explodiert_parent'] > 0) - { - if(isset($lvl) && isset($lvl[$value['explodiert_parent']])) - { - $value['lvl'] = $lvl[$value['explodiert_parent']] + 1; - }else{ - $value['lvl'] = 1; - } - $lvl[$value['id']] = $value['lvl']; - } else - { - $lvl[$value['id']] = 0; - } - - if($value['umsatzsteuer'] != "ermaessigt") $value['umsatzsteuer'] = "normal"; - $tmpsteuersatz = null; - $tmpsteuertext = null; - $this->app->erp->GetSteuerPosition('angebot', $value['id'],$tmpsteuersatz, $tmpsteuertext); - if(is_null($value['steuersatz']) || $value['steuersatz'] < 0) - { - if($value['umsatzsteuer'] == "ermaessigt") - { - $value['steuersatz'] = $steuersatzR; - }else{ - $value['steuersatz'] = $steuersatzV; - } - if(!is_null($tmpsteuersatz))$value['steuersatz'] = $tmpsteuersatz; - } - if($tmpsteuertext && !$value['steuertext'])$value['steuertext'] = $tmpsteuertext; - if(!$mitumsatzsteuer)$value['steuersatz'] = 0; - // Herstellernummer von Artikel - $value['herstellernummer'] = $this->app->DB->Select("SELECT herstellernummer FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - $value['hersteller'] = $this->app->DB->Select("SELECT hersteller FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - - $is_angebot_mit_bild=0; - if($is_angebot_mit_bild) { - $image_tmp = $this->app->erp->GetArtikelStandardbild($value['artikel']); - $value['image'] = $image_tmp['image']; - $value['image_type'] = $image_tmp['extenstion']; - } - - if($value['optional']=="1") $value['bezeichnung'] = $this->app->erp->Beschriftung("dokument_optional").$value['bezeichnung']; - - - if(!$this->app->erp->Export($land)) - { - $value['zolltarifnummer']=""; - $value['herkunftsland']=""; - } - - $value = $this->CheckPosition($value,"angebot",$this->doctypeid,$value['id']); - - $value['menge'] = floatval($value['menge']); - if(!$value['explodiert_parent']) - { - if($value['berechnen_aus_teile']) - { - $berechnen_aus_teile = true; - }else{ - $berechnen_aus_teile = false; - } - } - $value['nicht_einrechnen'] = false; - if($value['optional']!="1"){ - if($value['explodiert_parent'] != 0 && $berechnen_aus_teile) - { - $value['ohnepreis'] = 1; - $value['nicht_einrechnen'] = true; - $value['umsatzsteuer'] = 'hidden'; - } - } - - if($value['textalternativpreis']!="") - { - $value['preis']=$value['textalternativpreis']; - $value['ohnepreis'] = 2; - $value['nicht_einrechnen'] = true; - $value['umsatzsteuer'] = 'hidden'; - $value['menge']=""; - } - - if(!$value['ausblenden_im_pdf'])$this->addItem(array( - 'belegposition'=>$value['id'], - 'currency'=>$value['waehrung'],'lvl'=>$value['lvl'], - 'amount'=>$value['menge'], - 'price'=>$value['preis'], - 'tax'=>$value['umsatzsteuer'], - 'steuersatz'=>$value['steuersatz'], - 'itemno'=>$value['nummer'], - 'artikel'=>$value['artikel'], - 'desc'=>$value['beschreibung'], - 'optional'=>$value['optional'],'nicht_einrechnen'=>$value['nicht_einrechnen'], - 'ohnepreis'=>$value['ohnepreis'], - 'unit'=>$value['einheit'], - 'hersteller'=>$value['hersteller'], - 'zolltarifnummer'=>$value['zolltarifnummer'], - 'herkunftsland'=>$value['herkunftsland'], - 'herstellernummer'=>trim($value['herstellernummer']), - 'lieferdatum'=>$value['lieferdatum'], - 'lieferdatumkw'=>$value['lieferdatumkw'], - 'artikelnummerkunde'=>$value['artikelnummerkunde'], - 'grundrabatt'=>$value['grundrabatt'], - 'rabatt1'=>$value['rabatt1'], - 'rabatt2'=>$value['rabatt2'], - 'rabatt3'=>$value['rabatt3'], - 'rabatt4'=>$value['rabatt4'], - 'rabatt5'=>$value['rabatt5'], - 'freifeld1'=>$value['freifeld1'], - 'freifeld2'=>$value['freifeld2'], - 'freifeld3'=>$value['freifeld3'], - 'freifeld4'=>$value['freifeld4'], - 'freifeld5'=>$value['freifeld5'], - 'freifeld6'=>$value['freifeld6'], - 'freifeld7'=>$value['freifeld7'], - 'freifeld8'=>$value['freifeld8'], - 'freifeld9'=>$value['freifeld9'], - 'freifeld10'=>$value['freifeld10'], - 'freifeld11'=>$value['freifeld11'], - 'freifeld12'=>$value['freifeld12'], - 'freifeld13'=>$value['freifeld13'], - 'freifeld14'=>$value['freifeld14'], - 'freifeld15'=>$value['freifeld15'], - 'freifeld16'=>$value['freifeld16'], - 'freifeld17'=>$value['freifeld17'], - 'freifeld18'=>$value['freifeld18'], - 'freifeld19'=>$value['freifeld19'], - 'freifeld20'=>$value['freifeld20'], - 'freifeld21'=>$value['freifeld21'], - 'freifeld22'=>$value['freifeld22'], - 'freifeld23'=>$value['freifeld23'], - 'freifeld24'=>$value['freifeld24'], - 'freifeld25'=>$value['freifeld25'], - 'freifeld26'=>$value['freifeld26'], - 'freifeld27'=>$value['freifeld27'], - 'freifeld28'=>$value['freifeld28'], - 'freifeld29'=>$value['freifeld29'], - 'freifeld30'=>$value['freifeld30'], - 'freifeld31'=>$value['freifeld31'], - 'freifeld32'=>$value['freifeld32'], - 'freifeld33'=>$value['freifeld33'], - 'freifeld34'=>$value['freifeld34'], - 'freifeld35'=>$value['freifeld35'], - 'freifeld36'=>$value['freifeld36'], - 'freifeld37'=>$value['freifeld37'], - 'freifeld38'=>$value['freifeld38'], - 'freifeld39'=>$value['freifeld39'], - 'freifeld40'=>$value['freifeld40'], - "name"=>ltrim($value['bezeichnung']), - "keinrabatterlaubt"=>$value['keinrabatterlaubt'], - "rabatt"=>$value['rabatt'], - "steuertext"=>$value['steuertext'])); - if($positionenkaufmaenischrunden == 3){ - $netto_gesamt = $value['menge'] * round($value['preis'] - ($value['preis'] / 100 * $value['rabatt']),2); - }else{ - $netto_gesamt = $value['menge'] * ($value['preis'] - ($value['preis'] / 100 * $value['rabatt'])); - } - if($positionenkaufmaenischrunden) - { - $netto_gesamt = round($netto_gesamt, 2); - } - if($value['optional']!="1"){ - if($value['explodiert_parent'] == 0 || !$berechnen_aus_teile) - { - $summe = $summe + $netto_gesamt; - if(!isset($summen[$value['steuersatz']]))$summen[$value['steuersatz']] = 0; - $summen[$value['steuersatz']] += ($netto_gesamt/100)*$value['steuersatz']; - $gesamtsteuern +=($netto_gesamt/100)*$value['steuersatz']; - } - /* - if($value['umsatzsteuer']=="" || $value['umsatzsteuer']=="normal") - { - $summeV = $summeV + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzNormal(false,$id,"angebot")); - } - else { - $summeR = $summeR + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzErmaessigt(false,$id,"angebot")); - }*/ - } - } - - if($positionenkaufmaenischrunden && isset($summen) && is_array($summen)) - { - $gesamtsteuern = 0; - foreach($summen as $k => $v) - { - $summen[$k] = round($v, 2); - $gesamtsteuern += round($v, 2); - } - } - - if($positionenkaufmaenischrunden) - { - list($summe,$gesamtsumme, $summen) = $this->app->erp->steuerAusBelegPDF($this->table, $this->id); - $gesamtsteuern = $gesamtsumme - $summe; - } - - if($this->app->erp->AngebotMitUmsatzeuer($id)) - { - $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $gesamtsteuern,"summen"=>$summen,"totalTaxV"=>0,"totalTaxR"=>0)); - //$this->setTotals(array("totalArticles"=>$summe,"totalTaxV"=>$summeV,"totalTaxR"=>$summeR,"total"=>$summe+$summeV+$summeR)); - } else { - $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe)); - } - - /* Dateiname */ - //$tmp_name = str_replace(' ','',trim($this->recipient['enterprise'])); - //$tmp_name = str_replace('.','',$tmp_name); - - $this->filename = $datum2."_AN".$belegnr.".pdf"; - $this->setBarcode($belegnr); - } - - -} +app=$app; + //parent::Briefpapier(); + $this->doctype="angebot"; + $this->doctypeOrig="Angebot"; + parent::__construct($this->app,$projekt); + } + + function GetAngebot($id) + { + $this->doctypeid = $id; + + if($this->app->erp->Firmendaten("steuerspalteausblenden")=="1") + { + // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden + $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); + if(!empty($check)?count($check):0>1)$this->ust_spalteausblende=false; + else $this->ust_spalteausblende=true; + } + + $briefpapier_bearbeiter_ausblenden = $this->app->erp->Firmendaten('briefpapier_bearbeiter_ausblenden'); + $briefpapier_vertrieb_ausblenden = $this->app->erp->Firmendaten('briefpapier_vertrieb_ausblenden'); + //$this->setRecipientDB($adresse); + $this->setRecipientLieferadresse($id,"angebot"); + $email = ''; + $telefon = ''; + $data = $this->app->DB->SelectRow("SELECT adresse, kundennummer, sprache, ustid, ust_befreit, keinsteuersatz, land, + anfrage, vertrieb, bearbeiter, DATE_FORMAT(datum,'%d.%m.%Y') AS datum, + DATE_FORMAT(gueltigbis,'%d.%m.%Y') AS gueltigbis, belegnr, freitext, typ, zahlungsweise, + abweichendebezeichnung AS angebotersatz, zahlungszieltage, zahlungszieltageskonto, + zahlungszielskonto, projekt, waehrung, bodyzusatz, ohne_briefpapier,DATE_FORMAT(datum,'%Y%m%d') as datum2 + FROM angebot WHERE id='$id' LIMIT 1"); + + extract($data,EXTR_OVERWRITE); + $adresse = $data['adresse']; + $kundennummer = $data['kundennummer']; + $sprache = $data['sprache']; + $ustid = $data['ustid']; + $ust_befreit = $data['ust_befreit']; + $keinsteuersatz = $data['keinsteuersatz']; + $land = $data['land']; + + $anfrage = $data['anfrage']; + $vertrieb = $data['vertrieb']; + $bearbeiter = $data['bearbeiter']; + $freitext = $data['freitext']; + $gueltigbis = $data['gueltigbis']; + $datum = $data['datum']; + $belegnr = $data['belegnr']; + $typ = $data['typ']; + $zahlungsweise = $data['zahlungsweise']; + $angebotersatz = $data['angebotersatz']; + $zahlungszieltage = $data['zahlungszieltage']; + $zahlungszieltageskonto = $data['zahlungszieltageskonto']; + + $zahlungszielskonto = $data['zahlungszielskonto']; + $projekt = $data['projekt']; + $waehrung = $data['waehrung']; + $ohne_briefpapier = $data['ohne_briefpapier']; + $bodyzusatz = $data['bodyzusatz']; + $datum2 = $data['datum2']; + + if(empty($kundennummer)) { + $kundennummer = $this->app->DB->Select("SELECT kundennummer FROM adresse WHERE id='$adresse' LIMIT 1"); + } + if(empty($sprache)) { + $sprache = $this->app->DB->Select("SELECT sprache FROM adresse WHERE id='$adresse' LIMIT 1"); + } + + $this->app->erp->BeschriftungSprache($sprache); + if($waehrung) { + $this->waehrung = $waehrung; + } + $this->projekt = $projekt; + $projektabkuerzung = $this->app->DB->Select(sprintf('SELECT abkuerzung FROM projekt WHERE id = %d', $projekt)); + $this->sprache = $sprache; + $this->anrede = $typ; + + $zahlungsweise = $this->app->erp->ReadyForPDF($zahlungsweise); + $bearbeiter = $this->app->erp->ReadyForPDF($bearbeiter); + $vertrieb = $this->app->erp->ReadyForPDF($vertrieb); + $anfrage = $this->app->erp->ReadyForPDF($anfrage); + + if($ohne_briefpapier=="1") + { + $this->logofile = ""; + $this->briefpapier=""; + $this->briefpapier2=""; + } + + $zahlungstext = $this->app->erp->Zahlungsweisetext("angebot", $id); +/* + + //$zahlungstext = "\nZahlungsweise: $zahlungsweise "; + if($zahlungsweise=="rechnung") + { + if($zahlungszieltage >0) $zahlungstext = $this->app->erp->Beschriftung("dokument_zahlung_rechnung_anab"); + else { + $zahlungstext = $this->app->erp->Beschriftung("zahlung_rechnung_sofort_de"); + } + + + if($this->app->erp->Firmendaten("eigener_skontotext")=="1" && $zahlungszielskonto>0) + { + $skontotext = $this->app->erp->Beschriftung("eigener_skontotext_anab"); + $skontotext = str_replace('{ZAHLUNGSZIELSKONTO}',number_format($zahlungszielskonto,2,',','.'),$skontotext); + $skontotext = str_replace('{ZAHLUNGSZIELTAGESKONTO}',$zahlungszieltageskonto,$skontotext); + $zahlungstext .= "\n".$skontotext; + } else { + if($zahlungszielskonto>0) $zahlungstext .= "\n".$this->app->erp->Beschriftung("dokument_skonto")." ".number_format($zahlungszielskonto,2,',','.')."% ".$this->app->erp->Beschriftung("dokument_innerhalb")." $zahlungszieltageskonto ".$this->app->erp->Beschriftung("dokument_tagen"); + } + + } else { + $zahlungstext = $this->app->DB->Select("SELECT freitext FROM zahlungsweisen WHERE type='".$zahlungsweise."' AND aktiv='1' AND type!='' LIMIT 1"); + if($zahlungstext=="") + $zahlungstext = $this->app->erp->Beschriftung("zahlung_".$zahlungsweise."_de"); + if($zahlungstext=="") + $zahlungstext = $this->app->erp->Beschriftung("dokument_zahlung_per")." ".ucfirst($zahlungsweise); + } +*/ + + $zahlungsweise = ucfirst($zahlungsweise); + + if($belegnr=="" || $belegnr=="0") $belegnr = "- ".$this->app->erp->Beschriftung("dokument_entwurf"); + + if($angebotersatz) + $this->doctypeOrig=($this->app->erp->Beschriftung("bezeichnungangebotersatz")?$this->app->erp->Beschriftung("bezeichnungangebotersatz"):$this->app->erp->Beschriftung("dokument_angebot"))." $belegnr"; + else + $this->doctypeOrig=$this->app->erp->Beschriftung("dokument_angebot")." $belegnr"; + + + $this->zusatzfooter = " (AN$belegnr)"; + + if($angebot=="") $angebot = "-"; + if($kundennummer=="") $kundennummer= "-"; + + $bearbeiteremail = $this->app->DB->Select("SELECT b.email FROM angebot a LEFT JOIN adresse b ON b.id=a.bearbeiterid WHERE a.id='$id' LIMIT 1"); + $bearbeitertelefon = $this->app->DB->Select("SELECT b.telefon FROM angebot a LEFT JOIN adresse b ON b.id=a.bearbeiterid WHERE a.id='$id' LIMIT 1"); + + /** @var \Xentral\Modules\Company\Service\DocumentCustomizationService $service */ + $service = $this->app->Container->get('DocumentCustomizationService'); + if($block = $service->findActiveBlock('corr', 'offer', $projekt)) { + $sCD = $service->parseBlockAsArray($this->getLanguageCodeFrom($this->sprache),'corr', 'offer',[ + 'ANGEBOTSNUMMER' => $belegnr, + 'DATUM' => $datum, + 'KUNDENNUMMER' => $kundennummer, + 'BEARBEITER' => $bearbeiter, + 'BEARBEITEREMAIL' => $bearbeiteremail, + 'BEARBEITERTELEFON' => $bearbeitertelefon, + 'VERTRIEB' => $vertrieb, + 'PROJEKT' => $projektabkuerzung, + 'ANFRAGENUMMER' => $anfrage, + 'EMAIL' => $email, + 'TELEFON' => $telefon + ], $projekt); + + if(!empty($block['alignment'])) { + $this->boxalignmentleft = $block['alignment'][0]; + $this->boxalignmentright = $block['alignment'][1]; + } + + /*$elements =explode("\n", str_replace("\r",'', $this->app->erp->Firmendaten('document_settings_angebot_elements'))); + $previewArr = [ + 'DATUM' => 'datum', + 'BEARBEITER' => 'bearbeiter', + 'VERTRIEB' => 'vertrieb', + 'EMAIL' => 'email', + 'TELEFON' => 'telefon', + 'ANGEBOTSNUMMER' => 'belegnr', + 'KUNDENNUMMER' => 'kundennummer', + 'PROJEKT' => 'projektabkuerzung' + ]; + foreach($elements as $key => $el) { + $el = trim($el); + $elements[$key] = $el; + foreach($previewArr as $prevKey => $preVal) { + if(strpos($el, '{'.$prevKey.'}') !== false) { + if(empty($$preVal)) { + + unset($elements[$key]); + break; + } + $elements[$key] = trim(str_replace('{'.$prevKey.'}', $$preVal, $el)); + + break; + } + } + } + $elements = explode("\n", $this->app->erp->ParseIfVars(implode("\n", $elements))); + foreach($elements as $key => $el) { + if(!empty($elements[$key])){ + $row = explode('|', $elements[$key], 2); + $sCD[trim(rtrim(trim($row[0]),':'))] = !empty($row[1]) ? $row[1] : ''; + } + }*/ + + if(!empty($sCD)) { + switch($block['fontstyle']) { + case 'f': + $this->setBoldCorrDetails($sCD); + break; + case 'i': + $this->setItalicCorrDetails($sCD); + break; + case 'fi': + $this->setItalicBoldCorrDetails($sCD); + break; + default: + $this->setCorrDetails($sCD, true); + break; + } + } + } + else{ + if($briefpapier_bearbeiter_ausblenden || $briefpapier_vertrieb_ausblenden){ + $sCD = array($this->app->erp->Beschriftung("dokument_angebot_anfrage") => $anfrage, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("dokument_datum") => $datum); + if(!$briefpapier_bearbeiter_ausblenden){ + if($bearbeiter) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")] = $bearbeiter; + }elseif(!$briefpapier_vertrieb_ausblenden){ + if($vertrieb) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")] = $vertrieb; + } + $this->setCorrDetails($sCD); + //$this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_angebot_anfrage")=>$anfrage,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("dokument_datum")=>$datum)); + }else{ + if($vertrieb == $bearbeiter){ + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_angebot_anfrage") => $anfrage, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter)); + }else{ + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_angebot_anfrage") => $anfrage, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter, $this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb") => $vertrieb)); + } + } + } + + if($keinsteuersatz!="1") + { + if($ust_befreit==2)//$this->app->erp->Export($land)) + $steuer = $this->app->erp->Beschriftung("export_lieferung_vermerk"); + else { + if($ust_befreit==1 && $ustid!="")//$this->app->erp->IstEU($land)) + $steuer = $this->app->erp->Beschriftung("eu_lieferung_vermerk"); + } + $steuer = str_replace('{USTID}',$ustid,$steuer); + $steuer = str_replace('{LAND}',$land,$steuer); + } + + $body=$this->app->erp->Beschriftung("angebot_header"); + if($bodyzusatz!="") $body=$body."\r\n".$bodyzusatz; + + + if($this->app->erp->Firmendaten("footer_reihenfolge_angebot_aktivieren")=="1") + { + $footervorlage = $this->app->erp->Firmendaten("footer_reihenfolge_angebot"); + if($footervorlage=="") + $footervorlage = "{FOOTERFREITEXT}\r\n{FOOTERTEXTVORLAGEANGEBOT}\r\n{FOOTERSTEUER}\r\n{FOOTERZAHLUNGSWEISETEXT}"; + $footervorlage = str_replace('{FOOTERFREITEXT}',$freitext,$footervorlage); + $footervorlage = str_replace('{FOOTERTEXTVORLAGEANGEBOT}',$this->app->erp->Beschriftung("angebot_footer"),$footervorlage); + $footervorlage = str_replace('{FOOTERSTEUER}',$steuer,$footervorlage); + $footervorlage = str_replace('{FOOTERZAHLUNGSWEISETEXT}',$zahlungstext,$footervorlage); + $footervorlage = $this->app->erp->ParseUserVars("angebot",$id,$footervorlage); + $footer = $footervorlage; + } else { + $footer = "$freitext\r\n".$this->app->erp->ParseUserVars("angebot",$id,$this->app->erp->Beschriftung("angebot_footer")."\r\n$steuer\r\n$zahlungstext"); + } + + + $body = $this->app->erp->ParseUserVars("angebot",$id,$body); + $this->setTextDetails(array( + "body"=>$body, + "footer"=>$footer)); + + $artikel = $this->app->DB->SelectArr("SELECT * FROM angebot_position WHERE angebot='$id' ORDER By sort"); + if(!$this->app->erp->AngebotMitUmsatzeuer($id)) $this->ust_befreit=true; + + $summe_rabatt = $this->app->DB->Select("SELECT SUM(rabatt) FROM angebot_position WHERE angebot='$id'"); + if($summe_rabatt <> 0) $this->rabatt=1; + + if($this->app->erp->Firmendaten("modul_verband")=="1") $this->rabatt=1; + + $summe = 0; + $steuersatzV = $this->app->erp->GetSteuersatzNormal(false,$id,"angebot"); + $steuersatzR = $this->app->erp->GetSteuersatzErmaessigt(false,$id,"angebot"); + $gesamtsteuern = 0; + $mitumsatzsteuer = $this->app->erp->AngebotMitUmsatzeuer($id); + //$waehrung = $this->app->DB->Select("SELECT waehrung FROM angebot_position WHERE angebot='$id' LIMIT 1"); + $berechnen_aus_teile = false; + + foreach($artikel as $key=>$value) + { + if($value['explodiert_parent']) + { + $explodiert[$value['explodiert_parent']] = true; + } + } + $belege_subpositionenstuecklisten = $this->app->erp->Firmendaten('belege_subpositionenstuecklisten'); + $belege_stuecklisteneinrueckenmm = $this->app->erp->Firmendaten('belege_stuecklisteneinrueckenmm'); + //$positionenkaufmaenischrunden = $this->app->erp->Firmendaten('positionenkaufmaenischrunden'); + $positionenkaufmaenischrunden = $this->app->erp->Projektdaten($projekt,"preisberechnung"); + $viernachkommastellen_belege = $this->app->erp->Firmendaten('viernachkommastellen_belege'); + foreach($artikel as $key=>$value) + { + // sichtbare positionen + $checksichtbar = $this->app->DB->Select("SELECT COUNT(id)-SUM(ausblenden_im_pdf) FROM angebot_position WHERE explodiert_parent='".$value['id']."'"); + if(isset($explodiert) && $explodiert[$value['id']] && $checksichtbar > 0) $value['bezeichnung'] = $value['bezeichnung']." ".$this->app->erp->Beschriftung("dokument_stueckliste"); + if($value['explodiert_parent'] > 0) { + if($value['preis'] == 0){ + $value['preis'] = "-"; $value['umsatzsteuer']="hidden"; + } + if(!$belege_subpositionenstuecklisten && !$belege_stuecklisteneinrueckenmm)$value['bezeichnung'] = "-".$value['bezeichnung']; + //$value[beschreibung] .= $value[beschreibung]." (Bestandteil von Stückliste)"; + } + + $ohne_artikeltext = $this->app->DB->Select("SELECT ohne_artikeltext FROM ".$this->table." WHERE id='".$this->id."' LIMIT 1"); + if($ohne_artikeltext=="1") $value['beschreibung']=""; + + + if($value['explodiert_parent'] > 0) + { + if(isset($lvl) && isset($lvl[$value['explodiert_parent']])) + { + $value['lvl'] = $lvl[$value['explodiert_parent']] + 1; + }else{ + $value['lvl'] = 1; + } + $lvl[$value['id']] = $value['lvl']; + } else + { + $lvl[$value['id']] = 0; + } + + if($value['umsatzsteuer'] != "ermaessigt") $value['umsatzsteuer'] = "normal"; + $tmpsteuersatz = null; + $tmpsteuertext = null; + $this->app->erp->GetSteuerPosition('angebot', $value['id'],$tmpsteuersatz, $tmpsteuertext); + if(is_null($value['steuersatz']) || $value['steuersatz'] < 0) + { + if($value['umsatzsteuer'] == "ermaessigt") + { + $value['steuersatz'] = $steuersatzR; + }else{ + $value['steuersatz'] = $steuersatzV; + } + if(!is_null($tmpsteuersatz))$value['steuersatz'] = $tmpsteuersatz; + } + if($tmpsteuertext && !$value['steuertext'])$value['steuertext'] = $tmpsteuertext; + if(!$mitumsatzsteuer)$value['steuersatz'] = 0; + // Herstellernummer von Artikel + $value['herstellernummer'] = $this->app->DB->Select("SELECT herstellernummer FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + $value['hersteller'] = $this->app->DB->Select("SELECT hersteller FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + + $is_angebot_mit_bild=0; + if($is_angebot_mit_bild) { + $image_tmp = $this->app->erp->GetArtikelStandardbild($value['artikel']); + $value['image'] = $image_tmp['image']; + $value['image_type'] = $image_tmp['extenstion']; + } + + if($value['optional']=="1") $value['bezeichnung'] = $this->app->erp->Beschriftung("dokument_optional").$value['bezeichnung']; + + + if(!$this->app->erp->Export($land)) + { + $value['zolltarifnummer']=""; + $value['herkunftsland']=""; + } + + $value = $this->CheckPosition($value,"angebot",$this->doctypeid,$value['id']); + + $value['menge'] = floatval($value['menge']); + if(!$value['explodiert_parent']) + { + if($value['berechnen_aus_teile']) + { + $berechnen_aus_teile = true; + }else{ + $berechnen_aus_teile = false; + } + } + $value['nicht_einrechnen'] = false; + if($value['optional']!="1"){ + if($value['explodiert_parent'] != 0 && $berechnen_aus_teile) + { + $value['ohnepreis'] = 1; + $value['nicht_einrechnen'] = true; + $value['umsatzsteuer'] = 'hidden'; + } + } + + if($value['textalternativpreis']!="") + { + $value['preis']=$value['textalternativpreis']; + $value['ohnepreis'] = 2; + $value['nicht_einrechnen'] = true; + $value['umsatzsteuer'] = 'hidden'; + $value['menge']=""; + } + + if(!$value['ausblenden_im_pdf'])$this->addItem(array( + 'belegposition'=>$value['id'], + 'currency'=>$value['waehrung'],'lvl'=>$value['lvl'], + 'amount'=>$value['menge'], + 'price'=>$value['preis'], + 'tax'=>$value['umsatzsteuer'], + 'steuersatz'=>$value['steuersatz'], + 'itemno'=>$value['nummer'], + 'artikel'=>$value['artikel'], + 'desc'=>$value['beschreibung'], + 'optional'=>$value['optional'],'nicht_einrechnen'=>$value['nicht_einrechnen'], + 'ohnepreis'=>$value['ohnepreis'], + 'unit'=>$value['einheit'], + 'hersteller'=>$value['hersteller'], + 'zolltarifnummer'=>$value['zolltarifnummer'], + 'herkunftsland'=>$value['herkunftsland'], + 'herstellernummer'=>trim($value['herstellernummer']), + 'lieferdatum'=>$value['lieferdatum'], + 'lieferdatumkw'=>$value['lieferdatumkw'], + 'artikelnummerkunde'=>$value['artikelnummerkunde'], + 'grundrabatt'=>$value['grundrabatt'], + 'rabatt1'=>$value['rabatt1'], + 'rabatt2'=>$value['rabatt2'], + 'rabatt3'=>$value['rabatt3'], + 'rabatt4'=>$value['rabatt4'], + 'rabatt5'=>$value['rabatt5'], + 'freifeld1'=>$value['freifeld1'], + 'freifeld2'=>$value['freifeld2'], + 'freifeld3'=>$value['freifeld3'], + 'freifeld4'=>$value['freifeld4'], + 'freifeld5'=>$value['freifeld5'], + 'freifeld6'=>$value['freifeld6'], + 'freifeld7'=>$value['freifeld7'], + 'freifeld8'=>$value['freifeld8'], + 'freifeld9'=>$value['freifeld9'], + 'freifeld10'=>$value['freifeld10'], + 'freifeld11'=>$value['freifeld11'], + 'freifeld12'=>$value['freifeld12'], + 'freifeld13'=>$value['freifeld13'], + 'freifeld14'=>$value['freifeld14'], + 'freifeld15'=>$value['freifeld15'], + 'freifeld16'=>$value['freifeld16'], + 'freifeld17'=>$value['freifeld17'], + 'freifeld18'=>$value['freifeld18'], + 'freifeld19'=>$value['freifeld19'], + 'freifeld20'=>$value['freifeld20'], + 'freifeld21'=>$value['freifeld21'], + 'freifeld22'=>$value['freifeld22'], + 'freifeld23'=>$value['freifeld23'], + 'freifeld24'=>$value['freifeld24'], + 'freifeld25'=>$value['freifeld25'], + 'freifeld26'=>$value['freifeld26'], + 'freifeld27'=>$value['freifeld27'], + 'freifeld28'=>$value['freifeld28'], + 'freifeld29'=>$value['freifeld29'], + 'freifeld30'=>$value['freifeld30'], + 'freifeld31'=>$value['freifeld31'], + 'freifeld32'=>$value['freifeld32'], + 'freifeld33'=>$value['freifeld33'], + 'freifeld34'=>$value['freifeld34'], + 'freifeld35'=>$value['freifeld35'], + 'freifeld36'=>$value['freifeld36'], + 'freifeld37'=>$value['freifeld37'], + 'freifeld38'=>$value['freifeld38'], + 'freifeld39'=>$value['freifeld39'], + 'freifeld40'=>$value['freifeld40'], + "name"=>ltrim($value['bezeichnung']), + "keinrabatterlaubt"=>$value['keinrabatterlaubt'], + "rabatt"=>$value['rabatt'], + "steuertext"=>$value['steuertext'])); + if($positionenkaufmaenischrunden == 3){ + $netto_gesamt = $value['menge'] * round($value['preis'] - ($value['preis'] / 100 * $value['rabatt']),2); + }else{ + $netto_gesamt = $value['menge'] * ($value['preis'] - ($value['preis'] / 100 * $value['rabatt'])); + } + if($positionenkaufmaenischrunden) + { + $netto_gesamt = round($netto_gesamt, 2); + } + if($value['optional']!="1"){ + if($value['explodiert_parent'] == 0 || !$berechnen_aus_teile) + { + $summe = $summe + $netto_gesamt; + if(!isset($summen[$value['steuersatz']]))$summen[$value['steuersatz']] = 0; + $summen[$value['steuersatz']] += ($netto_gesamt/100)*$value['steuersatz']; + $gesamtsteuern +=($netto_gesamt/100)*$value['steuersatz']; + } + /* + if($value['umsatzsteuer']=="" || $value['umsatzsteuer']=="normal") + { + $summeV = $summeV + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzNormal(false,$id,"angebot")); + } + else { + $summeR = $summeR + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzErmaessigt(false,$id,"angebot")); + }*/ + } + } + + if($positionenkaufmaenischrunden && isset($summen) && is_array($summen)) + { + $gesamtsteuern = 0; + foreach($summen as $k => $v) + { + $summen[$k] = round($v, 2); + $gesamtsteuern += round($v, 2); + } + } + + if($positionenkaufmaenischrunden) + { + list($summe,$gesamtsumme, $summen) = $this->app->erp->steuerAusBelegPDF($this->table, $this->id); + $gesamtsteuern = $gesamtsumme - $summe; + } + + if($this->app->erp->AngebotMitUmsatzeuer($id)) + { + $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $gesamtsteuern,"summen"=>$summen,"totalTaxV"=>0,"totalTaxR"=>0)); + //$this->setTotals(array("totalArticles"=>$summe,"totalTaxV"=>$summeV,"totalTaxR"=>$summeR,"total"=>$summe+$summeV+$summeR)); + } else { + $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe)); + } + + /* Dateiname */ + //$tmp_name = str_replace(' ','',trim($this->recipient['enterprise'])); + //$tmp_name = str_replace('.','',$tmp_name); + + $this->filename = $datum2."_AN".$belegnr.".pdf"; + $this->setBarcode($belegnr); + } + + +} diff --git a/www/lib/dokumente/class.auftrag.php b/www/lib/dokumente/class.auftrag.php index 13b838e5..00f43182 100644 --- a/www/lib/dokumente/class.auftrag.php +++ b/www/lib/dokumente/class.auftrag.php @@ -43,7 +43,7 @@ class AuftragPDF extends BriefpapierCustom { { // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); - if(count($check)>1)$this->ust_spalteausblende=false; + if(!empty($check)?count($check):0>1)$this->ust_spalteausblende=false; else $this->ust_spalteausblende=true; } diff --git a/www/lib/dokumente/class.briefpapier.php b/www/lib/dokumente/class.briefpapier.php index 5910d29a..464fe186 100644 --- a/www/lib/dokumente/class.briefpapier.php +++ b/www/lib/dokumente/class.briefpapier.php @@ -54,6 +54,11 @@ class Briefpapier extends SuperFPDF { /** @var array **/ private $styleData; + // Typed variables to get rid of the typos, $border omitted intenionally + function Cell_typed(int $w, int $h = 0, string $txt = '', $border = 0, int $ln = 0, string $align = '', bool $fill = false, string $link = '') { + return($this->Cell($w,$h,$txt,$border,$ln,$align,$fill,$link)); + } + /** * Briefpapier constructor. * @@ -1006,9 +1011,9 @@ class Briefpapier extends SuperFPDF { $this->cMargin=-3; if($this->getStyleElement("seite_belegnr")) - $this->Cell(0,8,$this->app->erp->Beschriftung("dokument_seite").' '.$this->PageNo().' '.$this->app->erp->Beschriftung("dokument_seitevon").' {nb} '.$this->zusatzfooter,0,0,$this->seite_von_ausrichtung); + $this->Cell_typed(0,8,$this->app->erp->Beschriftung("dokument_seite").' '.$this->PageNo().' '.$this->app->erp->Beschriftung("dokument_seitevon").' {nb} '.$this->zusatzfooter,0,0,$this->seite_von_ausrichtung); else - $this->Cell(0,8,$this->app->erp->Beschriftung("dokument_seite").' '.$this->PageNo().' '.$this->app->erp->Beschriftung("dokument_seitevon").' {nb}',0,0,$this->seite_von_ausrichtung); + $this->Cell_typed(0,8,$this->app->erp->Beschriftung("dokument_seite").' '.$this->PageNo().' '.$this->app->erp->Beschriftung("dokument_seitevon").' {nb}',0,0,$this->seite_von_ausrichtung); $this->cMargin = $tmpc; @@ -1836,8 +1841,10 @@ class Briefpapier extends SuperFPDF { //$this->setStationery("/home/eproo/eproo-master/app/main/www/lib/dokumente/demo.pdf"); $this->SetDisplayMode("real","single"); +/* if($this->getStyleElement("abstand_seitenrandrechts")=="") $this->getStyleElementSet("abstand_seitenrandrechts",$this->getStyleElement("abstand_seitenrandlinks")); +*/ $this->SetMargins($this->getStyleElement("abstand_seitenrandlinks"),50,$this->getStyleElement("abstand_seitenrandrechts")); $this->SetAutoPageBreak(true,$this->getStyleElement("abstand_umbruchunten")); @@ -1886,7 +1893,7 @@ class Briefpapier extends SuperFPDF { $this->SetTextColor(0,0,0); if($this->doctype!="lieferschein" && $this->doctype!="preisanfrage" && !$this->nichtsichtbar_summe) { $this->renderTotals(); - } else $this->Cell(1,5,'',0); + } else $this->Cell_typed(1,5,'',0); } $this->renderFooter(); $this->logofile = ""; @@ -1928,7 +1935,7 @@ class Briefpapier extends SuperFPDF { if($this->recipient['anrede']!="" && $this->getStyleElement('typimdokument')) { $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); - $this->Cell(80,5,$this->recipient['anrede'],0,1); + $this->Cell_typed(80,5,$this->recipient['anrede'],0,1); } $this->SetMargins($this->getStyleElement("abstand_adresszeilelinks"),50); @@ -1940,10 +1947,10 @@ class Briefpapier extends SuperFPDF { $array = explode( "\n", wordwrap($this->recipient['enterprise'], $charlimit)); foreach($array as $row) { - $this->Cell(80,5,$this->app->erp->ReadyForPDF($row),0,1); + $this->Cell_typed(80,5,$this->app->erp->ReadyForPDF($row),0,1); } } else { - $this->Cell(80,5,$this->app->erp->ReadyForPDF($this->recipient['enterprise']),0,1); + $this->Cell_typed(80,5,$this->app->erp->ReadyForPDF($this->recipient['enterprise']),0,1); } } @@ -1952,30 +1959,30 @@ class Briefpapier extends SuperFPDF { if($this->recipient['firstname']!="") { $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); - $this->Cell(80,5,$this->recipient['firstname'],0,1); + $this->Cell_typed(80,5,$this->recipient['firstname'],0,1); } if($this->recipient['address2']!="") { $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); - $this->Cell(80,5,$this->recipient['address2'],0,1); + $this->Cell_typed(80,5,$this->recipient['address2'],0,1); } if($this->recipient['address3']!="") { $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); - $this->Cell(80,5,$this->recipient['address3'],0,1); + $this->Cell_typed(80,5,$this->recipient['address3'],0,1); } if($this->recipient['address4']!="") { $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); - $this->Cell(80,5,$this->recipient['address4'],0,1); + $this->Cell_typed(80,5,$this->recipient['address4'],0,1); } - //$this->Cell(80,5,$this->recipient['firstname']." ".$this->recipient['familyname'],0,1); + //$this->Cell_typed(80,5,$this->recipient['firstname']." ".$this->recipient['familyname'],0,1); $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); - $this->Cell(80,5,$this->recipient['address1'],0,1); + $this->Cell_typed(80,5,$this->recipient['address1'],0,1); $this->SetFont($this->GetFont(),'',10); @@ -1987,22 +1994,22 @@ class Briefpapier extends SuperFPDF { $inland = $this->getStyleElement("land"); if($this->recipient['country']!=$inland) { - //$this->Cell(80,5,$this->recipient['country']."-".$this->recipient['areacode']." ".$this->recipient['city'],0,1); + //$this->Cell_typed(80,5,$this->recipient['country']."-".$this->recipient['areacode']." ".$this->recipient['city'],0,1); if(function_exists('mb_strtoupper')) - $this->Cell(80,5,mb_strtoupper($this->recipient['areacode']." ".$this->recipient['city'],"UTF-8"),0,1); + $this->Cell_typed(80,5,mb_strtoupper($this->recipient['areacode']." ".$this->recipient['city'],"UTF-8"),0,1); else - $this->Cell(80,5,strtoupper($this->recipient['areacode']." ".$this->recipient['city']),0,1); + $this->Cell_typed(80,5,strtoupper($this->recipient['areacode']." ".$this->recipient['city']),0,1); $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); - $this->Cell(80,5,strtoupper($this->app->erp->UmlauteEntfernen($this->app->GetLandLang($this->recipient['country'],$this->sprache))),0,1); + $this->Cell_typed(80,5,strtoupper($this->app->erp->UmlauteEntfernen($this->app->GetLandLang($this->recipient['country'],$this->sprache))),0,1); } else { - $this->Cell(80,5,$this->recipient['areacode']." ".$this->recipient['city'],0,1); + $this->Cell_typed(80,5,$this->recipient['areacode']." ".$this->recipient['city'],0,1); } //$this->SetFont($this->GetFont(),'',9); - //if(isset($this->recipient['country'])) $this->Cell(80,5,$this->recipient['country'],0,1); + //if(isset($this->recipient['country'])) $this->Cell_typed(80,5,$this->recipient['country'],0,1); //FREITEXT1 @@ -2074,9 +2081,9 @@ class Briefpapier extends SuperFPDF { $this->SetX($this->getStyleElement("abstand_adresszeilelinks")); if($this->getStyleElement("absenderunterstrichen")=="1") - $this->Cell($this->GetStringWidth($cellStr)+2,5,$cellStr,'B'); + $this->Cell_typed($this->GetStringWidth($cellStr)+2,5,$cellStr,'B'); else - $this->Cell($this->GetStringWidth($cellStr)+2,5,$cellStr,''); + $this->Cell_typed($this->GetStringWidth($cellStr)+2,5,$cellStr,''); } if($this->nichtsichtbar_rechtsoben!=true) @@ -2088,70 +2095,70 @@ class Briefpapier extends SuperFPDF { $this->SetXY($xOffset,10); $this->SetFont($this->GetFont(),'',9); - $this->Cell(30,$lineHeight,"Name der Gesellschaft: ",0,0,'R'); + $this->Cell_typed(30,$lineHeight,"Name der Gesellschaft: ",0,0,'R'); $this->SetFont($this->GetFont(),'B',9); - $this->Cell(60,$lineHeight,$this->sender['enterprise'],0,2); + $this->Cell_typed(60,$lineHeight,$this->sender['enterprise'],0,2); if(isset($this->sender['enterprise2'])) - $this->Cell(60,$lineHeight,$this->sender['enterprise2'],0,2); + $this->Cell_typed(60,$lineHeight,$this->sender['enterprise2'],0,2); $this->SetXY($xOffset,$this->GetY()); $this->SetFont($this->GetFont(),'',9); - $this->Cell(30,$lineHeight,"Sitz der Gesellschaft: ",0,0,'R'); + $this->Cell_typed(30,$lineHeight,"Sitz der Gesellschaft: ",0,0,'R'); $this->SetFont($this->GetFont(),'B',9); - $this->Cell(60,$lineHeight,$this->sender['address1'],0,2); + $this->Cell_typed(60,$lineHeight,$this->sender['address1'],0,2); if(isset($this->sender['address2'])) - $this->Cell(60,$lineHeight,$this->sender['address2'],0,2); - $this->Cell(60,$lineHeight,$this->sender['areacode']." ".$this->sender['city'],0,2); + $this->Cell_typed(60,$lineHeight,$this->sender['address2'],0,2); + $this->Cell_typed(60,$lineHeight,$this->sender['areacode']." ".$this->sender['city'],0,2); $this->SetXY($xOffset,$this->GetY()+$absatz); //abstand $this->SetFont($this->GetFont(),'',9); if(isset($this->sender['phone1'])) { - $this->Cell(30,$lineHeight,"Fon: ",0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['phone1'],0,2); + $this->Cell_typed(30,$lineHeight,"Fon: ",0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['phone1'],0,2); } if(isset($this->sender['fax'])) { $this->SetXY($xOffset,$this->GetY()); - $this->Cell(30,$lineHeight,"Fax: ",0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['fax'],0,2); + $this->Cell_typed(30,$lineHeight,"Fax: ",0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['fax'],0,2); } $this->SetXY($xOffset, $this->GetY()+$absatz); //abstand if(isset($this->sender['email'])) { - $this->Cell(30,$lineHeight,"Mail: ",0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['email'],0,2); + $this->Cell_typed(30,$lineHeight,"Mail: ",0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['email'],0,2); } if(isset($this->sender['web'])) { $this->SetXY($xOffset,$this->GetY()); - $this->Cell(30,$lineHeight,"Web: ",0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['web'],0,2); + $this->Cell_typed(30,$lineHeight,"Web: ",0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['web'],0,2); } $this->SetXY($xOffset, $this->GetY()+$absatz); //abstand if(isset($this->sender['ustid'])) { - $this->Cell(30,$lineHeight,"UST-ID: ",0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['ustid'],0,2); + $this->Cell_typed(30,$lineHeight,"UST-ID: ",0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['ustid'],0,2); } if(isset($this->sender['taxnr'])) { $this->SetXY($xOffset,$this->GetY()); - $this->Cell(30,$lineHeight,"Steuer-Nr.: ",0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['taxnr'],0,2); + $this->Cell_typed(30,$lineHeight,"Steuer-Nr.: ",0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['taxnr'],0,2); } if(isset($this->sender['hreg'])) { $this->SetXY($xOffset,$this->GetY()); - $this->Cell(30,$lineHeight,"Handelsregister: ",0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['hreg'],0,2); + $this->Cell_typed(30,$lineHeight,"Handelsregister: ",0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['hreg'],0,2); } $this->SetXY($xOffset,$this->GetY()); - $this->Cell(30,$lineHeight,utf8_encode("Gesch�ftsf�hrung: "),0,0,'R'); - $this->Cell(60,$lineHeight,$this->sender['firstname'].' '.$this->sender['familyname'],0,2); + $this->Cell_typed(30,$lineHeight,utf8_encode("Gesch�ftsf�hrung: "),0,0,'R'); + $this->Cell_typed(60,$lineHeight,$this->sender['firstname'].' '.$this->sender['familyname'],0,2); //$this->SetXY($xOffset, $this->GetY()+$absatz+2); //abstand - //$this->Cell(30,$lineHeight,"Datum: ",0,0,'R'); - //$this->Cell(60,$lineHeight,utf8_encode($date),0,2); + //$this->Cell_typed(30,$lineHeight,"Datum: ",0,0,'R'); + //$this->Cell_typed(60,$lineHeight,utf8_encode($date),0,2); } } @@ -2270,7 +2277,7 @@ class Briefpapier extends SuperFPDF { $this->SetFont($this->GetFont(),'B',$betreffszeile); $this->SetY($this->GetY()+$this->abstand_betreffzeileoben); - //$this->Cell(85,6,$this->doctypeOrig); + //$this->Cell_typed(85,6,$this->doctypeOrig); $this->MultiCell(210-83+$this->abstand_boxrechtsoben_lr-$this->getStyleElement("abstand_seitenrandlinks")-5,6,html_entity_decode($this->doctypeOrig,ENT_QUOTES),0,'L'); $this->SetY($this->GetY()-$this->abstand_betreffzeileoben); @@ -2593,76 +2600,76 @@ class Briefpapier extends SuperFPDF { $this->SetX($this->getStyleElement('abstand_seitenrandlinks')+1); // eventuell einstellbar per GUI $this->SetFont($this->GetFont(),'B',$tabellenbeschriftung); - $this->Cell($posWidth,6,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_position'),0,0,'C')); + $this->Cell_typed($posWidth,6,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_position'),0,0,'C')); if($this->doctype!='arbeitsnachweis') { if($this->doctype=='zahlungsavis') { - $this->Cell($itemNoWidth,6,'Nummer'); - $this->Cell($descWidth-$einheitWidth+$taxWidth+$priceWidth+$rabattWidth,6,'Beleg'); + $this->Cell_typed($itemNoWidth,6,'Nummer'); + $this->Cell_typed($descWidth-$einheitWidth+$taxWidth+$priceWidth+$rabattWidth,6,'Beleg'); - $this->Cell($amWidth,6,'',0,0,'R'); + $this->Cell_typed($amWidth,6,'',0,0,'R'); } else { - $this->Cell($itemNoWidth,6,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_artikelnummer'))); + $this->Cell_typed($itemNoWidth,6,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_artikelnummer'))); if($this->getStyleElement('artikeleinheit')=='1'){ - $this->Cell($descWidth - $einheitWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_artikel'))); + $this->Cell_typed($descWidth - $einheitWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_artikel'))); } else{ - $this->Cell($descWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_artikel'))); + $this->Cell_typed($descWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_artikel'))); } - $this->Cell($amWidth,6,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_menge')),0,0,'R'); + $this->Cell_typed($amWidth,6,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_menge')),0,0,'R'); } } else { - $this->Cell($taxWidth,6,'Mitarbeiter'); - $this->Cell($itemNoWidth,6,'Ort'); - $this->Cell($descWidth,6,'Tätigkeit'); - $this->Cell($amWidth,6,'Stunden',0,0,'R'); + $this->Cell_typed($taxWidth,6,'Mitarbeiter'); + $this->Cell_typed($itemNoWidth,6,'Ort'); + $this->Cell_typed($descWidth,6,'Tätigkeit'); + $this->Cell_typed($amWidth,6,'Stunden',0,0,'R'); } if($this->doctype!='lieferschein' && $this->doctype!='arbeitsnachweis' && $this->doctype!='produktion' && $this->doctype!='zahlungsavis' && $this->doctype!='preisanfrage'){ if($this->getStyleElement('artikeleinheit')=='1'){ - $this->Cell($einheitWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_einheit')), 0, 0, 'R'); + $this->Cell_typed($einheitWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_einheit')), 0, 0, 'R'); } if($this->ust_spalteausblende){ - $this->Cell($taxWidth, 6, '', 0, 0, 'R'); + $this->Cell_typed($taxWidth, 6, '', 0, 0, 'R'); } else{ - $this->Cell($taxWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_mwst')), 0, 0, 'R'); + $this->Cell_typed($taxWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_mwst')), 0, 0, 'R'); } if($this->getStyleElement('artikeleinheit')=='1'){ if(!$inventurohnepreis){ - $this->Cell($priceWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_einzel')), 0, 0, 'R'); + $this->Cell_typed($priceWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_einzel')), 0, 0, 'R'); } } else{ if(!$inventurohnepreis){ - $this->Cell($priceWidth, 6, $this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_stueck'))), 0, 0, 'R'); + $this->Cell_typed($priceWidth, 6, $this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_stueck'))), 0, 0, 'R'); } } if($this->rabatt=='1') { if(!$inventurohnepreis){ - $this->Cell($rabattWidth,6,$this->app->erp->Beschriftung('dokument_rabatt'),0,0,'R'); - $this->Cell($sumWidth,6,$this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_gesamt'))),0,0,'R'); + $this->Cell_typed($rabattWidth,6,$this->app->erp->Beschriftung('dokument_rabatt'),0,0,'R'); + $this->Cell_typed($sumWidth,6,$this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_gesamt'))),0,0,'R'); } } else { if(!$inventurohnepreis){ - $this->Cell($sumWidth,6,$this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_gesamt'))),0,0,'R'); + $this->Cell_typed($sumWidth,6,$this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_gesamt'))),0,0,'R'); } } } else if ($this->doctype=='lieferschein' || $this->doctype=='preisanfrage') { if($this->getStyleElement("artikeleinheit")=='1'){ - $this->Cell($einheitWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_einheit')), 0, 0, 'R'); + $this->Cell_typed($einheitWidth, 6, $this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_einheit')), 0, 0, 'R'); } } else if ($this->doctype=='zahlungsavis') { - $this->Cell($sumWidth,6,$this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_gesamt'))),0,0,'R'); + $this->Cell_typed($sumWidth,6,$this->app->erp->ParseUserVars($this->doctype, $this->id,$this->app->erp->ReadyForPDF($this->app->erp->Beschriftung('dokument_gesamt'))),0,0,'R'); } $this->Ln(); @@ -2748,7 +2755,7 @@ class Briefpapier extends SuperFPDF { $posWidthold = $posWidth; if($belege_stuecklisteneinrueckenmm && $newlvl > 0) { - $this->Cell($belege_stuecklisteneinrueckenmm * $newlvl,$cellhoehe,''); + $this->Cell_typed($belege_stuecklisteneinrueckenmm * $newlvl,$cellhoehe,''); $posWidth -= $belege_stuecklisteneinrueckenmm * $newlvl; if($posWidth < 2* strlen($posstr)) { @@ -2760,11 +2767,11 @@ class Briefpapier extends SuperFPDF { if($belege_subpositionenstuecklisten)$posstr = $this->CalcPosString($posstr,$oldpostr, $hauptnummer, $oldlvl, $newlvl); $oldpostr = $posstr; $oldlvl = isset($item['lvl'])?(int)$item['lvl']:0; - $this->Cell($posWidth,$cellhoehe,$posstr,0,0,$belege_stuecklisteneinrueckenmm?'':'C'); + $this->Cell_typed($posWidth,$cellhoehe,$posstr,0,0,$belege_stuecklisteneinrueckenmm?'':'C'); //artikelnummer if($this->doctype==='arbeitsnachweis') { - $this->Cell($taxWidth,$cellhoehe,trim($item['person']),0); + $this->Cell_typed($taxWidth,$cellhoehe,trim($item['person']),0); $zeilenuntertext = $this->getStyleElement('zeilenuntertext'); $this->SetFont($this->GetFont(),'',$zeilenuntertext); @@ -2785,10 +2792,10 @@ class Briefpapier extends SuperFPDF { $this->SetFont($this->GetFont(), '', $tabelleninhalt); } if(isset($item['itemno'])) { - $this->Cell($itemNoWidth,$cellhoehe,$item['itemno'],0); + $this->Cell_typed($itemNoWidth,$cellhoehe,$item['itemno'],0); } else { - $this->Cell($itemNoWidth); + $this->Cell_typed($itemNoWidth); } $this->SetFont($this->GetFont(),'',$tabelleninhalt); } @@ -2837,10 +2844,10 @@ class Briefpapier extends SuperFPDF { // Menge if($this->doctype==='zahlungsavis'){ - $this->Cell($amWidth, $cellhoehe, '', 0, 0, 'R'); + $this->Cell_typed($amWidth, $cellhoehe, '', 0, 0, 'R'); } else{ - $this->Cell($amWidth, $cellhoehe, $item['amount'], 0, 0, 'R'); + $this->Cell_typed($amWidth, $cellhoehe, $item['amount'], 0, 0, 'R'); } if($this->doctype!=='lieferschein' && $this->doctype!=='arbeitsnachweis' && $this->doctype!=='produktion' && $this->doctype!=='preisanfrage') { @@ -2877,7 +2884,7 @@ class Briefpapier extends SuperFPDF { } } - $this->Cell($einheitWidth,$cellhoehe,$this->app->erp->ReadyForPDF($einheit),0,0,'R'); + $this->Cell_typed($einheitWidth,$cellhoehe,$this->app->erp->ReadyForPDF($einheit),0,0,'R'); } // if($item['tax']=="hidden") $item['tax']=="hidden"; @@ -2905,21 +2912,21 @@ class Briefpapier extends SuperFPDF { // standard anzeige mit steuer if(!$this->ust_spalteausblende){ if($item['tax']==='hidden'){ - $this->Cell($taxWidth,$cellhoehe,"",0,0,'R'); + $this->Cell_typed($taxWidth,$cellhoehe,"",0,0,'R'); } else { $tax = $item['tax']; //= $tax; //="USTV"?0.19:0.07; $tax *= 100; $tax = $tax.'%'; if($this->doctype==='zahlungsavis'){ - $this->Cell($taxWidth,$cellhoehe,"",0,0,'R'); + $this->Cell_typed($taxWidth,$cellhoehe,"",0,0,'R'); } else{ - $this->Cell($taxWidth, $cellhoehe, $item['ohnepreis'] ? '' : $tax, 0, 0, 'R'); + $this->Cell_typed($taxWidth, $cellhoehe, $item['ohnepreis'] ? '' : $tax, 0, 0, 'R'); } } } else { //kleinunternehmer - $this->Cell($taxWidth,$cellhoehe,"",0,0,'R'); + $this->Cell_typed($taxWidth,$cellhoehe,"",0,0,'R'); } if($this->doctype!=='lieferschein' && $this->doctype!=='produktion' && $this->doctype!=='preisanfrage') { @@ -2933,29 +2940,29 @@ class Briefpapier extends SuperFPDF { //if(($this->anrede=="firma" || $this->app->erp->AnzeigeBelegNetto($this->anrede,$projekt) || $this->doctype=="bestellung" || $this->getStyleElement("immernettorechnungen",$projekt)=="1") //&& $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") if(!$inventurohnepreis){ - $this->Cell($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['price']), 0, 0, 'R'); + $this->Cell_typed($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['price']), 0, 0, 'R'); } } else{ if(!$inventurohnepreis){ - $this->Cell($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['price'] * $item['tmptax']), 0, 0, 'R'); + $this->Cell_typed($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['price'] * $item['tmptax']), 0, 0, 'R'); } } } else { if($item['ohnepreis']==2) { if(!$inventurohnepreis){ - $this->Cell($priceWidth,$cellhoehe,$item['price'],0,0,'R'); + $this->Cell_typed($priceWidth,$cellhoehe,$item['price'],0,0,'R'); } } // text alternativ zu preis else { if(!$inventurohnepreis){ - $this->Cell($priceWidth,$cellhoehe,$item['ohnepreis']?'':$this->formatMoney((double)$item['price']),0,0,'R'); + $this->Cell_typed($priceWidth,$cellhoehe,$item['ohnepreis']?'':$this->formatMoney((double)$item['price']),0,0,'R'); } } } } else { - $this->Cell($priceWidth,$cellhoehe,"",0,0,'R'); + $this->Cell_typed($priceWidth,$cellhoehe,"",0,0,'R'); } // zentale rabatt spalte @@ -3023,7 +3030,7 @@ class Briefpapier extends SuperFPDF { } else { if($item['rabatt']<>0){ // && $item['keinrabatterlaubt']!="1") - $this->Cell($rabattWidth, $cellhoehe, $item['ohnepreis'] ? '' : $item['rabatt'] . " %", 0, 0, 'R'); + $this->Cell_typed($rabattWidth, $cellhoehe, $item['ohnepreis'] ? '' : $item['rabatt'] . " %", 0, 0, 'R'); } else { @@ -3032,13 +3039,13 @@ class Briefpapier extends SuperFPDF { $rabatt_or_porto = $this->app->DB->Select("SELECT id FROM artikel WHERE nummer='".$item['itemno']."' AND (porto='1' OR rabatt='1') LIMIT 1"); if($rabatt_or_porto){ - $this->Cell($rabattWidth, $cellhoehe, '', 0, 0, 'R'); + $this->Cell_typed($rabattWidth, $cellhoehe, '', 0, 0, 'R'); } else{ - $this->Cell($rabattWidth, $cellhoehe, 'SNP', 0, 0, 'R'); + $this->Cell_typed($rabattWidth, $cellhoehe, 'SNP', 0, 0, 'R'); } } else { - $this->Cell($rabattWidth,$cellhoehe,"",0,0,'R'); + $this->Cell_typed($rabattWidth,$cellhoehe,"",0,0,'R'); } } } @@ -3046,7 +3053,7 @@ class Briefpapier extends SuperFPDF { else { // anzeige ohne zentrale rabatt spalte if ($item['tax']==="hidden"){ - $this->Cell($priceWidth,$cellhoehe,"",0,0,'R'); + $this->Cell_typed($priceWidth,$cellhoehe,"",0,0,'R'); } else { if($anzeigeBelegNettoAdrese) @@ -3054,16 +3061,16 @@ class Briefpapier extends SuperFPDF { // && $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") { if(!$inventurohnepreis){ - $this->Cell($priceWidth,$cellhoehe,$item['ohnepreis']?'':$this->formatMoney((double)$item['tprice']),0,0,'R'); + $this->Cell_typed($priceWidth,$cellhoehe,$item['ohnepreis']?'':$this->formatMoney((double)$item['tprice']),0,0,'R'); } } else{ if(!$inventurohnepreis){ - $this->Cell($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice'] * $item['tmptax']), 0, 0, 'R'); + $this->Cell_typed($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice'] * $item['tmptax']), 0, 0, 'R'); } } - $this->Cell($rabattWidth,$cellhoehe,"",0,0,'R'); + $this->Cell_typed($rabattWidth,$cellhoehe,"",0,0,'R'); } } } @@ -3072,20 +3079,20 @@ class Briefpapier extends SuperFPDF { // if(($this->anrede=="firma" || $this->app->erp->AnzeigeBelegNetto($this->anrede,$projekt) || $this->doctype=="bestellung" || $this->getStyleElement("immernettorechnungen",$projekt)=="1") // && $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") if(!$inventurohnepreis){ - $this->Cell($priceWidth,$cellhoehe,$item['ohnepreis']?'':$this->formatMoney((double)$item['price']),0,0,'R'); + $this->Cell_typed($priceWidth,$cellhoehe,$item['ohnepreis']?'':$this->formatMoney((double)$item['price']),0,0,'R'); } else{ if(!$inventurohnepreis){ - $this->Cell($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['price'] * $item['tmptax']), 0, 0, 'R'); + $this->Cell_typed($priceWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['price'] * $item['tmptax']), 0, 0, 'R'); } } } - //$this->Cell($sumWidth,$cellhoehe,$this->formatMoney($item['tprice']).' '.$item['currency'],0,0,'R'); + //$this->Cell_typed($sumWidth,$cellhoehe,$this->formatMoney($item['tprice']).' '.$item['currency'],0,0,'R'); if($this->rabatt=='1') { //gesamt preis if ($item['tax']==='hidden'){ - $this->Cell($priceWidth,$cellhoehe,'',0,0,'R'); + $this->Cell_typed($priceWidth,$cellhoehe,'',0,0,'R'); } else { if($this->rabatt=='1'){ @@ -3093,12 +3100,12 @@ class Briefpapier extends SuperFPDF { //if(($this->anrede=="firma" || $this->app->erp->AnzeigeBelegNetto($this->anrede,$projekt) || $this->doctype=="bestellung" || $this->getStyleElement("immernettorechnungen",$projekt)=="1") // && $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") if(!$inventurohnepreis){ - $this->Cell($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice']), 0, 0, 'R'); + $this->Cell_typed($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice']), 0, 0, 'R'); } } else{ if(!$inventurohnepreis){ - $this->Cell($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice'] * $item['tmptax']), 0, 0, 'R'); + $this->Cell_typed($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice'] * $item['tmptax']), 0, 0, 'R'); } } } @@ -3107,12 +3114,12 @@ class Briefpapier extends SuperFPDF { // if(($this->anrede=="firma" || $this->app->erp->AnzeigeBelegNetto($this->anrede,$projekt) || $this->doctype=="bestellung" || $this->getStyleElement("immernettorechnungen",$projekt)=="1") // && $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") if(!$inventurohnepreis){ - $this->Cell($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice']), 0, 0, 'R'); + $this->Cell_typed($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice']), 0, 0, 'R'); } } else{ if(!$inventurohnepreis){ - $this->Cell($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice'] * $item['tmptax']), 0, 0, 'R'); + $this->Cell_typed($sumWidth, $cellhoehe, $item['ohnepreis'] ? '' : $this->formatMoney((double)$item['tprice'] * $item['tmptax']), 0, 0, 'R'); } } } @@ -3148,7 +3155,7 @@ class Briefpapier extends SuperFPDF { } } - $this->Cell($einheitWidth,$cellhoehe,$this->app->erp->ReadyForPDF($einheit),0,0,'R'); + $this->Cell_typed($einheitWidth,$cellhoehe,$this->app->erp->ReadyForPDF($einheit),0,0,'R'); } $this->Ln(); @@ -3298,12 +3305,12 @@ class Briefpapier extends SuperFPDF { $yBeforeDescription = $this->GetY(); $this->SetFont($this->GetFont(),'',$zeilenuntertext); if($belege_stuecklisteneinrueckenmm && $newlvl > 0){ - $this->Cell($belege_stuecklisteneinrueckenmm * $newlvl, $cellhoehe, ''); + $this->Cell_typed($belege_stuecklisteneinrueckenmm * $newlvl, $cellhoehe, ''); } - $this->Cell($posWidth); - $this->Cell($itemNoWidth); + $this->Cell_typed($posWidth); + $this->Cell_typed($itemNoWidth); if($this->doctype==='arbeitsnachweis') { - $this->Cell($taxWidth); + $this->Cell_typed($taxWidth); } if($this->doctype==='lieferschein' && $this->getStyleElement('modul_verband')=='1'){ @@ -3392,17 +3399,17 @@ class Briefpapier extends SuperFPDF { } } - $this->Cell($taxWidth); - $this->Cell($amWidth); + $this->Cell_typed($taxWidth); + $this->Cell_typed($amWidth); $this->Ln(); $this->SetFont($this->GetFont(),'',$tabelleninhalt); $zeilenuntertext = $this->getStyleElement('zeilenuntertext'); $this->SetFont($this->GetFont(),'',$zeilenuntertext); - $this->Cell($posWidth); - $this->Cell($itemNoWidth); + $this->Cell_typed($posWidth); + $this->Cell_typed($itemNoWidth); if($this->doctype==='arbeitsnachweis') { - $this->Cell($taxWidth); + $this->Cell_typed($taxWidth); } if($this->getStyleElement('artikeleinheit')=='1'){ $this->MultiCell($descWidth - $einheitWidth, 4, '', 0); // 4 = abstand zwischen Artikeln @@ -3410,8 +3417,8 @@ class Briefpapier extends SuperFPDF { else{ $this->MultiCell($descWidth, 4, '', 0); // 4 = abstand zwischen Artikeln } - $this->Cell($taxWidth); - $this->Cell($amWidth); + $this->Cell_typed($taxWidth); + $this->Cell_typed($amWidth); $this->Ln(); $this->SetFont($this->GetFont(),'',$tabelleninhalt); $yAfterDescription = $this->GetY(); @@ -3421,11 +3428,11 @@ class Briefpapier extends SuperFPDF { $this->SetY($position_y_end_name); $yBeforeDescription = $this->GetY(); $this->SetFont($this->GetFont(),'',$zeilenuntertext); - $this->Cell($posWidth); - $this->Cell($itemNoWidth); + $this->Cell_typed($posWidth); + $this->Cell_typed($itemNoWidth); if($this->doctype==='arbeitsnachweis') { - $this->Cell($taxWidth); + $this->Cell_typed($taxWidth); } if($this->getStyleElement('artikeleinheit')=='1') { @@ -3450,8 +3457,8 @@ class Briefpapier extends SuperFPDF { $this->MultiCell($posWidth+$itemNoWidth+$descWidth+$amWidth+$taxWidth+$sumWidth+$priceWidth,($zeilenuntertext/2),trim($staffelpreistext),0,'R'); } - $this->Cell($taxWidth); - $this->Cell($amWidth); + $this->Cell_typed($taxWidth); + $this->Cell_typed($amWidth); $this->Ln(); $this->SetFont($this->GetFont(),'',$tabelleninhalt); $yAfterDescription = $this->GetY(); @@ -3805,7 +3812,7 @@ class Briefpapier extends SuperFPDF { $this->Image($dateiname, $this->GetX(), $this->GetY(),$width / 10, $hoehe / 10, 'jpg'); if($nochtext == '') { - $this->Cell($picwidth,6,'',0,0,'C'); + $this->Cell_typed($picwidth,6,'',0,0,'C'); } $this->SetXY($this->GetX(), $y + $height / 10 + ($nochtext == ''?5:0)); } @@ -4016,7 +4023,7 @@ class Briefpapier extends SuperFPDF { } $this->SetX($x+$abstand_links); - $this->Cell($descWidth,4,$this->WriteHTML($html)); + $this->Cell_typed($descWidth,4,$this->WriteHTML($html)); $this->SetX($x+$abstand_links+$descWidth); //$this->SetX($x); @@ -4050,7 +4057,7 @@ class Briefpapier extends SuperFPDF { { $ausrichtung = $data['Text_Ausrichtung']; } - $this->Cell($priceWidth+$amWidth+$taxWidth+$priceWidth,4,$summe,$rahmen,0,$ausrichtung); + $this->Cell_typed($priceWidth+$amWidth+$taxWidth+$priceWidth,4,$summe,$rahmen,0,$ausrichtung); if(!empty($data['Abstand_Unten'])) { $this->Ln((int)$data['Abstand_Unten']); @@ -4098,19 +4105,19 @@ class Briefpapier extends SuperFPDF { //$this->Line(110, $this->GetY(), 190, $this->GetY()); $this->Ln(1); $this->SetFont($this->GetFont(),'',$this->getStyleElement('schriftgroesse_gesamt')); - $this->Cell($differenz_wegen_abstand,2,'',0); + $this->Cell_typed($differenz_wegen_abstand,2,'',0); if($this->getStyleElement('kleinunternehmer')!='1' && $this->doctype!='zahlungsavis'){ $nettoText = $this->app->erp->Beschriftung('dokument_gesamtnetto'); $nettoAmount = $this->formatMoney(round((double)$this->totals['totalArticles'], 2), 2).' '.$this->waehrung; $doctype = $this->doctype; $doctypeid = !empty($this->doctypeid)?$this->doctypeid: $this->id; $this->app->erp->RunHook('class_briefpapier_render_netto', 4, $doctype, $doctypeid, $nettoText, $nettoAmount); - $this->Cell(30,5,$nettoText,0,0,'L'); - $this->Cell(40,5,$nettoAmount,0,'L','R'); + $this->Cell_typed(30,5,$nettoText,0,0,'L'); + $this->Cell_typed(40,5,$nettoAmount,0,0,'R'); } else { //kleinunzernehmer - $this->Cell(30,5,'',0,0,'L'); - $this->Cell(40,5,'',0,'L','R'); + $this->Cell_typed(30,5,'',0,0,'L'); + $this->Cell_typed(40,5,'',0,0,'R'); } $this->Ln(); @@ -4121,16 +4128,16 @@ class Briefpapier extends SuperFPDF { $versand = 'Versandkosten: '; } if(isset($this->totals['priceOfDispatch'])) { - $this->Cell($differenz_wegen_abstand,2,'',0); - $this->Cell(30,5,$versand,0,'L','L'); - $this->Cell(40,5,$this->formatMoney((double)$this->totals['priceOfDispatch'], 2).' '.$this->waehrung,0,'L','R'); + $this->Cell_typed($differenz_wegen_abstand,2,'',0); + $this->Cell_typed(30,5,$versand,0,'L','L'); + $this->Cell_typed(40,5,$this->formatMoney((double)$this->totals['priceOfDispatch'], 2).' '.$this->waehrung,0,0,'R'); } //$this->Ln(); if(isset($this->totals['priceOfPayment']) && $this->totals['priceOfPayment']!='0.00'){ - $this->Cell($differenz_wegen_abstand,2,'',0); - $this->Cell(30,5,$this->totals['modeOfPayment'],0,'L','L'); - $this->Cell(40,5,$this->formatMoney((double)$this->totals['priceOfPayment'], 2).' '.$this->waehrung,0,'L','R'); + $this->Cell_typed($differenz_wegen_abstand,2,'',0); + $this->Cell_typed(30,5,$this->totals['modeOfPayment'],0,'L','L'); + $this->Cell_typed(40,5,$this->formatMoney((double)$this->totals['priceOfPayment'], 2).' '.$this->waehrung,0,0,'R'); $this->Ln(); } @@ -4139,7 +4146,7 @@ class Briefpapier extends SuperFPDF { if(isset($this->totals['totalTaxV']) && $this->totals['totalTaxV']!="0.00"){ - $this->Cell($differenz_wegen_abstand,1,'',0); + $this->Cell_typed($differenz_wegen_abstand,1,'',0); if($this->getStyleElement('kleinunternehmer')!='1'){ if(!empty($this->doctype) && !empty($this->id) && is_numeric($this->id)){ @@ -4154,23 +4161,23 @@ class Briefpapier extends SuperFPDF { //if(($this->anrede=="firma" || $this->app->erp->AnzeigeBelegNetto($this->anrede,$projekt) || $this->doctype=="bestellung" || $this->getStyleElement("immernettorechnungen",$projekt)=="1") // && $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") { - $this->Cell(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$this->app->erp->GetSteuersatzNormal(false,$this->id,$this->table).' %',0,'L','L'); //1 + $this->Cell_typed(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$this->app->erp->GetSteuersatzNormal(false,$this->id,$this->table).' %',0,0,'L'); //1 } else { - $this->Cell(30,3,$this->app->erp->Beschriftung('dokument_inklmwst').' '.$this->app->erp->GetSteuersatzNormal(false,$this->id,$this->table).' %',0,'L','L'); + $this->Cell_typed(30,3,$this->app->erp->Beschriftung('dokument_inklmwst').' '.$this->app->erp->GetSteuersatzNormal(false,$this->id,$this->table).' %',0,0,'L'); } - $this->Cell(40,3,$this->formatMoney((double)$this->totals['totalTaxV'], 2).' '.$this->waehrung,0,'L','R'); + $this->Cell_typed(40,3,$this->formatMoney((double)$this->totals['totalTaxV'], 2).' '.$this->waehrung,0,0,'R'); } else { //kleinunternehmer - $this->Cell(30,3,'',0,'L','L'); - $this->Cell(40,3,'',0,'L','R'); + $this->Cell_typed(30,3,'',0,0,'L'); + $this->Cell_typed(40,3,'',0,0,'R'); } $this->Ln(); } $projekt = $this->projekt; $adresse = $this->app->DB->Select("SELECT adresse FROM ".($this->table?$this->table:$this->doctype)." WHERE id = '".$this->id."' LIMIT 1"); if(!empty($this->totals['totalTaxR']) && $this->totals['totalTaxR']!='0.00'){ - $this->Cell($differenz_wegen_abstand,1,'',0); + $this->Cell_typed($differenz_wegen_abstand,1,'',0); if($this->getStyleElement('kleinunternehmer')!='1'){ @@ -4178,17 +4185,17 @@ class Briefpapier extends SuperFPDF { //if(($this->anrede=="firma" || $this->app->erp->AnzeigeBelegNetto($this->anrede,$projekt) || $this->doctype=="bestellung" || $this->getStyleElement("immernettorechnungen",$projekt)=="1") // && $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") { - $this->Cell(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$this->app->erp->GetSteuersatzErmaessigt(false,$this->id,$this->table).' %',0,'L','L'); //1 + $this->Cell_typed(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$this->app->erp->GetSteuersatzErmaessigt(false,$this->id,$this->table).' %',0,0,'L'); //1 } else { - $this->Cell(30,3,$this->app->erp->Beschriftung('dokument_inklmwst').' '.$this->app->erp->GetSteuersatzErmaessigt(false,$this->id,$this->table).' %',0,'L','L'); + $this->Cell_typed(30,3,$this->app->erp->Beschriftung('dokument_inklmwst').' '.$this->app->erp->GetSteuersatzErmaessigt(false,$this->id,$this->table).' %',0,0,'L'); } - $this->Cell(40,3,$this->formatMoney(round((double)$this->totals['totalTaxR'],2), 2).' '.$this->waehrung,0,'L','R'); + $this->Cell_typed(40,3,$this->formatMoney(round((double)$this->totals['totalTaxR'],2), 2).' '.$this->waehrung,0,0,'R'); } else { //kleinunternehmer - $this->Cell(30,3,'',0,'L','L'); - $this->Cell(40,3,"",0,'L','R'); + $this->Cell_typed(30,3,'',0,0,'L'); + $this->Cell_typed(40,3,"",0,0,'R'); } $this->Ln(); @@ -4203,24 +4210,24 @@ class Briefpapier extends SuperFPDF { { continue; } - $this->Cell($differenz_wegen_abstand,1,'',0); + $this->Cell_typed($differenz_wegen_abstand,1,'',0); if($this->getStyleElement('kleinunternehmer')!='1'){ if($this->app->erp->AnzeigeBelegNettoAdresse($this->anrede, $this->doctype, $projekt, $adresse,$this->id)) //if(($this->anrede=="firma" || $this->app->erp->AnzeigeBelegNetto($this->anrede,$projekt) || $this->doctype=="bestellung" || $this->getStyleElement("immernettorechnungen",$projekt)=="1") // && $this->getStyleElement("immerbruttorechnungen",$projekt)!="1") { - $this->Cell(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$k.' %',0,'L','L'); //1 + $this->Cell_typed(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$k.' %',0,0,'L'); //1 }else { - //$this->Cell(30,3,$this->app->erp->Beschriftung('dokument_inklmwst').' '.$k.' %',0,'L','L'); 09.12.2018 ab heute auskommentiert wegen 829087 - $this->Cell(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$k.' %',0,'L','L'); + //$this->Cell_typed(30,3,$this->app->erp->Beschriftung('dokument_inklmwst').' '.$k.' %',0,'L','L'); 09.12.2018 ab heute auskommentiert wegen 829087 + $this->Cell_typed(30,3,$this->app->erp->Beschriftung('dokument_zzglmwst').' '.$k.' %',0,0,'L'); } - $this->Cell(40,3,$this->formatMoney(round($value,2), 2).' '.$this->waehrung,0,'L','R'); + $this->Cell_typed(40,3,$this->formatMoney(round($value,2), 2).' '.$this->waehrung,0,0,'R'); } else { //kleinunternehmer - $this->Cell(30,3,'',0,'L','L'); - $this->Cell(40,3,"",0,'L','R'); + $this->Cell_typed(30,3,'',0,0,'L'); + $this->Cell_typed(40,3,"",0,0,'R'); } $this->Ln(); @@ -4231,7 +4238,7 @@ class Briefpapier extends SuperFPDF { if(!isset($this->totals['totalTaxR']) && !isset($this->totals['totalTaxV']) && !isset($this->totals['summen']) && $this->doctype!="zahlungsavis") { - $this->Cell($differenz_wegen_abstand,3,'',0); + $this->Cell_typed($differenz_wegen_abstand,3,'',0); if($this->getStyleElement('kleinunternehmer')!='1') { @@ -4241,24 +4248,24 @@ class Briefpapier extends SuperFPDF { { if(!($this->ust_befreit==3 && $this->getStyleElement('steuerfrei_inland_ausblenden')=='1')) //steuerfrei inland { - $this->Cell(30, 3, $this->app->erp->Beschriftung('dokument_zzglmwst') . ' 0.00 %', 0, 'L', 'L'); //1 + $this->Cell_typed(30, 3, $this->app->erp->Beschriftung('dokument_zzglmwst') . ' 0.00 %', 0, 0, 'L'); //1 } } else { if(!($this->ust_befreit==3 && $this->getStyleElement('steuerfrei_inland_ausblenden')=='1')) //steuerfrei inland { - $this->Cell(30, 3, $this->app->erp->Beschriftung('dokument_inklmwst') . ' 0.00 %', 0, 'L', 'L'); + $this->Cell_typed(30, 3, $this->app->erp->Beschriftung('dokument_inklmwst') . ' 0.00 %', 0, 0, 'L'); } } if(!($this->ust_befreit==3 && $this->getStyleElement('steuerfrei_inland_ausblenden')=='1')) //steuerfrei inland { - $this->Cell(40, 3, '0,00 ' . $this->waehrung, 0, 'L', 'R'); + $this->Cell_typed(40, 3, '0,00 ' . $this->waehrung, 0, 0, 'R'); } } else { //kleinunternehmer - $this->Cell(30,3,'',0,'L','L'); - $this->Cell(40,3,'',0,'L','R'); + $this->Cell_typed(30,3,'',0,0,'L'); + $this->Cell_typed(40,3,'',0,0,'R'); } $this->Ln(); } @@ -4267,32 +4274,32 @@ class Briefpapier extends SuperFPDF { } $this->SetFont($this->GetFont(),'B',$this->getStyleElement('schriftgroesse_gesamt')); - $this->Cell($differenz_wegen_abstand,5,'',0); + $this->Cell_typed($differenz_wegen_abstand,5,'',0); if($this->doctype=='offer'){ - $this->Cell(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 'L', 'L'); + $this->Cell_typed(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 0, 'L'); } elseif($this->doctype=='creditnote'){ - $this->Cell(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 'L', 'L'); + $this->Cell_typed(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 0, 'L'); } else if($this->doctype=='arbeitsnachweis'){ - $this->Cell(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 'L', 'L'); + $this->Cell_typed(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 0, 'L'); } else if($this->doctype=='zahlungsavis'){ - $this->Cell(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 'L', 'L'); + $this->Cell_typed(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 0, 'L'); } else{ - $this->Cell(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 'L', 'L'); + $this->Cell_typed(30, 5, $this->app->erp->Beschriftung('dokument_gesamt_total'), 0, 0, 'L'); } if($this->doctype=='arbeitsnachweis'){ - $this->Cell(40, 5, $this->totals['total'] . ' ', 0, 'L', 'R'); + $this->Cell_typed(40, 5, $this->totals['total'] . ' ', 0, 0, 'R'); } else { if($this->getStyleElement('kleinunternehmer')!='1'){ - $this->Cell(40, 5, $this->formatMoney(round((double)$this->totals['total'], 2), 2) . ' ' . $this->waehrung, 0, 'L', 'R'); + $this->Cell_typed(40, 5, $this->formatMoney(round((double)$this->totals['total'], 2), 2) . ' ' . $this->waehrung, 0, 0, 'R'); } else{ - $this->Cell(40, 5, $this->formatMoney(round((double)$this->totals['totalArticles'], 2), 2) . ' ' . $this->waehrung, 0, 'L', 'R'); + $this->Cell_typed(40, 5, $this->formatMoney(round((double)$this->totals['totalArticles'], 2), 2) . ' ' . $this->waehrung, 0, 0, 'R'); } } diff --git a/www/lib/dokumente/class.gutschrift.php b/www/lib/dokumente/class.gutschrift.php index d809d4c9..b81d3afc 100644 --- a/www/lib/dokumente/class.gutschrift.php +++ b/www/lib/dokumente/class.gutschrift.php @@ -1,491 +1,491 @@ -app=$app; - //parent::Briefpapier(); - $this->doctype="gutschrift"; - $this->doctypeOrig="Gutschrift"; - parent::__construct($this->app,$projekt); - } - - - function GetGutschrift($id) - { - $this->doctypeid = $id; - - if($this->app->erp->Firmendaten("steuerspalteausblenden")=="1") - { - // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden - $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); - if(count($check)>1)$this->ust_spalteausblende=false; - else $this->ust_spalteausblende=true; - } - - $briefpapier_bearbeiter_ausblenden = $this->app->erp->Firmendaten('briefpapier_bearbeiter_ausblenden'); - $briefpapier_vertrieb_ausblenden = $this->app->erp->Firmendaten('briefpapier_vertrieb_ausblenden'); - //$this->setRecipientDB($adresse); - $this->setRecipientLieferadresse($id,"gutschrift"); - - $data = $this->app->DB->SelectRow( - "SELECT adresse,kundennummer, sprache, rechnungid, buchhaltung, bearbeiter, vertrieb, - lieferschein AS lieferscheinid, DATE_FORMAT(datum,'%d.%m.%Y') AS datum, - DATE_FORMAT(lieferdatum,'%d.%m.%Y') AS lieferdatum, belegnr, freitext, ustid, ust_befreit, - stornorechnung, keinsteuersatz, land, typ, zahlungsweise, zahlungsstatus, zahlungszieltage, - zahlungszielskonto, projekt, waehrung, bodyzusatz, - DATE_FORMAT(DATE_ADD(datum, INTERVAL zahlungszieltage DAY),'%d.%m.%Y') AS zahlungsdatum, - ohne_briefpapier, ihrebestellnummer,DATE_FORMAT(datum,'%Y%m%d') as datum2, email, telefon - FROM gutschrift WHERE id='$id' LIMIT 1" - ); - extract($data,EXTR_OVERWRITE); - $adresse = $data['adresse']; - $kundennummer = $data['kundennummer']; - $sprache = $data['sprache']; - $rechnungid = $data['rechnungid']; - $buchhaltung = $data['buchhaltung']; - $email = $data['email']; - $telefon = $data['telefon']; - $bearbeiter = $data['bearbeiter']; - $vertrieb = $data['vertrieb']; - $lieferscheinid = $data['lieferscheinid']; - $datum = $data['datum']; - $lieferdatum = $data['lieferdatum']; - $belegnr = $data['belegnr']; - $freitext = $data['freitext']; - $ustid = $data['ustid']; - $ust_befreit = $data['ust_befreit']; - $stornorechnung = $data['stornorechnung']; - $keinsteuersatz = $data['keinsteuersatz']; - $land = $data['land']; - $typ = $data['typ']; - $zahlungsweise = $data['zahlungsweise']; - $zahlungszieltage = $data['zahlungszieltage']; - - $zahlungszielskonto = $data['zahlungszielskonto']; - $projekt = $data['projekt']; - $waehrung = $data['waehrung']; - $bodyzusatz = $data['bodyzusatz']; - $zahlungsdatum = $data['zahlungsdatum']; - $ohne_briefpapier = $data['ohne_briefpapier']; - $ihrebestellnummer = $data['ihrebestellnummer']; - $datum2 = $data['datum2']; - $projektabkuerzung = $this->app->DB->Select(sprintf('SELECT abkuerzung FROM projekt WHERE id = %d', $projekt)); - $kundennummer = $this->app->DB->Select("SELECT kundennummer FROM adresse WHERE id='$adresse' LIMIT 1"); - if(empty($sprache)){ - $sprache = $this->app->DB->Select("SELECT sprache FROM adresse WHERE id='$adresse' LIMIT 1"); - } - $lieferschein = $this->app->DB->Select("SELECT belegnr FROM lieferschein WHERE id='$lieferscheinid' LIMIT 1"); - $lieferscheindatum = $this->app->DB->Select("SELECT DATE_FORMAT(datum, '%d.%m.%Y') AS datum FROM lieferschein WHERE id = '$lieferscheinid' LIMIT 1"); - $rechnung = $this->app->DB->Select("SELECT belegnr FROM rechnung WHERE id='$rechnungid' LIMIT 1"); - $rechnungsdatum = $this->app->DB->Select("SELECT DATE_FORMAT(datum, '%d.%m.%Y') AS datum FROM rechnung WHERE id = '$rechnungid' LIMIT 1"); - $auftrag = $this->app->DB->Select("SELECT auftrag FROM rechnung WHERE id = '$rechnungid' LIMIT 1"); - - $ihrebestellnummer = $this->app->erp->ReadyForPDF($ihrebestellnummer); - $bearbeiter = $this->app->erp->ReadyForPDF($bearbeiter); - $vertrieb = $this->app->erp->ReadyForPDF($vertrieb); - - $this->app->erp->BeschriftungSprache($sprache); - if($waehrung)$this->waehrung = $waehrung; - $this->sprache = $sprache; - $this->projekt = $projekt; - $this->anrede = $typ; - - if($vertrieb==$bearbeiter && (!$briefpapier_bearbeiter_ausblenden && !$briefpapier_vertrieb_ausblenden)) $vertrieb=""; - - if($ohne_briefpapier=="1") - { - $this->logofile = ""; - $this->briefpapier=""; - $this->briefpapier2=""; - } - - // $zahlungsweise = strtolower($zahlungsweise); - - if($zahlungsweise=="lastschrift" || $zahlungsweise=="einzugsermaechtigung") - { - $zahlungsweisetext = "\n".$this->app->erp->Beschriftung("dokument_offene_lastschriften"); - } - - //if($zahlungszielskonto>0) $zahlungsweisetext .= "\n".$this->app->erp->Beschriftung("dokument_skonto")." $zahlungszielskonto% ".$this->app->erp->Beschriftung("dokument_auszahlungskonditionen"); - - if($zahlungszielskonto!=0) - $zahlungsweisetext .="\r\n".$this->app->erp->Beschriftung("dokument_skontoanderezahlungsweisen"); - - $zahlungsweisetext = str_replace('{ZAHLUNGSZIELSKONTO}',number_format($zahlungszielskonto,2,',','.'),$zahlungsweisetext); - - if($belegnr=="" || $belegnr=="0") $belegnr = "- ".$this->app->erp->Beschriftung("dokument_entwurf"); - - - if($stornorechnung) - $this->doctypeOrig=$this->app->erp->Beschriftung("bezeichnungstornorechnung")." $belegnr"; - else - $this->doctypeOrig=$this->app->erp->Beschriftung("dokument_gutschrift")." $belegnr"; - - if($gutschrift=="") $gutschrift = "-"; - if($kundennummer=="") $kundennummer= "-"; - - if($auftrag=="0") $auftrag = "-"; - if($lieferschein=="0") $lieferschein= "-"; - - $bearbeiteremail = $this->app->DB->Select("SELECT b.email FROM gutschrift g LEFT JOIN adresse b ON b.id=g.bearbeiterid WHERE g.id='$id' LIMIT 1"); - $bearbeitertelefon = $this->app->DB->Select("SELECT b.telefon FROM gutschrift g LEFT JOIN adresse b ON b.id=g.bearbeiterid WHERE g.id='$id' LIMIT 1"); - - /** @var \Xentral\Modules\Company\Service\DocumentCustomizationService $service */ - $service = $this->app->Container->get('DocumentCustomizationService'); - if($block = $service->findActiveBlock('corr', 'credit_note', $projekt)) { - $sCD = $service->parseBlockAsArray($this->getLanguageCodeFrom($this->sprache),'corr', 'credit_note',[ - 'GUTSCHRIFTSNUMMER' => $belegnr, - 'DATUM' => $datum, - 'RECHNUNGSNUMMER' => $rechnung, - 'RECHNUNGSDATUM' => $rechnungsdatum, - 'KUNDENNUMMER' => $kundennummer, - 'BEARBEITER' => $bearbeiter, - 'BEARBEITEREMAIL' => $bearbeiteremail, - 'BEARBEITERTELEFON' => $bearbeitertelefon, - 'VERTRIEB' => $vertrieb, - 'PROJEKT' => $projektabkuerzung, - 'AUFTRAGSNUMMER' => $auftrag, - 'LIEFERSCHEINNUMMER' => $lieferschein, - 'LIEFERSCHEINDATUM' => $lieferscheindatum, - 'EMAIL' => $email, - 'TELEFON' => $telefon - - - - ], $projekt); - if(!empty($sCD)) { - switch($block['fontstyle']) { - case 'f': - $this->setBoldCorrDetails($sCD); - break; - case 'i': - $this->setItalicCorrDetails($sCD); - break; - case 'fi': - $this->setItalicBoldCorrDetails($sCD); - break; - default: - $this->setCorrDetails($sCD, true); - break; - } - } - } - else{ - - //$this->setCorrDetails(array("Auftrag"=>$auftrag,"Datum"=>$datum,"Ihre Kunden-Nr."=>$kundennummer,"Lieferschein"=>$lieferschein,"Buchhaltung"=>$buchhaltung)); - if($briefpapier_bearbeiter_ausblenden || $briefpapier_vertrieb_ausblenden){ - if($rechnung != ""){ - $sCD = array($this->app->erp->Beschriftung("dokument_rechnung") => $rechnung, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer); - }else{ - $sCD = array($this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer); - //$this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_datum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer)); - } - if(!$briefpapier_bearbeiter_ausblenden){ - if($bearbeiter) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")] = $bearbeiter; - }elseif(!$briefpapier_vertrieb_ausblenden){ - if($vertrieb) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")] = $vertrieb; - } - - }else{ - if($rechnung != "") - $sCD = array($this->app->erp->Beschriftung("dokument_rechnung") => $rechnung, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter, $this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb") => $vertrieb); - else - $sCD = array($this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter, $this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb") => $vertrieb); - } - - if($lieferdatum != "00.00.0000") - $sCD[$this->app->erp->Beschriftung("dokument_lieferdatum")] = $lieferdatum; - - - $this->setCorrDetails($sCD); - } - - if($keinsteuersatz!="1") - { - - if($ust_befreit==2)//$this->app->erp->Export($land)) - $steuer = $this->app->erp->Beschriftung("export_lieferung_vermerk"); - else { - if($ust_befreit==1 && $ustid!="")//$this->app->erp->IstEU($land)) - $steuer = $this->app->erp->Beschriftung("eu_lieferung_vermerk"); - } - $steuer = str_replace('{USTID}',$ustid,$steuer); - $steuer = str_replace('{LAND}',$land,$steuer); - } - - $gutschrift_header=$this->app->erp->Beschriftung("gutschrift_header"); - if($bodyzusatz!="") $gutschrift_header=$gutschrift_header."\r\n".$bodyzusatz; - - if($stornorechnung) - { - $gutschrift_header = str_replace('{ART}',$this->app->erp->Beschriftung("bezeichnungstornorechnung"),$gutschrift_header); - } else { - $gutschrift_header = str_replace('{ART}',$this->app->erp->Beschriftung("dokument_gutschrift"),$gutschrift_header); - } - - $gutschrift_header = $this->app->erp->ParseUserVars("gutschrift",$id,$gutschrift_header); - - - if($this->app->erp->Firmendaten("footer_reihenfolge_gutschrift_aktivieren")=="1") { - $footervorlage = $this->app->erp->Firmendaten("footer_reihenfolge_gutschrift"); - if($footervorlage=="") - $footervorlage = "{FOOTERFREITEXT}\r\n{FOOTERTEXTVORLAGEGUTSCHRIFT}\r\n{FOOTERSTEUER}\r\n{FOOTERZAHLUNGSWEISETEXT}"; - - $footervorlage = str_replace('{FOOTERFREITEXT}',$freitext,$footervorlage); - $footervorlage = str_replace('{FOOTERTEXTVORLAGEGUTSCHRIFT}',$this->app->erp->Beschriftung("gutschrift_footer"),$footervorlage); - $footervorlage = str_replace('{FOOTERSTEUER}',$steuer,$footervorlage); - $footervorlage = str_replace('{FOOTERZAHLUNGSWEISETEXT}',$zahlungsweisetext,$footervorlage); - $footervorlage = $this->app->erp->ParseUserVars("gutschrift",$id,$footervorlage); - $footer = $footervorlage; - } else { - $footer = "$freitext"."\r\n".$this->app->erp->ParseUserVars("gutschrift",$id,$this->app->erp->Beschriftung("gutschrift_footer"))."\r\n$zahlungsweisetext\r\n$steuer"; - } - - - $this->setTextDetails(array( - "body"=>$gutschrift_header, - "footer"=>$footer)); - - $artikel = $this->app->DB->SelectArr("SELECT * FROM gutschrift_position WHERE gutschrift='$id' ORDER By sort"); - - if(!$this->app->erp->GutschriftMitUmsatzeuer($id)) $this->ust_befreit=true; - - $summe_rabatt = $this->app->DB->Select("SELECT SUM(rabatt) FROM gutschrift_position WHERE gutschrift='$id'"); - if($summe_rabatt <> 0) $this->rabatt=1; - - if($this->app->erp->Firmendaten("modul_verband")=="1") $this->rabatt=1; - - //$waehrung = $this->app->DB->Select("SELECT waehrung FROM gutschrift_position WHERE gutschrift='$id' LIMIT 1"); - $steuersatzV = $this->app->erp->GetSteuersatzNormal(false,$id,"gutschrift"); - $steuersatzR = $this->app->erp->GetSteuersatzErmaessigt(false,$id,"gutschrift"); - $gesamtsteuern = 0; - $mitumsatzsteuer = $this->app->erp->GutschriftMitUmsatzeuer($id); - $belege_subpositionenstuecklisten = $this->app->erp->Firmendaten('belege_subpositionenstuecklisten'); - $belege_stuecklisteneinrueckenmm = $this->app->erp->Firmendaten('belege_stuecklisteneinrueckenmm'); - //$positionenkaufmaenischrunden = $this->app->erp->Firmendaten('positionenkaufmaenischrunden'); - $positionenkaufmaenischrunden = $this->app->erp->Projektdaten($projekt,"preisberechnung"); - $viernachkommastellen_belege = $this->app->erp->Firmendaten('viernachkommastellen_belege'); - foreach($artikel as $key=>$value) - { - if($value['umsatzsteuer'] != "ermaessigt" && $value['umsatzsteuer'] != "befreit") $value['umsatzsteuer'] = "normal"; - $tmpsteuersatz = null; - $tmpsteuertext = null; - $this->app->erp->GetSteuerPosition('gutschrift', $value['id'],$tmpsteuersatz, $tmpsteuertext); - if(is_null($value['steuersatz']) || $value['steuersatz'] < 0) - { - if($value['umsatzsteuer'] == "ermaessigt") - { - $value['steuersatz'] = $steuersatzR; - }elseif($value['umsatzsteuer'] == "befreit") - { - $value['steuersatz'] = $steuersatzR; - }else{ - $value['steuersatz'] = $steuersatzV; - } - if(!is_null($tmpsteuersatz))$value['steuersatz'] = $tmpsteuersatz; - } - if($tmpsteuertext && !$value['steuertext'])$value['steuertext'] = $tmpsteuertext; - if(!$mitumsatzsteuer)$value['steuersatz'] = 0; - // negative Darstellung bei Stornorechnung - if($stornorechnung) $value['preis'] = $value['preis'] *-1; - - if(!$this->app->erp->Export($land)) - { - $value['zolltarifnummer']=""; - $value['herkunftsland']=""; - } - - $value = $this->CheckPosition($value,"gutschrift",$this->doctypeid,$value['id']); - - $value['menge'] = floatval($value['menge']); - - if($value['explodiert_parent_artikel'] > 0) - { - if($belege_subpositionenstuecklisten || $belege_stuecklisteneinrueckenmm)$value['bezeichnung'] = ltrim(ltrim($value['bezeichnung'],'*')); - if(isset($lvl) && isset($lvl[$value['explodiert_parent_artikel']])) - { - $value['lvl'] = $lvl[$value['explodiert_parent_artikel']] + 1; - }else{ - $value['lvl'] = 1; - } - $lvl[$value['artikel']] = $value['lvl']; - $check_ausblenden = $this->app->DB->Select("SELECT keineeinzelartikelanzeigen FROM artikel WHERE id='".$value['explodiert_parent_artikel']."' LIMIT 1"); - if(!$check_ausblenden && isset($ausblenden) && in_array($value['explodiert_parent_artikel'], $ausblenden)) - { - $check_ausblenden = true; - } - if($check_ausblenden) - { - $ausblenden[] = $value['artikel']; - } - } else - { - $check_ausblenden=0; - $lvl[$value['artikel']] = 0; - $value['lvl'] = 0; - } - - if($value['ausblenden_im_pdf']) $check_ausblenden=1; - - $ohne_artikeltext = $this->app->DB->Select("SELECT ohne_artikeltext FROM ".$this->table." WHERE id='".$this->id."' LIMIT 1"); - if($ohne_artikeltext=="1") $value['beschreibung']=""; - - if($check_ausblenden!=1) - { - $this->addItem(array('currency'=>$value['waehrung'],'lvl'=>isset($value['lvl'])?$value['lvl']:0, - 'amount'=>$value['menge'], - 'price'=>$value['preis'], - 'tax'=>$value['umsatzsteuer'], - 'steuersatz'=>$value['steuersatz'], - 'steuertext'=>$value['steuertext'], - 'itemno'=>$value['nummer'], - 'artikel'=>$value['artikel'], - 'unit'=>$value['einheit'], - 'desc'=>$value['beschreibung'], - "name"=>ltrim($value['bezeichnung']), - 'artikelnummerkunde'=>$value['artikelnummerkunde'], - 'lieferdatum'=>$value['lieferdatum'], - 'lieferdatumkw'=>$value['lieferdatumkw'], - 'zolltarifnummer'=>$value['zolltarifnummer'], - 'herkunftsland'=>$value['herkunftsland'], - 'ohnepreis'=>$value['ohnepreis'], - 'grundrabatt'=>$value['grundrabatt'], - 'rabatt1'=>$value['rabatt1'], - 'rabatt2'=>$value['rabatt2'], - 'rabatt3'=>$value['rabatt3'], - 'rabatt4'=>$value['rabatt4'], - 'rabatt5'=>$value['rabatt5'], - 'freifeld1'=>$value['freifeld1'], - 'freifeld2'=>$value['freifeld2'], - 'freifeld3'=>$value['freifeld3'], - 'freifeld4'=>$value['freifeld4'], - 'freifeld5'=>$value['freifeld5'], - 'freifeld6'=>$value['freifeld6'], - 'freifeld7'=>$value['freifeld7'], - 'freifeld8'=>$value['freifeld8'], - 'freifeld9'=>$value['freifeld9'], - 'freifeld10'=>$value['freifeld10'], - 'freifeld11'=>$value['freifeld11'], - 'freifeld12'=>$value['freifeld12'], - 'freifeld13'=>$value['freifeld13'], - 'freifeld14'=>$value['freifeld14'], - 'freifeld15'=>$value['freifeld15'], - 'freifeld16'=>$value['freifeld16'], - 'freifeld17'=>$value['freifeld17'], - 'freifeld18'=>$value['freifeld18'], - 'freifeld19'=>$value['freifeld19'], - 'freifeld20'=>$value['freifeld20'], - 'freifeld21'=>$value['freifeld21'], - 'freifeld22'=>$value['freifeld22'], - 'freifeld23'=>$value['freifeld23'], - 'freifeld24'=>$value['freifeld24'], - 'freifeld25'=>$value['freifeld25'], - 'freifeld26'=>$value['freifeld26'], - 'freifeld27'=>$value['freifeld27'], - 'freifeld28'=>$value['freifeld28'], - 'freifeld29'=>$value['freifeld29'], - 'freifeld30'=>$value['freifeld30'], - 'freifeld31'=>$value['freifeld31'], - 'freifeld32'=>$value['freifeld32'], - 'freifeld33'=>$value['freifeld33'], - 'freifeld34'=>$value['freifeld34'], - 'freifeld35'=>$value['freifeld35'], - 'freifeld36'=>$value['freifeld36'], - 'freifeld37'=>$value['freifeld37'], - 'freifeld38'=>$value['freifeld38'], - 'freifeld39'=>$value['freifeld39'], - 'freifeld40'=>$value['freifeld40'], - "keinrabatterlaubt"=>$value['keinrabatterlaubt'], - "rabatt"=>$value['rabatt'])); - } - if($positionenkaufmaenischrunden == 3){ - $netto_gesamt = $value['menge'] * round($value['preis'] - ($value['preis'] / 100 * $value['rabatt']),2); - }else{ - $netto_gesamt = $value['menge'] * ($value['preis'] - ($value['preis'] / 100 * $value['rabatt'])); - } - if($positionenkaufmaenischrunden) - { - $netto_gesamt = round($netto_gesamt, 2); - } - $summe = $summe + $netto_gesamt; - if(!isset($summen[$value['steuersatz']]))$summen[$value['steuersatz']] = 0; - $summen[$value['steuersatz']] += ($netto_gesamt/100)*$value['steuersatz']; - $gesamtsteuern +=($netto_gesamt/100)*$value['steuersatz']; - /* - if($value['umsatzsteuer']=="" || $value['umsatzsteuer']=="normal") - { - $summeV = $summeV + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzNormal(false,$id,"gutschrift")); - } - else { - $summeR = $summeR + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzErmaessigt(false,$id,"gutschrift")); - }*/ - - } - - if($positionenkaufmaenischrunden && isset($summen) && is_array($summen)) - { - $gesamtsteuern = 0; - foreach($summen as $k => $v) - { - $summen[$k] = round($v, 2); - $gesamtsteuern += round($v, 2); - } - } - if($positionenkaufmaenischrunden) - { - list($summe,$gesamtsumme, $summen) = $this->app->erp->steuerAusBelegPDF($this->table, $this->id); - $gesamtsteuern = $gesamtsumme - $summe; - } - - /* - $summe = $this->app->DB->Select("SELECT SUM(menge*preis) FROM gutschrift_position WHERE gutschrift='$id'"); - - $summeV = $this->app->DB->Select("SELECT SUM(menge*preis) FROM gutschrift_position WHERE gutschrift='$id' AND (umsatzsteuer='normal' or umsatzsteuer='')")/100 * 19; - $summeR = $this->app->DB->Select("SELECT SUM(menge*preis) FROM gutschrift_position WHERE gutschrift='$id' AND umsatzsteuer='ermaessigt'")/100 * 7; - */ - if($this->app->erp->GutschriftMitUmsatzeuer($id)) - { - $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $gesamtsteuern,"summen"=>$summen,"totalTaxV"=>0,"totalTaxR"=>0)); - //$this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $summeV + $summeR,"totalTaxV"=>$summeV,"totalTaxR"=>$summeR)); - } else - $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe)); - - /* Dateiname */ - $tmp_name = str_replace(' ','',trim($this->recipient['enterprise'])); - $tmp_name = str_replace('.','',$tmp_name); - - if($stornorechnung) - $this->filename = $datum2."_STORNO_".$belegnr.".pdf"; - else - $this->filename = $datum2."_GS".$belegnr.".pdf"; - - $this->setBarcode($belegnr); - } - - -} +app=$app; + //parent::Briefpapier(); + $this->doctype="gutschrift"; + $this->doctypeOrig="Gutschrift"; + parent::__construct($this->app,$projekt); + } + + + function GetGutschrift($id) + { + $this->doctypeid = $id; + + if($this->app->erp->Firmendaten("steuerspalteausblenden")=="1") + { + // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden + $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); + if(!empty($check)?count($check):0>1)$this->ust_spalteausblende=false; + else $this->ust_spalteausblende=true; + } + + $briefpapier_bearbeiter_ausblenden = $this->app->erp->Firmendaten('briefpapier_bearbeiter_ausblenden'); + $briefpapier_vertrieb_ausblenden = $this->app->erp->Firmendaten('briefpapier_vertrieb_ausblenden'); + //$this->setRecipientDB($adresse); + $this->setRecipientLieferadresse($id,"gutschrift"); + + $data = $this->app->DB->SelectRow( + "SELECT adresse,kundennummer, sprache, rechnungid, buchhaltung, bearbeiter, vertrieb, + lieferschein AS lieferscheinid, DATE_FORMAT(datum,'%d.%m.%Y') AS datum, + DATE_FORMAT(lieferdatum,'%d.%m.%Y') AS lieferdatum, belegnr, freitext, ustid, ust_befreit, + stornorechnung, keinsteuersatz, land, typ, zahlungsweise, zahlungsstatus, zahlungszieltage, + zahlungszielskonto, projekt, waehrung, bodyzusatz, + DATE_FORMAT(DATE_ADD(datum, INTERVAL zahlungszieltage DAY),'%d.%m.%Y') AS zahlungsdatum, + ohne_briefpapier, ihrebestellnummer,DATE_FORMAT(datum,'%Y%m%d') as datum2, email, telefon + FROM gutschrift WHERE id='$id' LIMIT 1" + ); + extract($data,EXTR_OVERWRITE); + $adresse = $data['adresse']; + $kundennummer = $data['kundennummer']; + $sprache = $data['sprache']; + $rechnungid = $data['rechnungid']; + $buchhaltung = $data['buchhaltung']; + $email = $data['email']; + $telefon = $data['telefon']; + $bearbeiter = $data['bearbeiter']; + $vertrieb = $data['vertrieb']; + $lieferscheinid = $data['lieferscheinid']; + $datum = $data['datum']; + $lieferdatum = $data['lieferdatum']; + $belegnr = $data['belegnr']; + $freitext = $data['freitext']; + $ustid = $data['ustid']; + $ust_befreit = $data['ust_befreit']; + $stornorechnung = $data['stornorechnung']; + $keinsteuersatz = $data['keinsteuersatz']; + $land = $data['land']; + $typ = $data['typ']; + $zahlungsweise = $data['zahlungsweise']; + $zahlungszieltage = $data['zahlungszieltage']; + + $zahlungszielskonto = $data['zahlungszielskonto']; + $projekt = $data['projekt']; + $waehrung = $data['waehrung']; + $bodyzusatz = $data['bodyzusatz']; + $zahlungsdatum = $data['zahlungsdatum']; + $ohne_briefpapier = $data['ohne_briefpapier']; + $ihrebestellnummer = $data['ihrebestellnummer']; + $datum2 = $data['datum2']; + $projektabkuerzung = $this->app->DB->Select(sprintf('SELECT abkuerzung FROM projekt WHERE id = %d', $projekt)); + $kundennummer = $this->app->DB->Select("SELECT kundennummer FROM adresse WHERE id='$adresse' LIMIT 1"); + if(empty($sprache)){ + $sprache = $this->app->DB->Select("SELECT sprache FROM adresse WHERE id='$adresse' LIMIT 1"); + } + $lieferschein = $this->app->DB->Select("SELECT belegnr FROM lieferschein WHERE id='$lieferscheinid' LIMIT 1"); + $lieferscheindatum = $this->app->DB->Select("SELECT DATE_FORMAT(datum, '%d.%m.%Y') AS datum FROM lieferschein WHERE id = '$lieferscheinid' LIMIT 1"); + $rechnung = $this->app->DB->Select("SELECT belegnr FROM rechnung WHERE id='$rechnungid' LIMIT 1"); + $rechnungsdatum = $this->app->DB->Select("SELECT DATE_FORMAT(datum, '%d.%m.%Y') AS datum FROM rechnung WHERE id = '$rechnungid' LIMIT 1"); + $auftrag = $this->app->DB->Select("SELECT auftrag FROM rechnung WHERE id = '$rechnungid' LIMIT 1"); + + $ihrebestellnummer = $this->app->erp->ReadyForPDF($ihrebestellnummer); + $bearbeiter = $this->app->erp->ReadyForPDF($bearbeiter); + $vertrieb = $this->app->erp->ReadyForPDF($vertrieb); + + $this->app->erp->BeschriftungSprache($sprache); + if($waehrung)$this->waehrung = $waehrung; + $this->sprache = $sprache; + $this->projekt = $projekt; + $this->anrede = $typ; + + if($vertrieb==$bearbeiter && (!$briefpapier_bearbeiter_ausblenden && !$briefpapier_vertrieb_ausblenden)) $vertrieb=""; + + if($ohne_briefpapier=="1") + { + $this->logofile = ""; + $this->briefpapier=""; + $this->briefpapier2=""; + } + + // $zahlungsweise = strtolower($zahlungsweise); + + if($zahlungsweise=="lastschrift" || $zahlungsweise=="einzugsermaechtigung") + { + $zahlungsweisetext = "\n".$this->app->erp->Beschriftung("dokument_offene_lastschriften"); + } + + //if($zahlungszielskonto>0) $zahlungsweisetext .= "\n".$this->app->erp->Beschriftung("dokument_skonto")." $zahlungszielskonto% ".$this->app->erp->Beschriftung("dokument_auszahlungskonditionen"); + + if($zahlungszielskonto!=0) + $zahlungsweisetext .="\r\n".$this->app->erp->Beschriftung("dokument_skontoanderezahlungsweisen"); + + $zahlungsweisetext = str_replace('{ZAHLUNGSZIELSKONTO}',number_format($zahlungszielskonto,2,',','.'),$zahlungsweisetext); + + if($belegnr=="" || $belegnr=="0") $belegnr = "- ".$this->app->erp->Beschriftung("dokument_entwurf"); + + + if($stornorechnung) + $this->doctypeOrig=$this->app->erp->Beschriftung("bezeichnungstornorechnung")." $belegnr"; + else + $this->doctypeOrig=$this->app->erp->Beschriftung("dokument_gutschrift")." $belegnr"; + + if($gutschrift=="") $gutschrift = "-"; + if($kundennummer=="") $kundennummer= "-"; + + if($auftrag=="0") $auftrag = "-"; + if($lieferschein=="0") $lieferschein= "-"; + + $bearbeiteremail = $this->app->DB->Select("SELECT b.email FROM gutschrift g LEFT JOIN adresse b ON b.id=g.bearbeiterid WHERE g.id='$id' LIMIT 1"); + $bearbeitertelefon = $this->app->DB->Select("SELECT b.telefon FROM gutschrift g LEFT JOIN adresse b ON b.id=g.bearbeiterid WHERE g.id='$id' LIMIT 1"); + + /** @var \Xentral\Modules\Company\Service\DocumentCustomizationService $service */ + $service = $this->app->Container->get('DocumentCustomizationService'); + if($block = $service->findActiveBlock('corr', 'credit_note', $projekt)) { + $sCD = $service->parseBlockAsArray($this->getLanguageCodeFrom($this->sprache),'corr', 'credit_note',[ + 'GUTSCHRIFTSNUMMER' => $belegnr, + 'DATUM' => $datum, + 'RECHNUNGSNUMMER' => $rechnung, + 'RECHNUNGSDATUM' => $rechnungsdatum, + 'KUNDENNUMMER' => $kundennummer, + 'BEARBEITER' => $bearbeiter, + 'BEARBEITEREMAIL' => $bearbeiteremail, + 'BEARBEITERTELEFON' => $bearbeitertelefon, + 'VERTRIEB' => $vertrieb, + 'PROJEKT' => $projektabkuerzung, + 'AUFTRAGSNUMMER' => $auftrag, + 'LIEFERSCHEINNUMMER' => $lieferschein, + 'LIEFERSCHEINDATUM' => $lieferscheindatum, + 'EMAIL' => $email, + 'TELEFON' => $telefon + + + + ], $projekt); + if(!empty($sCD)) { + switch($block['fontstyle']) { + case 'f': + $this->setBoldCorrDetails($sCD); + break; + case 'i': + $this->setItalicCorrDetails($sCD); + break; + case 'fi': + $this->setItalicBoldCorrDetails($sCD); + break; + default: + $this->setCorrDetails($sCD, true); + break; + } + } + } + else{ + + //$this->setCorrDetails(array("Auftrag"=>$auftrag,"Datum"=>$datum,"Ihre Kunden-Nr."=>$kundennummer,"Lieferschein"=>$lieferschein,"Buchhaltung"=>$buchhaltung)); + if($briefpapier_bearbeiter_ausblenden || $briefpapier_vertrieb_ausblenden){ + if($rechnung != ""){ + $sCD = array($this->app->erp->Beschriftung("dokument_rechnung") => $rechnung, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer); + }else{ + $sCD = array($this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer); + //$this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_datum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer)); + } + if(!$briefpapier_bearbeiter_ausblenden){ + if($bearbeiter) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")] = $bearbeiter; + }elseif(!$briefpapier_vertrieb_ausblenden){ + if($vertrieb) $sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")] = $vertrieb; + } + + }else{ + if($rechnung != "") + $sCD = array($this->app->erp->Beschriftung("dokument_rechnung") => $rechnung, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer, $this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter, $this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb") => $vertrieb); + else + $sCD = array($this->app->erp->Beschriftung("dokument_datum") => $datum, $this->app->erp->Beschriftung("bezeichnungkundennummer") => $kundennummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer") => $ihrebestellnummer, $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter") => $bearbeiter, $this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb") => $vertrieb); + } + + if($lieferdatum != "00.00.0000") + $sCD[$this->app->erp->Beschriftung("dokument_lieferdatum")] = $lieferdatum; + + + $this->setCorrDetails($sCD); + } + + if($keinsteuersatz!="1") + { + + if($ust_befreit==2)//$this->app->erp->Export($land)) + $steuer = $this->app->erp->Beschriftung("export_lieferung_vermerk"); + else { + if($ust_befreit==1 && $ustid!="")//$this->app->erp->IstEU($land)) + $steuer = $this->app->erp->Beschriftung("eu_lieferung_vermerk"); + } + $steuer = str_replace('{USTID}',$ustid,$steuer); + $steuer = str_replace('{LAND}',$land,$steuer); + } + + $gutschrift_header=$this->app->erp->Beschriftung("gutschrift_header"); + if($bodyzusatz!="") $gutschrift_header=$gutschrift_header."\r\n".$bodyzusatz; + + if($stornorechnung) + { + $gutschrift_header = str_replace('{ART}',$this->app->erp->Beschriftung("bezeichnungstornorechnung"),$gutschrift_header); + } else { + $gutschrift_header = str_replace('{ART}',$this->app->erp->Beschriftung("dokument_gutschrift"),$gutschrift_header); + } + + $gutschrift_header = $this->app->erp->ParseUserVars("gutschrift",$id,$gutschrift_header); + + + if($this->app->erp->Firmendaten("footer_reihenfolge_gutschrift_aktivieren")=="1") { + $footervorlage = $this->app->erp->Firmendaten("footer_reihenfolge_gutschrift"); + if($footervorlage=="") + $footervorlage = "{FOOTERFREITEXT}\r\n{FOOTERTEXTVORLAGEGUTSCHRIFT}\r\n{FOOTERSTEUER}\r\n{FOOTERZAHLUNGSWEISETEXT}"; + + $footervorlage = str_replace('{FOOTERFREITEXT}',$freitext,$footervorlage); + $footervorlage = str_replace('{FOOTERTEXTVORLAGEGUTSCHRIFT}',$this->app->erp->Beschriftung("gutschrift_footer"),$footervorlage); + $footervorlage = str_replace('{FOOTERSTEUER}',$steuer,$footervorlage); + $footervorlage = str_replace('{FOOTERZAHLUNGSWEISETEXT}',$zahlungsweisetext,$footervorlage); + $footervorlage = $this->app->erp->ParseUserVars("gutschrift",$id,$footervorlage); + $footer = $footervorlage; + } else { + $footer = "$freitext"."\r\n".$this->app->erp->ParseUserVars("gutschrift",$id,$this->app->erp->Beschriftung("gutschrift_footer"))."\r\n$zahlungsweisetext\r\n$steuer"; + } + + + $this->setTextDetails(array( + "body"=>$gutschrift_header, + "footer"=>$footer)); + + $artikel = $this->app->DB->SelectArr("SELECT * FROM gutschrift_position WHERE gutschrift='$id' ORDER By sort"); + + if(!$this->app->erp->GutschriftMitUmsatzeuer($id)) $this->ust_befreit=true; + + $summe_rabatt = $this->app->DB->Select("SELECT SUM(rabatt) FROM gutschrift_position WHERE gutschrift='$id'"); + if($summe_rabatt <> 0) $this->rabatt=1; + + if($this->app->erp->Firmendaten("modul_verband")=="1") $this->rabatt=1; + + //$waehrung = $this->app->DB->Select("SELECT waehrung FROM gutschrift_position WHERE gutschrift='$id' LIMIT 1"); + $steuersatzV = $this->app->erp->GetSteuersatzNormal(false,$id,"gutschrift"); + $steuersatzR = $this->app->erp->GetSteuersatzErmaessigt(false,$id,"gutschrift"); + $gesamtsteuern = 0; + $mitumsatzsteuer = $this->app->erp->GutschriftMitUmsatzeuer($id); + $belege_subpositionenstuecklisten = $this->app->erp->Firmendaten('belege_subpositionenstuecklisten'); + $belege_stuecklisteneinrueckenmm = $this->app->erp->Firmendaten('belege_stuecklisteneinrueckenmm'); + //$positionenkaufmaenischrunden = $this->app->erp->Firmendaten('positionenkaufmaenischrunden'); + $positionenkaufmaenischrunden = $this->app->erp->Projektdaten($projekt,"preisberechnung"); + $viernachkommastellen_belege = $this->app->erp->Firmendaten('viernachkommastellen_belege'); + foreach($artikel as $key=>$value) + { + if($value['umsatzsteuer'] != "ermaessigt" && $value['umsatzsteuer'] != "befreit") $value['umsatzsteuer'] = "normal"; + $tmpsteuersatz = null; + $tmpsteuertext = null; + $this->app->erp->GetSteuerPosition('gutschrift', $value['id'],$tmpsteuersatz, $tmpsteuertext); + if(is_null($value['steuersatz']) || $value['steuersatz'] < 0) + { + if($value['umsatzsteuer'] == "ermaessigt") + { + $value['steuersatz'] = $steuersatzR; + }elseif($value['umsatzsteuer'] == "befreit") + { + $value['steuersatz'] = $steuersatzR; + }else{ + $value['steuersatz'] = $steuersatzV; + } + if(!is_null($tmpsteuersatz))$value['steuersatz'] = $tmpsteuersatz; + } + if($tmpsteuertext && !$value['steuertext'])$value['steuertext'] = $tmpsteuertext; + if(!$mitumsatzsteuer)$value['steuersatz'] = 0; + // negative Darstellung bei Stornorechnung + if($stornorechnung) $value['preis'] = $value['preis'] *-1; + + if(!$this->app->erp->Export($land)) + { + $value['zolltarifnummer']=""; + $value['herkunftsland']=""; + } + + $value = $this->CheckPosition($value,"gutschrift",$this->doctypeid,$value['id']); + + $value['menge'] = floatval($value['menge']); + + if($value['explodiert_parent_artikel'] > 0) + { + if($belege_subpositionenstuecklisten || $belege_stuecklisteneinrueckenmm)$value['bezeichnung'] = ltrim(ltrim($value['bezeichnung'],'*')); + if(isset($lvl) && isset($lvl[$value['explodiert_parent_artikel']])) + { + $value['lvl'] = $lvl[$value['explodiert_parent_artikel']] + 1; + }else{ + $value['lvl'] = 1; + } + $lvl[$value['artikel']] = $value['lvl']; + $check_ausblenden = $this->app->DB->Select("SELECT keineeinzelartikelanzeigen FROM artikel WHERE id='".$value['explodiert_parent_artikel']."' LIMIT 1"); + if(!$check_ausblenden && isset($ausblenden) && in_array($value['explodiert_parent_artikel'], $ausblenden)) + { + $check_ausblenden = true; + } + if($check_ausblenden) + { + $ausblenden[] = $value['artikel']; + } + } else + { + $check_ausblenden=0; + $lvl[$value['artikel']] = 0; + $value['lvl'] = 0; + } + + if($value['ausblenden_im_pdf']) $check_ausblenden=1; + + $ohne_artikeltext = $this->app->DB->Select("SELECT ohne_artikeltext FROM ".$this->table." WHERE id='".$this->id."' LIMIT 1"); + if($ohne_artikeltext=="1") $value['beschreibung']=""; + + if($check_ausblenden!=1) + { + $this->addItem(array('currency'=>$value['waehrung'],'lvl'=>isset($value['lvl'])?$value['lvl']:0, + 'amount'=>$value['menge'], + 'price'=>$value['preis'], + 'tax'=>$value['umsatzsteuer'], + 'steuersatz'=>$value['steuersatz'], + 'steuertext'=>$value['steuertext'], + 'itemno'=>$value['nummer'], + 'artikel'=>$value['artikel'], + 'unit'=>$value['einheit'], + 'desc'=>$value['beschreibung'], + "name"=>ltrim($value['bezeichnung']), + 'artikelnummerkunde'=>$value['artikelnummerkunde'], + 'lieferdatum'=>$value['lieferdatum'], + 'lieferdatumkw'=>$value['lieferdatumkw'], + 'zolltarifnummer'=>$value['zolltarifnummer'], + 'herkunftsland'=>$value['herkunftsland'], + 'ohnepreis'=>$value['ohnepreis'], + 'grundrabatt'=>$value['grundrabatt'], + 'rabatt1'=>$value['rabatt1'], + 'rabatt2'=>$value['rabatt2'], + 'rabatt3'=>$value['rabatt3'], + 'rabatt4'=>$value['rabatt4'], + 'rabatt5'=>$value['rabatt5'], + 'freifeld1'=>$value['freifeld1'], + 'freifeld2'=>$value['freifeld2'], + 'freifeld3'=>$value['freifeld3'], + 'freifeld4'=>$value['freifeld4'], + 'freifeld5'=>$value['freifeld5'], + 'freifeld6'=>$value['freifeld6'], + 'freifeld7'=>$value['freifeld7'], + 'freifeld8'=>$value['freifeld8'], + 'freifeld9'=>$value['freifeld9'], + 'freifeld10'=>$value['freifeld10'], + 'freifeld11'=>$value['freifeld11'], + 'freifeld12'=>$value['freifeld12'], + 'freifeld13'=>$value['freifeld13'], + 'freifeld14'=>$value['freifeld14'], + 'freifeld15'=>$value['freifeld15'], + 'freifeld16'=>$value['freifeld16'], + 'freifeld17'=>$value['freifeld17'], + 'freifeld18'=>$value['freifeld18'], + 'freifeld19'=>$value['freifeld19'], + 'freifeld20'=>$value['freifeld20'], + 'freifeld21'=>$value['freifeld21'], + 'freifeld22'=>$value['freifeld22'], + 'freifeld23'=>$value['freifeld23'], + 'freifeld24'=>$value['freifeld24'], + 'freifeld25'=>$value['freifeld25'], + 'freifeld26'=>$value['freifeld26'], + 'freifeld27'=>$value['freifeld27'], + 'freifeld28'=>$value['freifeld28'], + 'freifeld29'=>$value['freifeld29'], + 'freifeld30'=>$value['freifeld30'], + 'freifeld31'=>$value['freifeld31'], + 'freifeld32'=>$value['freifeld32'], + 'freifeld33'=>$value['freifeld33'], + 'freifeld34'=>$value['freifeld34'], + 'freifeld35'=>$value['freifeld35'], + 'freifeld36'=>$value['freifeld36'], + 'freifeld37'=>$value['freifeld37'], + 'freifeld38'=>$value['freifeld38'], + 'freifeld39'=>$value['freifeld39'], + 'freifeld40'=>$value['freifeld40'], + "keinrabatterlaubt"=>$value['keinrabatterlaubt'], + "rabatt"=>$value['rabatt'])); + } + if($positionenkaufmaenischrunden == 3){ + $netto_gesamt = $value['menge'] * round($value['preis'] - ($value['preis'] / 100 * $value['rabatt']),2); + }else{ + $netto_gesamt = $value['menge'] * ($value['preis'] - ($value['preis'] / 100 * $value['rabatt'])); + } + if($positionenkaufmaenischrunden) + { + $netto_gesamt = round($netto_gesamt, 2); + } + $summe = $summe + $netto_gesamt; + if(!isset($summen[$value['steuersatz']]))$summen[$value['steuersatz']] = 0; + $summen[$value['steuersatz']] += ($netto_gesamt/100)*$value['steuersatz']; + $gesamtsteuern +=($netto_gesamt/100)*$value['steuersatz']; + /* + if($value['umsatzsteuer']=="" || $value['umsatzsteuer']=="normal") + { + $summeV = $summeV + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzNormal(false,$id,"gutschrift")); + } + else { + $summeR = $summeR + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzErmaessigt(false,$id,"gutschrift")); + }*/ + + } + + if($positionenkaufmaenischrunden && isset($summen) && is_array($summen)) + { + $gesamtsteuern = 0; + foreach($summen as $k => $v) + { + $summen[$k] = round($v, 2); + $gesamtsteuern += round($v, 2); + } + } + if($positionenkaufmaenischrunden) + { + list($summe,$gesamtsumme, $summen) = $this->app->erp->steuerAusBelegPDF($this->table, $this->id); + $gesamtsteuern = $gesamtsumme - $summe; + } + + /* + $summe = $this->app->DB->Select("SELECT SUM(menge*preis) FROM gutschrift_position WHERE gutschrift='$id'"); + + $summeV = $this->app->DB->Select("SELECT SUM(menge*preis) FROM gutschrift_position WHERE gutschrift='$id' AND (umsatzsteuer='normal' or umsatzsteuer='')")/100 * 19; + $summeR = $this->app->DB->Select("SELECT SUM(menge*preis) FROM gutschrift_position WHERE gutschrift='$id' AND umsatzsteuer='ermaessigt'")/100 * 7; + */ + if($this->app->erp->GutschriftMitUmsatzeuer($id)) + { + $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $gesamtsteuern,"summen"=>$summen,"totalTaxV"=>0,"totalTaxR"=>0)); + //$this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $summeV + $summeR,"totalTaxV"=>$summeV,"totalTaxR"=>$summeR)); + } else + $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe)); + + /* Dateiname */ + $tmp_name = str_replace(' ','',trim($this->recipient['enterprise'])); + $tmp_name = str_replace('.','',$tmp_name); + + if($stornorechnung) + $this->filename = $datum2."_STORNO_".$belegnr.".pdf"; + else + $this->filename = $datum2."_GS".$belegnr.".pdf"; + + $this->setBarcode($belegnr); + } + + +} diff --git a/www/lib/dokumente/class.proformarechnung.php b/www/lib/dokumente/class.proformarechnung.php index f27c3c60..8ad3f647 100644 --- a/www/lib/dokumente/class.proformarechnung.php +++ b/www/lib/dokumente/class.proformarechnung.php @@ -1,577 +1,577 @@ -app=$app; - //parent::Briefpapier(); - $this->doctype="proformarechnung"; - $this->doctypeOrig=($this->app->erp->Beschriftung("bezeichnungproformarechnungersatz")?$this->app->erp->Beschriftung("bezeichnungproformarechnungersatz"):$this->app->erp->Beschriftung("dokument_proformarechnung"))." $belegnr"; - parent::__construct($this->app,$projekt); - } - - function GetProformarechnung($id,$als="",$doppeltmp=0, $_datum = null) - { - - if($this->app->erp->Firmendaten("steuerspalteausblenden")=="1") - { - // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden - $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); - if(count($check)>1)$this->ust_spalteausblende=false; - else $this->ust_spalteausblende=true; - } - - $briefpapier_bearbeiter_ausblenden = $this->app->erp->Firmendaten('briefpapier_bearbeiter_ausblenden'); - $briefpapier_vertrieb_ausblenden = $this->app->erp->Firmendaten('briefpapier_vertrieb_ausblenden'); - $this->doctypeid=$id; - $this->setRecipientLieferadresse($id,"proformarechnung"); - - $data = $this->app->DB->SelectArr( - "SELECT adresse, kundennummer, sprache, auftrag, buchhaltung, bearbeiter, vertrieb, - lieferschein AS lieferscheinid, projekt, DATE_FORMAT(datum,'%d.%m.%Y') AS datum, - DATE_FORMAT(mahnwesen_datum,'%d.%m.%Y') AS mahnwesen_datum, DATE_FORMAT(lieferdatum,'%d.%m.%Y') AS lieferdatum, - belegnr, bodyzusatz, doppel, freitext, systemfreitext, ustid, typ, keinsteuersatz, soll, ist, land, - zahlungsweise, zahlungsstatus, zahlungszieltage, zahlungszieltageskonto, zahlungszielskonto, ohne_briefpapier, - ihrebestellnummer, ust_befreit, waehrung, versandart, - DATE_FORMAT(DATE_ADD(datum, INTERVAL zahlungszieltage DAY),'%d.%m.%Y') AS zahlungdatum, - DATE_FORMAT(DATE_ADD(datum, INTERVAL zahlungszieltageskonto DAY),'%d.%m.%Y') AS zahlungszielskontodatum, - abweichendebezeichnung AS proformarechnungersatz, zollinformation, lieferland, abweichendelieferadresse - FROM proformarechnung WHERE id='$id' LIMIT 1" - ); - $data = reset($data); - extract($data,EXTR_OVERWRITE); - - if($abweichendelieferadresse==1 && !empty($lieferland)){ - $land = $lieferland; - } - - if(empty($kundennummer))$kundennummer = $this->app->DB->Select("SELECT kundennummer FROM adresse WHERE id='$adresse' LIMIT 1"); - if(empty($sprache))$sprache = $this->app->DB->Select("SELECT sprache FROM adresse WHERE id='$adresse' LIMIT 1"); - $trackingnummer = $this->app->DB->Select("SELECT tracking FROM versand WHERE proformarechnung='$id' LIMIT 1"); - $lieferschein = $this->app->DB->Select("SELECT belegnr FROM lieferschein WHERE id='$lieferschein' LIMIT 1"); - $this->app->erp->BeschriftungSprache($sprache); - - if($waehrung)$this->waehrung = $waehrung; - if($doppeltmp==1) $doppel = $doppeltmp; - $this->projekt = $projekt; - $this->anrede = $typ; - - $ihrebestellnummer = $this->app->erp->ReadyForPDF($ihrebestellnummer); - $bearbeiter = $this->app->erp->ReadyForPDF($bearbeiter); - $vertrieb = $this->app->erp->ReadyForPDF($vertrieb); - - $seriennummern = array(); - if($lieferscheinid)$seriennummern = $this->app->DB->SelectArr("SELECT * FROM seriennummern WHERE lieferschein='$lieferscheinid' AND lieferschein <> 0"); - $chargen = array(); - if($lieferscheinid)$chargen = $this->app->DB->SelectArr("SELECT * FROM chargen WHERE lieferschein='$lieferscheinid' AND lieferschein <> 0"); - - if($ohne_briefpapier=="1") - { - $this->logofile = ""; - $this->briefpapier=""; - $this->briefpapier2=""; - } - - if($zahlungszieltageskonto<=0) - $zahlungszielskontodatum = $zahlungdatum; - else - $zahlungszielskontodatum = $this->app->DB->Select("SELECT DATE_FORMAT(DATE_ADD(datum, INTERVAL $zahlungszieltageskonto DAY),'%d.%m.%Y') FROM proformarechnung WHERE id='$id' LIMIT 1"); - - if(!$this->app->erp->ProformarechnungMitUmsatzeuer($id)){ - $this->ust_befreit=true; - } - - - $zahlungsweise = strtolower($zahlungsweise); - //if($zahlungsweise=="proformarechnung"&&$zahlungsstatus!="bezahlt") -/* - if(1)$zahlungsweise=="rechnung" || $zahlungsweise=="einzugsermaechtigung" || $zahlungsweise=="lastschrift") - { - if($zahlungsweise=="rechnung") - { - } else { - //lastschrift - $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_".$zahlungsweise."_de"); - if($zahlungsweisetext=="") $zahlungsweisetext ="Der Betrag wird von Ihrem Konto abgebucht."; - if($zahlungszielskonto!=0) - $zahlungsweisetext .="\r\n".$this->app->erp->Beschriftung("dokument_skonto")." $zahlungszielskonto % aus Zahlungskonditionen"; - } - } - else { - $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_".$zahlungsweise."_de"); - if($zahlungsweisetext=="" || $zahlungsweise=="vorkasse") - $zahlungsweisetext = $this->app->erp->Beschriftung("dokument_zahlung_per")." ".ucfirst($zahlungsweise); - } -*/ - if($zahlungszieltage==0){ - $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_proformarechnung_sofort_de"); - if($zahlungsweisetext=="") $zahlungsweisetext ="Proformarechnung zahlbar sofort. "; - } - else { - $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_proformarechnung_de"); - if($zahlungsweisetext=="") $zahlungsweisetext ="Proformarechnung zahlbar innerhalb von {ZAHLUNGSZIELTAGE} Tagen bis zum {ZAHLUNGBISDATUM}. "; - $zahlungsweisetext = str_replace("{ZAHLUNGSZIELTAGE}",$zahlungszieltage,$zahlungsweisetext); - $zahlungsweisetext = str_replace("{ZAHLUNGBISDATUM}",$zahlungdatum,$zahlungsweisetext); - } - - if($zahlungszielskonto!=0) - { - $zahlungsweisetext .="\n".$this->app->erp->Beschriftung("dokument_skonto")." $zahlungszielskonto % ".$this->app->erp->Beschriftung("dokument_innerhalb")." $zahlungszieltageskonto ".$this->app->erp->Beschriftung("dokument_tagebiszum")." ".$zahlungszielskontodatum; - } - - - if($zahlungszielskonto!=0) - { - $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTO}",$zahlungszielskonto,$zahlungsweisetext); - $zahlungsweisetext = str_replace("{ZAHLUNGSZIELTAGESKONTO}",$zahlungszieltageskonto,$zahlungsweisetext); - $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTODATUM}",$zahlungszielskontodatum,$zahlungsweisetext); - } else { - $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTO}","",$zahlungsweisetext); - $zahlungsweisetext = str_replace("{ZAHLUNGSZIELTAGESKONTO}","",$zahlungsweisetext); - $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTODATUM}","",$zahlungsweisetext); - } - -/* - if($belegnr=="" || $belegnr=="0") $belegnr = "- ".$this->app->erp->Beschriftung("dokument_entwurf"); - else { - if($doppel==1 || $als=="doppel") - $belegnr .= " (".$this->app->erp->Beschriftung("dokument_proformarechnung_kopie").")"; - } -*/ - if($als=="zahlungserinnerung") - $this->doctypeOrig="Zahlungserinnerung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); - else if($als=="mahnung1") - $this->doctypeOrig="1. Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); - else if($als=="mahnung2") - $this->doctypeOrig="2. Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); - else if($als=="mahnung3") - $this->doctypeOrig="3. Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); - else if($als=="inkasso") - $this->doctypeOrig="Inkasso-Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); - else - { - if($proformarechnungersatz) - $this->doctypeOrig=($this->app->erp->Beschriftung("bezeichnungproformarechnungersatz")?$this->app->erp->Beschriftung("bezeichnungproformarechnungersatz"):$this->app->erp->Beschriftung("dokument_proformarechnung"))." $belegnr"; - else - $this->doctypeOrig=$this->app->erp->Beschriftung("dokument_proformarechnung")." $belegnr"; - } - - - - $this->zusatzfooter = " (RE$belegnr)"; - - if($proformarechnung=="") $proformarechnung = "-"; - if($kundennummer=="") $kundennummer= "-"; - - if($auftrag=="0") $auftrag = "-"; - if($lieferschein=="0") $lieferschein= "-"; - if($lieferschein=="") $lieferschein= "-"; - - $datumlieferschein = $this->app->DB->Select("SELECT DATE_FORMAT(datum, '%d.%m.%Y') - FROM lieferschein WHERE id='$lieferscheinid' LIMIT 1"); - - if($datumlieferschein=="00.00.0000") $datumlieferschein = $datum; - if($lieferdatum=="00.00.0000") $lieferdatum = $datum; - if($mahnwesen_datum=="00.00.0000") $mahnwesen_datum = ""; - - //* start - if($briefpapier_bearbeiter_ausblenden || $briefpapier_vertrieb_ausblenden) - { - if($lieferschein!='-') - { - if($auftrag!="-") - { - $sCD = array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein - ); - } - else - { - $sCD = array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein - ); - } - } - else { - if($auftrag!="-") - { - $sCD = array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum - ); - } - else - { - $sCD = array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, - $this->app->erp->Beschriftung("dokument_ansprechpartner")=>$buchhaltung - ); - } - } - if(!$briefpapier_bearbeiter_ausblenden) - { - if($bearbeiter)$sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")] = $bearbeiter; - }elseif(!$briefpapier_vertrieb_ausblenden) - { - if($vertrieb)$sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")] = $vertrieb; - } - $this->setCorrDetails($sCD); - - }else{ - if($vertrieb!=$bearbeiter) - { - if($lieferschein!='-') - { - if($auftrag!="-") - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, - $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb - )); - else - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, - $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb - )); - } - else { - if($auftrag!="-") - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, - $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb - )); - else - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, - $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb - )); - } - //*ende hack - } else { - //start hack - if($lieferschein!='-') - { - if($auftrag!="-") - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, - $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter - )); - else - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, - $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter - )); - } - else { - if($auftrag!="-") - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, - $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter - )); - else - $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, - $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, - $this->app->erp->Beschriftung("dokument_ansprechpartner")=>$buchhaltung - )); - } - } - } - //ende hack - - //if(!$this->app->erp->ProformarechnungMitUmsatzeuer($id) && $ustid!="" ) - if(!$this->app->erp->ProformarechnungMitUmsatzeuer($id) && $keinsteuersatz!="1") - { - $this->ust_befreit=true; - if($keinsteuersatz!="1"){ - if($this->app->erp->Export($land)) - $steuer = $this->app->erp->Beschriftung("export_lieferung_vermerk"); - else - $steuer = $this->app->erp->Beschriftung("eu_lieferung_vermerk"); - $steuer = str_replace('{USTID}',$ustid,$steuer); - $steuer = str_replace('{LAND}',$land,$steuer); - } - } - - if($als!="") - { - $body = $this->app->erp->MahnwesenBody($id,$als,$_datum); - $footer =$this->app->erp->ParseUserVars("proformarechnung",$id, $this->app->erp->Beschriftung("proformarechnung_footer")); - } - else { - $body = $this->app->erp->Beschriftung("proformarechnung_header"); - if($bodyzusatz!="") $body=$body."\r\n".$bodyzusatz; - $body = $this->app->erp->ParseUserVars("proformarechnung",$id,$body); - - if ($versandart!="" && $trackingnummer!=""){ - $versandinfo = "$versandart: $trackingnummer\r\n"; - }else{ $versandinfo ="";} - - - if($systemfreitext!="") $systemfreitext = "\r\n\r\n".$systemfreitext; - //$footer = $versandinfo."$freitext"."\r\n".$this->app->erp->ParseUserVars("proformarechnung",$id,$this->app->erp->Beschriftung("proformarechnung_footer"). - // "\r\n$steuer\r\n$zahlungsweisetext").$systemfreitext; - - - if($this->app->erp->Firmendaten("footer_reihenfolge_proformarechnung_aktivieren")=="1") - { - $footervorlage = $this->app->erp->Firmendaten("footer_reihenfolge_proformarechnung"); - if($footervorlage=="") $footervorlage = "{FOOTERVERSANDINFO}{FOOTERFREITEXT}\r\n{FOOTERTEXTVORLAGERECHNUNG}\r\n{FOOTERSTEUER}\r\n{FOOTERZAHLUNGSWEISETEXT}{FOOTERSYSTEMFREITEXT}"; - - $footervorlage = str_replace('{FOOTERVERSANDINFO}',$versandinfo,$footervorlage); - $footervorlage = str_replace('{FOOTERFREITEXT}',$freitext,$footervorlage); - $footervorlage = str_replace('{FOOTERTEXTVORLAGERECHNUNG}',$this->app->erp->Beschriftung("proformarechnung_footer"),$footervorlage); - $footervorlage = str_replace('{FOOTERSTEUER}',$steuer,$footervorlage); $footervorlage = str_replace('{FOOTERZAHLUNGSWEISETEXT}',$zahlungsweisetext,$footervorlage); - $footervorlage = str_replace('{FOOTERSYSTEMFREITEXT}',$systemfreitext,$footervorlage); - $footervorlage = $this->app->erp->ParseUserVars("proformarechnung",$id,$footervorlage); - $footer = $footervorlage; - } else { - $footer = $versandinfo."$freitext"."\r\n".$this->app->erp->ParseUserVars("proformarechnung",$id,$this->app->erp->Beschriftung("proformarechnung_footer"). - "\r\n$steuer\r\n$zahlungsweisetext").$systemfreitext; - } - } - - $this->setTextDetails(array( - "body"=>$body, - "footer"=>$footer)); - - $artikel = $this->app->DB->SelectArr("SELECT * FROM proformarechnung_position WHERE proformarechnung='$id' ORDER By sort"); - $summe_rabatt = $this->app->DB->Select("SELECT SUM(rabatt) FROM proformarechnung_position WHERE proformarechnung='$id'"); - if($summe_rabatt <> 0) $this->rabatt=1; - - if($this->app->erp->Firmendaten("modul_verband")=="1") $this->rabatt=1; - $steuersatzV = $this->app->erp->GetSteuersatzNormal(false,$id,"proformarechnung"); - $steuersatzR = $this->app->erp->GetSteuersatzErmaessigt(false,$id,"proformarechnung"); - $gesamtsteuern = 0; - $mitumsatzsteuer = $this->app->erp->ProformarechnungMitUmsatzeuer($id); - foreach($artikel as $key=>$value) - { - if($value['umsatzsteuer'] != "ermaessigt" && $value['umsatzsteuer'] != "befreit") $value['umsatzsteuer'] = "normal"; - $tmpsteuersatz = null; - $tmpsteuertext = null; - $this->app->erp->GetSteuerPosition('proformarechnung', $value['id'],$tmpsteuersatz, $tmpsteuertext); - if(is_null($value['steuersatz']) || $value['steuersatz'] < 0) - { - if($value['umsatzsteuer'] == "ermaessigt") - { - $value['steuersatz'] = $steuersatzR; - }elseif($value['umsatzsteuer'] == "befreit") - { - $value['steuersatz'] = 0; - }else{ - $value['steuersatz'] = $steuersatzV; - } - if(!is_null($tmpsteuersatz))$value['steuersatz'] = $tmpsteuersatz; - } - if($tmpsteuertext && !$value['steuertext'])$value['steuertext'] = $tmpsteuertext; - if(!$mitumsatzsteuer)$value['steuersatz'] = 0; - /* - $limit = 60; - $summary= $value['bezeichnung']; - if (strlen($summary) > $limit) - { - $value['desc']= $value['bezeichnung']; - $value['bezeichnung'] = substr($summary, 0, strrpos(substr($summary, 0, $limit), ' ')) . '...'; - } -*/ - - $value['herstellernummer'] = $this->app->DB->Select("SELECT herstellernummer FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - $value['hersteller'] = $this->app->DB->Select("SELECT hersteller FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - - if($zollinformation) - { - - if($value['gewicht']=="") $value['gewicht'] = $this->app->DB->Select("SELECT gewicht FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - if($value['zolltarifnummer']=="" || $value['zolltarifnummer']=="0") $value['zolltarifnummer'] = $this->app->DB->Select("SELECT zolltarifnummer FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - if($value['herkunftsland']=="" || $value['herkunftsland']=="0") $value['herkunftsland'] = $this->app->DB->Select("SELECT herkunftsland FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - - - $gewichtbezeichnung = $this->app->erp->Firmendaten('gewichtbezeichnung'); - if($gewichtbezeichnung=="") $gewichtbezeichnung = "kg"; - $value['beschreibung'] = $value['beschreibung']."\r\nCustoms tariff number: ".$value['zolltarifnummer']." Country of origin: ".$value['herkunftsland']; - if($value['gewicht']!="") $value['beschreibung'] = $value['beschreibung']."\r\nWeight: ".floatval($value['menge'])." x ".$value['gewicht']." ".$gewichtbezeichnung." = ".floatval($value['gewicht']*$value['menge'])." ".$gewichtbezeichnung; - } else { - $value['zolltarifnummer']=""; - $value['herkunftsland']=""; - } - - - if(!empty($seriennummern)) - { - foreach($seriennummern as $seriennummern=>$seriennummer) - { - $seriennummernliste = $seriennummernliste.$seriennummer['seriennummer'].";"; - } - - $seriennummernliste=substr($seriennummernliste, 0, -1); - - $value['seriennummern'] = $this->app->DB->Select("SELECT seriennummern FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - - if ($value['seriennummern']=="keine"){ - $value['beschreibung'] = $value['beschreibung']; - }elseif ($value['seriennummern']==""){ - $value['beschreibung'] = $value['beschreibung']; - }else{ - $value['beschreibung'] = $value['beschreibung']."\r\n".$this->app->erp->Beschriftung("dokument_seriennummer").": ". $seriennummernliste; - } - } - - if(!empty($chargen)) - { - foreach($chargen as $chargen=>$charge) - { - $chargenliste = $chargenliste.$charge['charge'].";"; - } - - $chargenliste=substr($chargenliste, 0, -1); - - $value['chargen'] = $this->app->DB->Select("SELECT chargenverwaltung FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); - - if ($value['chargen']=="0"){ - $value['beschreibung'] = $value['beschreibung']; - }else{ - $value['beschreibung'] = $value['beschreibung']."\r\n".$this->app->erp->Beschriftung("dokument_charge").": ". $chargenliste; - } - } - - - if($value['explodiert_parent_artikel'] > 0) - { - $check_ausblenden = $this->app->DB->Select("SELECT keineeinzelartikelanzeigen FROM artikel WHERE id='".$value['explodiert_parent_artikel']."' LIMIT 1"); - } else $check_ausblenden=0; - - $value = $this->CheckPosition($value,"proformarechnung",$this->doctypeid,$value['id']); - - $value['menge'] = floatval($value['menge']); - - if($check_ausblenden!=1)// && $als=="") //TODO MAHNWESEN - { - $this->addItem(array('currency'=>$value['waehrung'], - 'amount'=>$value['menge'], - 'price'=>$value['preis'], - 'tax'=>$value['umsatzsteuer'], - 'steuersatz'=>$value['steuersatz'], - 'itemno'=>$value['nummer'], - 'artikel'=>$value['artikel'], - 'unit'=>$value['einheit'], - 'desc'=>$value['beschreibung'], - 'hersteller'=>$value['hersteller'], - 'zolltarifnummer'=>$value['zolltarifnummer'], - 'herkunftsland'=>$value['herkunftsland'], - 'herstellernummer'=>trim($value['herstellernummer']), - 'artikelnummerkunde'=>$value['artikelnummerkunde'], - 'lieferdatum'=>$value['lieferdatum'], - 'lieferdatumkw'=>$value['lieferdatumkw'], - 'grundrabatt'=>$value['grundrabatt'], - 'rabatt1'=>$value['rabatt1'], - 'rabatt2'=>$value['rabatt2'], - 'rabatt3'=>$value['rabatt3'], - 'rabatt4'=>$value['rabatt4'], - 'rabatt5'=>$value['rabatt5'], - 'freifeld1'=>$value['freifeld1'], - 'freifeld2'=>$value['freifeld2'], - 'freifeld3'=>$value['freifeld3'], - 'freifeld4'=>$value['freifeld4'], - 'freifeld5'=>$value['freifeld5'], - 'freifeld6'=>$value['freifeld6'], - 'freifeld7'=>$value['freifeld7'], - 'freifeld8'=>$value['freifeld8'], - 'freifeld9'=>$value['freifeld9'], - 'freifeld10'=>$value['freifeld10'], - 'freifeld11'=>$value['freifeld11'], - 'freifeld12'=>$value['freifeld12'], - 'freifeld13'=>$value['freifeld13'], - 'freifeld14'=>$value['freifeld14'], - 'freifeld15'=>$value['freifeld15'], - 'freifeld16'=>$value['freifeld16'], - 'freifeld17'=>$value['freifeld17'], - 'freifeld18'=>$value['freifeld18'], - 'freifeld19'=>$value['freifeld19'], - 'freifeld20'=>$value['freifeld20'], - 'freifeld21'=>$value['freifeld21'], - 'freifeld22'=>$value['freifeld22'], - 'freifeld23'=>$value['freifeld23'], - 'freifeld24'=>$value['freifeld24'], - 'freifeld25'=>$value['freifeld25'], - 'freifeld26'=>$value['freifeld26'], - 'freifeld27'=>$value['freifeld27'], - 'freifeld28'=>$value['freifeld28'], - 'freifeld29'=>$value['freifeld29'], - 'freifeld30'=>$value['freifeld30'], - 'freifeld31'=>$value['freifeld31'], - 'freifeld32'=>$value['freifeld32'], - 'freifeld33'=>$value['freifeld33'], - 'freifeld34'=>$value['freifeld34'], - 'freifeld35'=>$value['freifeld35'], - 'freifeld36'=>$value['freifeld36'], - 'freifeld37'=>$value['freifeld37'], - 'freifeld38'=>$value['freifeld38'], - 'freifeld39'=>$value['freifeld39'], - 'freifeld40'=>$value['freifeld40'], - "name"=>ltrim($value['bezeichnung']), - 'steuertext'=>$value['steuertext'], - "rabatt"=>$value['rabatt'])); - } - $netto_gesamt = $value['menge']*($value['preis']-($value['preis']/100*$value['rabatt'])); - $summe = $summe + $netto_gesamt; - if(!isset($summen[$value['steuersatz']]))$summen[$value['steuersatz']] = 0; - $summen[$value['steuersatz']] += ($netto_gesamt/100)*$value['steuersatz']; - $gesamtsteuern +=($netto_gesamt/100)*$value['steuersatz']; - - /* - if($value['umsatzsteuer']=="" || $value['umsatzsteuer']=="normal") - { - $summeV = $summeV + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzNormal(false,$id,"proformarechnung")); - } - else { - $summeR = $summeR + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzErmaessigt(false,$id,"proformarechnung")); - }*/ - - - } - /* - $summe = $this->app->DB->Select("SELECT SUM(menge*preis) FROM proformarechnung_position WHERE proformarechnung='$id'"); - $summeV = $this->app->DB->Select("SELECT SUM(menge*preis) FROM proformarechnung_position WHERE proformarechnung='$id' AND (umsatzsteuer!='ermaessigt')")/100 * 19; - $summeR = $this->app->DB->Select("SELECT SUM(menge*preis) FROM proformarechnung_position WHERE proformarechnung='$id' AND umsatzsteuer='ermaessigt'")/100 * 7; - */ - if($this->app->erp->ProformarechnungMitUmsatzeuer($id)) - { - //$this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $summeV + $summeR,"totalTaxV"=>$summeV,"totalTaxR"=>$summeR)); - $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $gesamtsteuern,"summen"=>$summen,"totalTaxV"=>0,"totalTaxR"=>0)); - } else - { - $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe)); - } - - /* Dateiname */ - $tmp_name = str_replace(' ','',trim($this->recipient['enterprise'])); - $tmp_name = str_replace('.','',$tmp_name); - - $this->filename = $datum."_PRE".$belegnr.".pdf"; - - $this->setBarcode($belegnr); - } - - -} +app=$app; + //parent::Briefpapier(); + $this->doctype="proformarechnung"; + $this->doctypeOrig=($this->app->erp->Beschriftung("bezeichnungproformarechnungersatz")?$this->app->erp->Beschriftung("bezeichnungproformarechnungersatz"):$this->app->erp->Beschriftung("dokument_proformarechnung"))." $belegnr"; + parent::__construct($this->app,$projekt); + } + + function GetProformarechnung($id,$als="",$doppeltmp=0, $_datum = null) + { + + if($this->app->erp->Firmendaten("steuerspalteausblenden")=="1") + { + // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden + $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); + if(!empty($check)?count($check):0>1)$this->ust_spalteausblende=false; + else $this->ust_spalteausblende=true; + } + + $briefpapier_bearbeiter_ausblenden = $this->app->erp->Firmendaten('briefpapier_bearbeiter_ausblenden'); + $briefpapier_vertrieb_ausblenden = $this->app->erp->Firmendaten('briefpapier_vertrieb_ausblenden'); + $this->doctypeid=$id; + $this->setRecipientLieferadresse($id,"proformarechnung"); + + $data = $this->app->DB->SelectArr( + "SELECT adresse, kundennummer, sprache, auftrag, buchhaltung, bearbeiter, vertrieb, + lieferschein AS lieferscheinid, projekt, DATE_FORMAT(datum,'%d.%m.%Y') AS datum, + DATE_FORMAT(mahnwesen_datum,'%d.%m.%Y') AS mahnwesen_datum, DATE_FORMAT(lieferdatum,'%d.%m.%Y') AS lieferdatum, + belegnr, bodyzusatz, doppel, freitext, systemfreitext, ustid, typ, keinsteuersatz, soll, ist, land, + zahlungsweise, zahlungsstatus, zahlungszieltage, zahlungszieltageskonto, zahlungszielskonto, ohne_briefpapier, + ihrebestellnummer, ust_befreit, waehrung, versandart, + DATE_FORMAT(DATE_ADD(datum, INTERVAL zahlungszieltage DAY),'%d.%m.%Y') AS zahlungdatum, + DATE_FORMAT(DATE_ADD(datum, INTERVAL zahlungszieltageskonto DAY),'%d.%m.%Y') AS zahlungszielskontodatum, + abweichendebezeichnung AS proformarechnungersatz, zollinformation, lieferland, abweichendelieferadresse + FROM proformarechnung WHERE id='$id' LIMIT 1" + ); + $data = reset($data); + extract($data,EXTR_OVERWRITE); + + if($abweichendelieferadresse==1 && !empty($lieferland)){ + $land = $lieferland; + } + + if(empty($kundennummer))$kundennummer = $this->app->DB->Select("SELECT kundennummer FROM adresse WHERE id='$adresse' LIMIT 1"); + if(empty($sprache))$sprache = $this->app->DB->Select("SELECT sprache FROM adresse WHERE id='$adresse' LIMIT 1"); + $trackingnummer = $this->app->DB->Select("SELECT tracking FROM versand WHERE proformarechnung='$id' LIMIT 1"); + $lieferschein = $this->app->DB->Select("SELECT belegnr FROM lieferschein WHERE id='$lieferschein' LIMIT 1"); + $this->app->erp->BeschriftungSprache($sprache); + + if($waehrung)$this->waehrung = $waehrung; + if($doppeltmp==1) $doppel = $doppeltmp; + $this->projekt = $projekt; + $this->anrede = $typ; + + $ihrebestellnummer = $this->app->erp->ReadyForPDF($ihrebestellnummer); + $bearbeiter = $this->app->erp->ReadyForPDF($bearbeiter); + $vertrieb = $this->app->erp->ReadyForPDF($vertrieb); + + $seriennummern = array(); + if($lieferscheinid)$seriennummern = $this->app->DB->SelectArr("SELECT * FROM seriennummern WHERE lieferschein='$lieferscheinid' AND lieferschein <> 0"); + $chargen = array(); + if($lieferscheinid)$chargen = $this->app->DB->SelectArr("SELECT * FROM chargen WHERE lieferschein='$lieferscheinid' AND lieferschein <> 0"); + + if($ohne_briefpapier=="1") + { + $this->logofile = ""; + $this->briefpapier=""; + $this->briefpapier2=""; + } + + if($zahlungszieltageskonto<=0) + $zahlungszielskontodatum = $zahlungdatum; + else + $zahlungszielskontodatum = $this->app->DB->Select("SELECT DATE_FORMAT(DATE_ADD(datum, INTERVAL $zahlungszieltageskonto DAY),'%d.%m.%Y') FROM proformarechnung WHERE id='$id' LIMIT 1"); + + if(!$this->app->erp->ProformarechnungMitUmsatzeuer($id)){ + $this->ust_befreit=true; + } + + + $zahlungsweise = strtolower($zahlungsweise); + //if($zahlungsweise=="proformarechnung"&&$zahlungsstatus!="bezahlt") +/* + if(1)$zahlungsweise=="rechnung" || $zahlungsweise=="einzugsermaechtigung" || $zahlungsweise=="lastschrift") + { + if($zahlungsweise=="rechnung") + { + } else { + //lastschrift + $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_".$zahlungsweise."_de"); + if($zahlungsweisetext=="") $zahlungsweisetext ="Der Betrag wird von Ihrem Konto abgebucht."; + if($zahlungszielskonto!=0) + $zahlungsweisetext .="\r\n".$this->app->erp->Beschriftung("dokument_skonto")." $zahlungszielskonto % aus Zahlungskonditionen"; + } + } + else { + $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_".$zahlungsweise."_de"); + if($zahlungsweisetext=="" || $zahlungsweise=="vorkasse") + $zahlungsweisetext = $this->app->erp->Beschriftung("dokument_zahlung_per")." ".ucfirst($zahlungsweise); + } +*/ + if($zahlungszieltage==0){ + $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_proformarechnung_sofort_de"); + if($zahlungsweisetext=="") $zahlungsweisetext ="Proformarechnung zahlbar sofort. "; + } + else { + $zahlungsweisetext = $this->app->erp->Beschriftung("zahlung_proformarechnung_de"); + if($zahlungsweisetext=="") $zahlungsweisetext ="Proformarechnung zahlbar innerhalb von {ZAHLUNGSZIELTAGE} Tagen bis zum {ZAHLUNGBISDATUM}. "; + $zahlungsweisetext = str_replace("{ZAHLUNGSZIELTAGE}",$zahlungszieltage,$zahlungsweisetext); + $zahlungsweisetext = str_replace("{ZAHLUNGBISDATUM}",$zahlungdatum,$zahlungsweisetext); + } + + if($zahlungszielskonto!=0) + { + $zahlungsweisetext .="\n".$this->app->erp->Beschriftung("dokument_skonto")." $zahlungszielskonto % ".$this->app->erp->Beschriftung("dokument_innerhalb")." $zahlungszieltageskonto ".$this->app->erp->Beschriftung("dokument_tagebiszum")." ".$zahlungszielskontodatum; + } + + + if($zahlungszielskonto!=0) + { + $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTO}",$zahlungszielskonto,$zahlungsweisetext); + $zahlungsweisetext = str_replace("{ZAHLUNGSZIELTAGESKONTO}",$zahlungszieltageskonto,$zahlungsweisetext); + $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTODATUM}",$zahlungszielskontodatum,$zahlungsweisetext); + } else { + $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTO}","",$zahlungsweisetext); + $zahlungsweisetext = str_replace("{ZAHLUNGSZIELTAGESKONTO}","",$zahlungsweisetext); + $zahlungsweisetext = str_replace("{ZAHLUNGSZIELSKONTODATUM}","",$zahlungsweisetext); + } + +/* + if($belegnr=="" || $belegnr=="0") $belegnr = "- ".$this->app->erp->Beschriftung("dokument_entwurf"); + else { + if($doppel==1 || $als=="doppel") + $belegnr .= " (".$this->app->erp->Beschriftung("dokument_proformarechnung_kopie").")"; + } +*/ + if($als=="zahlungserinnerung") + $this->doctypeOrig="Zahlungserinnerung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); + else if($als=="mahnung1") + $this->doctypeOrig="1. Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); + else if($als=="mahnung2") + $this->doctypeOrig="2. Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); + else if($als=="mahnung3") + $this->doctypeOrig="3. Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); + else if($als=="inkasso") + $this->doctypeOrig="Inkasso-Mahnung vom ".(is_null($_datum)?$mahnwesen_datum:$_datum); + else + { + if($proformarechnungersatz) + $this->doctypeOrig=($this->app->erp->Beschriftung("bezeichnungproformarechnungersatz")?$this->app->erp->Beschriftung("bezeichnungproformarechnungersatz"):$this->app->erp->Beschriftung("dokument_proformarechnung"))." $belegnr"; + else + $this->doctypeOrig=$this->app->erp->Beschriftung("dokument_proformarechnung")." $belegnr"; + } + + + + $this->zusatzfooter = " (RE$belegnr)"; + + if($proformarechnung=="") $proformarechnung = "-"; + if($kundennummer=="") $kundennummer= "-"; + + if($auftrag=="0") $auftrag = "-"; + if($lieferschein=="0") $lieferschein= "-"; + if($lieferschein=="") $lieferschein= "-"; + + $datumlieferschein = $this->app->DB->Select("SELECT DATE_FORMAT(datum, '%d.%m.%Y') + FROM lieferschein WHERE id='$lieferscheinid' LIMIT 1"); + + if($datumlieferschein=="00.00.0000") $datumlieferschein = $datum; + if($lieferdatum=="00.00.0000") $lieferdatum = $datum; + if($mahnwesen_datum=="00.00.0000") $mahnwesen_datum = ""; + + //* start + if($briefpapier_bearbeiter_ausblenden || $briefpapier_vertrieb_ausblenden) + { + if($lieferschein!='-') + { + if($auftrag!="-") + { + $sCD = array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein + ); + } + else + { + $sCD = array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein + ); + } + } + else { + if($auftrag!="-") + { + $sCD = array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum + ); + } + else + { + $sCD = array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, + $this->app->erp->Beschriftung("dokument_ansprechpartner")=>$buchhaltung + ); + } + } + if(!$briefpapier_bearbeiter_ausblenden) + { + if($bearbeiter)$sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")] = $bearbeiter; + }elseif(!$briefpapier_vertrieb_ausblenden) + { + if($vertrieb)$sCD[$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")] = $vertrieb; + } + $this->setCorrDetails($sCD); + + }else{ + if($vertrieb!=$bearbeiter) + { + if($lieferschein!='-') + { + if($auftrag!="-") + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, + $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb + )); + else + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, + $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb + )); + } + else { + if($auftrag!="-") + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, + $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb + )); + else + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, + $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter,$this->app->erp->Beschriftung("auftrag_bezeichnung_vertrieb")=>$vertrieb + )); + } + //*ende hack + } else { + //start hack + if($lieferschein!='-') + { + if($auftrag!="-") + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, + $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter + )); + else + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferschein")=>$lieferschein,$this->app->erp->Beschriftung("dokument_lieferdatum")=>$datumlieferschein, + $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter + )); + } + else { + if($auftrag!="-") + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_auftrag")=>$auftrag,$this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, + $this->app->erp->Beschriftung("auftrag_bezeichnung_bearbeiter")=>$bearbeiter + )); + else + $this->setCorrDetails(array($this->app->erp->Beschriftung("dokument_proformarechnungsdatum")=>$datum,$this->app->erp->Beschriftung("bezeichnungkundennummer")=>$kundennummer,$this->app->erp->Beschriftung("auftrag_bezeichnung_bestellnummer")=>$ihrebestellnummer, + $this->app->erp->Beschriftung("dokument_lieferdatum")=>$lieferdatum, + $this->app->erp->Beschriftung("dokument_ansprechpartner")=>$buchhaltung + )); + } + } + } + //ende hack + + //if(!$this->app->erp->ProformarechnungMitUmsatzeuer($id) && $ustid!="" ) + if(!$this->app->erp->ProformarechnungMitUmsatzeuer($id) && $keinsteuersatz!="1") + { + $this->ust_befreit=true; + if($keinsteuersatz!="1"){ + if($this->app->erp->Export($land)) + $steuer = $this->app->erp->Beschriftung("export_lieferung_vermerk"); + else + $steuer = $this->app->erp->Beschriftung("eu_lieferung_vermerk"); + $steuer = str_replace('{USTID}',$ustid,$steuer); + $steuer = str_replace('{LAND}',$land,$steuer); + } + } + + if($als!="") + { + $body = $this->app->erp->MahnwesenBody($id,$als,$_datum); + $footer =$this->app->erp->ParseUserVars("proformarechnung",$id, $this->app->erp->Beschriftung("proformarechnung_footer")); + } + else { + $body = $this->app->erp->Beschriftung("proformarechnung_header"); + if($bodyzusatz!="") $body=$body."\r\n".$bodyzusatz; + $body = $this->app->erp->ParseUserVars("proformarechnung",$id,$body); + + if ($versandart!="" && $trackingnummer!=""){ + $versandinfo = "$versandart: $trackingnummer\r\n"; + }else{ $versandinfo ="";} + + + if($systemfreitext!="") $systemfreitext = "\r\n\r\n".$systemfreitext; + //$footer = $versandinfo."$freitext"."\r\n".$this->app->erp->ParseUserVars("proformarechnung",$id,$this->app->erp->Beschriftung("proformarechnung_footer"). + // "\r\n$steuer\r\n$zahlungsweisetext").$systemfreitext; + + + if($this->app->erp->Firmendaten("footer_reihenfolge_proformarechnung_aktivieren")=="1") + { + $footervorlage = $this->app->erp->Firmendaten("footer_reihenfolge_proformarechnung"); + if($footervorlage=="") $footervorlage = "{FOOTERVERSANDINFO}{FOOTERFREITEXT}\r\n{FOOTERTEXTVORLAGERECHNUNG}\r\n{FOOTERSTEUER}\r\n{FOOTERZAHLUNGSWEISETEXT}{FOOTERSYSTEMFREITEXT}"; + + $footervorlage = str_replace('{FOOTERVERSANDINFO}',$versandinfo,$footervorlage); + $footervorlage = str_replace('{FOOTERFREITEXT}',$freitext,$footervorlage); + $footervorlage = str_replace('{FOOTERTEXTVORLAGERECHNUNG}',$this->app->erp->Beschriftung("proformarechnung_footer"),$footervorlage); + $footervorlage = str_replace('{FOOTERSTEUER}',$steuer,$footervorlage); $footervorlage = str_replace('{FOOTERZAHLUNGSWEISETEXT}',$zahlungsweisetext,$footervorlage); + $footervorlage = str_replace('{FOOTERSYSTEMFREITEXT}',$systemfreitext,$footervorlage); + $footervorlage = $this->app->erp->ParseUserVars("proformarechnung",$id,$footervorlage); + $footer = $footervorlage; + } else { + $footer = $versandinfo."$freitext"."\r\n".$this->app->erp->ParseUserVars("proformarechnung",$id,$this->app->erp->Beschriftung("proformarechnung_footer"). + "\r\n$steuer\r\n$zahlungsweisetext").$systemfreitext; + } + } + + $this->setTextDetails(array( + "body"=>$body, + "footer"=>$footer)); + + $artikel = $this->app->DB->SelectArr("SELECT * FROM proformarechnung_position WHERE proformarechnung='$id' ORDER By sort"); + $summe_rabatt = $this->app->DB->Select("SELECT SUM(rabatt) FROM proformarechnung_position WHERE proformarechnung='$id'"); + if($summe_rabatt <> 0) $this->rabatt=1; + + if($this->app->erp->Firmendaten("modul_verband")=="1") $this->rabatt=1; + $steuersatzV = $this->app->erp->GetSteuersatzNormal(false,$id,"proformarechnung"); + $steuersatzR = $this->app->erp->GetSteuersatzErmaessigt(false,$id,"proformarechnung"); + $gesamtsteuern = 0; + $mitumsatzsteuer = $this->app->erp->ProformarechnungMitUmsatzeuer($id); + foreach($artikel as $key=>$value) + { + if($value['umsatzsteuer'] != "ermaessigt" && $value['umsatzsteuer'] != "befreit") $value['umsatzsteuer'] = "normal"; + $tmpsteuersatz = null; + $tmpsteuertext = null; + $this->app->erp->GetSteuerPosition('proformarechnung', $value['id'],$tmpsteuersatz, $tmpsteuertext); + if(is_null($value['steuersatz']) || $value['steuersatz'] < 0) + { + if($value['umsatzsteuer'] == "ermaessigt") + { + $value['steuersatz'] = $steuersatzR; + }elseif($value['umsatzsteuer'] == "befreit") + { + $value['steuersatz'] = 0; + }else{ + $value['steuersatz'] = $steuersatzV; + } + if(!is_null($tmpsteuersatz))$value['steuersatz'] = $tmpsteuersatz; + } + if($tmpsteuertext && !$value['steuertext'])$value['steuertext'] = $tmpsteuertext; + if(!$mitumsatzsteuer)$value['steuersatz'] = 0; + /* + $limit = 60; + $summary= $value['bezeichnung']; + if (strlen($summary) > $limit) + { + $value['desc']= $value['bezeichnung']; + $value['bezeichnung'] = substr($summary, 0, strrpos(substr($summary, 0, $limit), ' ')) . '...'; + } +*/ + + $value['herstellernummer'] = $this->app->DB->Select("SELECT herstellernummer FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + $value['hersteller'] = $this->app->DB->Select("SELECT hersteller FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + + if($zollinformation) + { + + if($value['gewicht']=="") $value['gewicht'] = $this->app->DB->Select("SELECT gewicht FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + if($value['zolltarifnummer']=="" || $value['zolltarifnummer']=="0") $value['zolltarifnummer'] = $this->app->DB->Select("SELECT zolltarifnummer FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + if($value['herkunftsland']=="" || $value['herkunftsland']=="0") $value['herkunftsland'] = $this->app->DB->Select("SELECT herkunftsland FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + + + $gewichtbezeichnung = $this->app->erp->Firmendaten('gewichtbezeichnung'); + if($gewichtbezeichnung=="") $gewichtbezeichnung = "kg"; + $value['beschreibung'] = $value['beschreibung']."\r\nCustoms tariff number: ".$value['zolltarifnummer']." Country of origin: ".$value['herkunftsland']; + if($value['gewicht']!="") $value['beschreibung'] = $value['beschreibung']."\r\nWeight: ".floatval($value['menge'])." x ".$value['gewicht']." ".$gewichtbezeichnung." = ".floatval($value['gewicht']*$value['menge'])." ".$gewichtbezeichnung; + } else { + $value['zolltarifnummer']=""; + $value['herkunftsland']=""; + } + + + if(!empty($seriennummern)) + { + foreach($seriennummern as $seriennummern=>$seriennummer) + { + $seriennummernliste = $seriennummernliste.$seriennummer['seriennummer'].";"; + } + + $seriennummernliste=substr($seriennummernliste, 0, -1); + + $value['seriennummern'] = $this->app->DB->Select("SELECT seriennummern FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + + if ($value['seriennummern']=="keine"){ + $value['beschreibung'] = $value['beschreibung']; + }elseif ($value['seriennummern']==""){ + $value['beschreibung'] = $value['beschreibung']; + }else{ + $value['beschreibung'] = $value['beschreibung']."\r\n".$this->app->erp->Beschriftung("dokument_seriennummer").": ". $seriennummernliste; + } + } + + if(!empty($chargen)) + { + foreach($chargen as $chargen=>$charge) + { + $chargenliste = $chargenliste.$charge['charge'].";"; + } + + $chargenliste=substr($chargenliste, 0, -1); + + $value['chargen'] = $this->app->DB->Select("SELECT chargenverwaltung FROM artikel WHERE id='".$value['artikel']."' LIMIT 1"); + + if ($value['chargen']=="0"){ + $value['beschreibung'] = $value['beschreibung']; + }else{ + $value['beschreibung'] = $value['beschreibung']."\r\n".$this->app->erp->Beschriftung("dokument_charge").": ". $chargenliste; + } + } + + + if($value['explodiert_parent_artikel'] > 0) + { + $check_ausblenden = $this->app->DB->Select("SELECT keineeinzelartikelanzeigen FROM artikel WHERE id='".$value['explodiert_parent_artikel']."' LIMIT 1"); + } else $check_ausblenden=0; + + $value = $this->CheckPosition($value,"proformarechnung",$this->doctypeid,$value['id']); + + $value['menge'] = floatval($value['menge']); + + if($check_ausblenden!=1)// && $als=="") //TODO MAHNWESEN + { + $this->addItem(array('currency'=>$value['waehrung'], + 'amount'=>$value['menge'], + 'price'=>$value['preis'], + 'tax'=>$value['umsatzsteuer'], + 'steuersatz'=>$value['steuersatz'], + 'itemno'=>$value['nummer'], + 'artikel'=>$value['artikel'], + 'unit'=>$value['einheit'], + 'desc'=>$value['beschreibung'], + 'hersteller'=>$value['hersteller'], + 'zolltarifnummer'=>$value['zolltarifnummer'], + 'herkunftsland'=>$value['herkunftsland'], + 'herstellernummer'=>trim($value['herstellernummer']), + 'artikelnummerkunde'=>$value['artikelnummerkunde'], + 'lieferdatum'=>$value['lieferdatum'], + 'lieferdatumkw'=>$value['lieferdatumkw'], + 'grundrabatt'=>$value['grundrabatt'], + 'rabatt1'=>$value['rabatt1'], + 'rabatt2'=>$value['rabatt2'], + 'rabatt3'=>$value['rabatt3'], + 'rabatt4'=>$value['rabatt4'], + 'rabatt5'=>$value['rabatt5'], + 'freifeld1'=>$value['freifeld1'], + 'freifeld2'=>$value['freifeld2'], + 'freifeld3'=>$value['freifeld3'], + 'freifeld4'=>$value['freifeld4'], + 'freifeld5'=>$value['freifeld5'], + 'freifeld6'=>$value['freifeld6'], + 'freifeld7'=>$value['freifeld7'], + 'freifeld8'=>$value['freifeld8'], + 'freifeld9'=>$value['freifeld9'], + 'freifeld10'=>$value['freifeld10'], + 'freifeld11'=>$value['freifeld11'], + 'freifeld12'=>$value['freifeld12'], + 'freifeld13'=>$value['freifeld13'], + 'freifeld14'=>$value['freifeld14'], + 'freifeld15'=>$value['freifeld15'], + 'freifeld16'=>$value['freifeld16'], + 'freifeld17'=>$value['freifeld17'], + 'freifeld18'=>$value['freifeld18'], + 'freifeld19'=>$value['freifeld19'], + 'freifeld20'=>$value['freifeld20'], + 'freifeld21'=>$value['freifeld21'], + 'freifeld22'=>$value['freifeld22'], + 'freifeld23'=>$value['freifeld23'], + 'freifeld24'=>$value['freifeld24'], + 'freifeld25'=>$value['freifeld25'], + 'freifeld26'=>$value['freifeld26'], + 'freifeld27'=>$value['freifeld27'], + 'freifeld28'=>$value['freifeld28'], + 'freifeld29'=>$value['freifeld29'], + 'freifeld30'=>$value['freifeld30'], + 'freifeld31'=>$value['freifeld31'], + 'freifeld32'=>$value['freifeld32'], + 'freifeld33'=>$value['freifeld33'], + 'freifeld34'=>$value['freifeld34'], + 'freifeld35'=>$value['freifeld35'], + 'freifeld36'=>$value['freifeld36'], + 'freifeld37'=>$value['freifeld37'], + 'freifeld38'=>$value['freifeld38'], + 'freifeld39'=>$value['freifeld39'], + 'freifeld40'=>$value['freifeld40'], + "name"=>ltrim($value['bezeichnung']), + 'steuertext'=>$value['steuertext'], + "rabatt"=>$value['rabatt'])); + } + $netto_gesamt = $value['menge']*($value['preis']-($value['preis']/100*$value['rabatt'])); + $summe = $summe + $netto_gesamt; + if(!isset($summen[$value['steuersatz']]))$summen[$value['steuersatz']] = 0; + $summen[$value['steuersatz']] += ($netto_gesamt/100)*$value['steuersatz']; + $gesamtsteuern +=($netto_gesamt/100)*$value['steuersatz']; + + /* + if($value['umsatzsteuer']=="" || $value['umsatzsteuer']=="normal") + { + $summeV = $summeV + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzNormal(false,$id,"proformarechnung")); + } + else { + $summeR = $summeR + (($netto_gesamt/100)*$this->app->erp->GetSteuersatzErmaessigt(false,$id,"proformarechnung")); + }*/ + + + } + /* + $summe = $this->app->DB->Select("SELECT SUM(menge*preis) FROM proformarechnung_position WHERE proformarechnung='$id'"); + $summeV = $this->app->DB->Select("SELECT SUM(menge*preis) FROM proformarechnung_position WHERE proformarechnung='$id' AND (umsatzsteuer!='ermaessigt')")/100 * 19; + $summeR = $this->app->DB->Select("SELECT SUM(menge*preis) FROM proformarechnung_position WHERE proformarechnung='$id' AND umsatzsteuer='ermaessigt'")/100 * 7; + */ + if($this->app->erp->ProformarechnungMitUmsatzeuer($id)) + { + //$this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $summeV + $summeR,"totalTaxV"=>$summeV,"totalTaxR"=>$summeR)); + $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe + $gesamtsteuern,"summen"=>$summen,"totalTaxV"=>0,"totalTaxR"=>0)); + } else + { + $this->setTotals(array("totalArticles"=>$summe,"total"=>$summe)); + } + + /* Dateiname */ + $tmp_name = str_replace(' ','',trim($this->recipient['enterprise'])); + $tmp_name = str_replace('.','',$tmp_name); + + $this->filename = $datum."_PRE".$belegnr.".pdf"; + + $this->setBarcode($belegnr); + } + + +} diff --git a/www/lib/dokumente/class.rechnung.php b/www/lib/dokumente/class.rechnung.php index cf9cd07b..b3b4af8e 100644 --- a/www/lib/dokumente/class.rechnung.php +++ b/www/lib/dokumente/class.rechnung.php @@ -50,7 +50,7 @@ class RechnungPDF extends BriefpapierCustom { { // pruefe ob es mehr als ein steuersatz gibt // wenn ja dann darf man sie nicht ausblenden $check = $this->app->erp->SteuerAusBeleg($this->doctype,$id); - if(count($check)>1)$this->ust_spalteausblende=false; + if(!empty($check)?count($check):0>1)$this->ust_spalteausblende=false; else $this->ust_spalteausblende=true; } $lvl = null; diff --git a/www/pages/ajax.php b/www/pages/ajax.php index e17fd730..b5276378 100644 --- a/www/pages/ajax.php +++ b/www/pages/ajax.php @@ -1289,7 +1289,7 @@ class Ajax { } break; case 'warteschlangename': - $arr = $this->app->DB->SelectArr("SELECT CONCAT(label, ' ', warteschlange) as result from warteschlangen"); + $arr = $this->app->DB->SelectArr("SELECT CONCAT(label, ' ', warteschlange) as result from warteschlangen WHERE label LIKE '%$term%' OR warteschlange LIKE '%$term%' ORDER BY label"); $carr = !empty($arr)?count($arr):0; for($i = 0; $i < $carr; $i++) { $newarr[] = "{$arr[$i]['result']}"; diff --git a/www/pages/artikel.php b/www/pages/artikel.php index 794bd293..b36e4491 100644 --- a/www/pages/artikel.php +++ b/www/pages/artikel.php @@ -288,9 +288,15 @@ class Artikel extends GenArtikel { case 'lieferantartikelpreise': $id = (int)$this->app->Secure->GetGET('id'); $allowed['artikel'] = array('profisuche'); - // alle artikel die ein Kunde kaufen kann mit preisen netto brutto - $cmd = $this->app->Secure->GetGET('smodule'); - $adresse = $this->app->DB->Select("SELECT adresse FROM {$cmd} WHERE id='$id' LIMIT 1"); + + $cmd = $this->app->Secure->GetGET('cmd'); + $module = $this->app->Secure->GetGET('module'); + if ($module == 'artikel') { + $table = $cmd; + } else { + $table = $this->app->Secure->GetGET('smodule'); + } + $adresse = $this->app->DB->Select(sprintf('SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',$table,$id)); // headings $heading = array('', 'Nummer', 'Artikel', 'Ab', 'Preis', 'Lager', 'Res.', 'Menge', 'Projekt', 'Menü'); @@ -340,8 +346,15 @@ class Artikel extends GenArtikel { } // alle artikel die ein Kunde kaufen kann mit preisen netto brutto - $cmd = $this->app->Secure->GetGET('smodule'); - $adresse = $this->app->DB->Select(sprintf('SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',$cmd,$id)); + $cmd = $this->app->Secure->GetGET('cmd'); + $module = $this->app->Secure->GetGET('module'); + if ($module == 'artikel') { + $table = $cmd; + } else { + $table = $this->app->Secure->GetGET('frommodule'); + $table = substr($table , 0, strpos($table, ".")); + } + $adresse = $this->app->DB->Select(sprintf('SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',$table,$id)); $sEcho = (int)$this->app->Secure->GetGET('sEcho'); if ($sEcho === 1) { @@ -3145,12 +3158,12 @@ class Artikel extends GenArtikel { $vpe = ''; if($projekt <=0 ){ - $projekt = $this->app->DB->Select("SELECT name_de FROM artikel WHERE id='$artikel_id' LIMIT 1"); + $projekt = $this->app->DB->Select("SELECT projekt FROM artikel WHERE id='$artikel_id' LIMIT 1"); } if($projekt <=0){ $projekt = $this->app->DB->Select("SELECT projekt FROM {$cmd} WHERE id='$id' LIMIT 1"); - } + } if($waehrung==''){ $waehrung = $this->app->DB->Select("SELECT waehrung FROM {$cmd} WHERE id='$id' LIMIT 1"); diff --git a/www/pages/auftrag.php b/www/pages/auftrag.php index f55fb57e..372f252f 100644 --- a/www/pages/auftrag.php +++ b/www/pages/auftrag.php @@ -40,6 +40,7 @@ class Auftrag extends GenAuftrag */ public function TableSearch($app, $name, $erlaubtevars) { + switch($name) { case 'auftraege': @@ -661,7 +662,7 @@ class Auftrag extends GenAuftrag $menu .= ""; $moreinfo = true; // Minidetail active - $menucol = 9; // For minidetail + $menucol = 11; // For minidetail break; case 'auftraegeoffeneautowartend': @@ -707,10 +708,162 @@ class Auftrag extends GenAuftrag $menu .= ""; $menu .= "app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\">"; $menu .= ""; - $menucol = 9; // For moredata + $menucol = 11; // For moredata break; + case 'positionen_teillieferung': + + $id = $app->Secure->GetGET('id'); + $allowed['positionen_teillieferung'] = array('list'); + $heading = array('Position','Artikel','Nr.','Menge','Lager','Teilmenge',''); + $width = array( '1%', '60%', '29%','5%','5%'); // Fill out manually later + + // columns that are aligned right (numbers etc) + // $alignright = array(4,5,6,7,8); + + $findcols = array('ap.sort','a.name_de','a.nummer','ap.menge','lager','teilmenge'); + $searchsql = array(''); + + $defaultorder = 2; + $defaultorderdesc = 0; + + $input_for_menge = "CONCAT( + '', + '' + )"; + + +// .'(SELECT TRIM(IFNULL(SUM(l.menge),0))+0 FROM lager_platz_inhalt l WHERE l.artikel=a.id) as lager' + + $sql = "SELECT SQL_CALC_FOUND_ROWS + ap.sort, + ap.sort, + a.name_de, + a.nummer," + .$this->app->erp->FormatMenge('ap.menge')."," + ."(SELECT TRIM(IFNULL(SUM(l.menge),0))+0 FROM lager_platz_inhalt l WHERE l.artikel=a.id) as lager," + .$input_for_menge + ." FROM auftrag_position ap + INNER JOIN + artikel a + ON ap.artikel = a.id"; + + $where = " ap.auftrag = $id "; + $count = "SELECT count(DISTINCT ap.id) FROM auftrag_position ap WHERE $where"; +// $groupby = ""; + + break; + case "offenepositionen": + $allowed['offenepositionen'] = array('list'); + $heading = array('Erwartetes Lieferdatum','Ursprüngliches Lieferdatum','Kunde','Auftrag','Position','ArtikelNr.','Artikel','Menge','Auftragsvolumen','Lagermenge','Monitor','Menü'); + // $width = array('10%','10%','10%','10%','30%','30%'); + + // Spalten für die Sortierfunktion in der Liste, muss identisch mit SQL-Ergebnis sein, erste Spalte weglassen,Spalten- Alias funktioniert nicht + $findcols = array('erwartetes_lieferdatum','urspruengliches_lieferdatum','kunde','belegnr','position','artikel','bezeichnung','menge','umsatz'); + // Spalten für die Schnellsuche + $searchsql = array("DATE_FORMAT(erwartetes_lieferdatum,\"%Y-%m-%d\")",'kunde','belegnr','artikel','bezeichnung'); + + // Sortierspalte laut SQL + $defaultorder = 2; + $defaultorderdesc = 0; + + $numbercols = [8,9,10]; + $sumcol = [8,9]; + $alignright = [8,9,10]; + + $menucol = 12; + + $menu = "Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\">"; + + // 1. Spalte ist unsichtbar, 2. Für Minidetail, 3. ist Standardsortierung beim öffnen des Moduls + + $sql = "SELECT SQL_CALC_FOUND_ROWS + auftrag_id, + DATE_FORMAT(erwartetes_lieferdatum,\"%d.%m.%Y\") erwartetes_lieferdatum_form, + CASE + WHEN urspruengliches_lieferdatum <> erwartetes_lieferdatum THEN CONCAT(\"

\",DATE_FORMAT(urspruengliches_lieferdatum,\"%d.%m.%Y\"),\"

\") + ELSE DATE_FORMAT(urspruengliches_lieferdatum,\"%d.%m.%Y\") + END urspruengliches_lieferdatum_form, + kunde, + belegnr, + position, + CONCAT(\"\",artikel,\"\") artikel, + bezeichnung, + menge, + umsatz, + CASE WHEN menge <= lager THEN CONCAT(\"\",ROUND(lager,0),\"\") + ELSE CONCAT(\"\",ROUND(lager,0),\"\") + END lagermenge,". + $this->app->YUI->IconsSQL(). + "autoversand_icon, + auftrag_id + FROM + ( + SELECT + auf.id, + auf.status, + auf.lager_ok, + auf.porto_ok, + auf.ust_ok, + auf.vorkasse_ok, + auf.nachnahme_ok, + auf.check_ok, + auf.liefertermin_ok, + auf.kreditlimit_ok, + auf.liefersperre_ok, + auf.adresse, + CASE + WHEN auftrag_position.lieferdatum <> '0000-00-00' AND auftrag_position.lieferdatum > CURRENT_DATE THEN auftrag_position.lieferdatum + WHEN auftrag_position.lieferdatum <> '0000-00-00' THEN CURRENT_DATE + WHEN auf.tatsaechlicheslieferdatum <> '0000-00-00' AND auf.tatsaechlicheslieferdatum > CURRENT_DATE THEN auf.tatsaechlicheslieferdatum + WHEN auf.tatsaechlicheslieferdatum <> '0000-00-00' THEN CURRENT_DATE + WHEN auf.lieferdatum <> '0000-00-00' AND auf.lieferdatum > CURRENT_DATE THEN auf.lieferdatum + ELSE CURRENT_DATE + END erwartetes_lieferdatum, + CASE + WHEN auftrag_position.lieferdatum <> '0000-00-00' THEN auftrag_position.lieferdatum + WHEN auf.tatsaechlicheslieferdatum <> '0000-00-00' THEN auf.tatsaechlicheslieferdatum + WHEN auf.lieferdatum <> '0000-00-00' THEN auf.lieferdatum + ELSE auf.datum + END urspruengliches_lieferdatum, + auf.name kunde, + auf.belegnr belegnr, + auftrag_position.sort position, + artikel.nummer artikel, + artikel.id artikel_id, + auftrag_position.bezeichnung bezeichnung, + round(auftrag_position.menge,0) menge, + round(auftrag_position.menge*auftrag_position.preis,2) umsatz, + (SELECT SUM(menge) FROM lager_platz_inhalt INNER JOIN lager_platz ON lager_platz_inhalt.lager_platz = lager_platz.id WHERE lager_platz_inhalt.artikel = artikel.id AND lager_platz.sperrlager <> 1) as lager, + auf.autoversand autoversand, + auf.id auftrag_id + FROM auftrag auf + INNER JOIN auftrag_position ON auf.id = auftrag_position.auftrag + INNER JOIN artikel ON auftrag_position.artikel = artikel.id + WHERE auf.status <> 'abgeschlossen' AND auf.belegnr <> '' + ORDER BY urspruengliches_lieferdatum ASC, auf.belegnr ASC, auftrag_position.sort ASC + ) a"; + + $where = ""; + + $groupby = ""; + + // Für Anzeige der Gesamteinträge + $count = "SELECT count(DISTINCT auftrag_position.id) FROM auftrag a INNER JOIN auftrag_position ON a.id = auftrag_position.auftrag WHERE a.status <>'abgeschlossen' AND a.belegnr <> ''"; + + // Spalte mit Farbe der Zeile (immer vorletzte-1) +// $trcol = 12; +// $moreinfo = true; + + break; } $erg = []; @@ -765,7 +918,7 @@ class Auftrag extends GenAuftrag $this->app->ActionHandler("rechnung","AuftragRechnung"); $this->app->ActionHandler("lieferschein","AuftragLieferschein"); $this->app->ActionHandler("lieferscheinrechnung","AuftragLieferscheinRechnung"); - + $this->app->ActionHandler("teillieferung","AuftragTeillieferung"); $this->app->ActionHandler("nachlieferung","AuftragNachlieferung"); // $this->app->ActionHandler("versand","AuftragVersand"); $this->app->ActionHandler("freigabe","AuftragFreigabe"); @@ -798,6 +951,8 @@ class Auftrag extends GenAuftrag $this->app->ActionHandler("steuer", "AuftragSteuer"); $this->app->ActionHandler("berechnen", "Auftraegeberechnen"); + $this->app->ActionHandler("offene", "AuftragOffenePositionen"); + $this->app->DefaultActionHandler("list"); $id = $this->app->Secure->GetGET('id'); @@ -1271,7 +1426,11 @@ class Auftrag extends GenAuftrag $kommissionierart = $this->app->DB->Select("SELECT kommissionierverfahren FROM projekt WHERE id='$projekt' LIMIT 1"); //$art = $this->app->DB->Select("SELECT art FROM auftrag WHERE id='$id' LIMIT 1"); $alleartikelreservieren = ''; - $teillieferungen = ''; + + if ($status==='angelegt' || $status==='freigegeben') { + $teillieferungen = ''; + } + if($status==='freigegeben') { $alleartikelreservieren = ""; @@ -1369,9 +1528,14 @@ class Auftrag extends GenAuftrag { switch(cmd) { - case 'storno': if(!confirm('Wirklich stornieren?')) return document.getElementById('aktion$prefix').selectedIndex = 0; else window.location.href='index.php?module=auftrag&action=delete&id=%value%'; break; - case 'unstorno': if(!confirm('Wirklich stornierten Auftrag wieder freigeben?')) return document.getElementById('aktion$prefix').selectedIndex = 0; else window.location.href='index.php?module=auftrag&action=undelete&id=%value%'; break; - case 'teillieferung': window.location.href='index.php?module=auftrag&action=teillieferung&id=%value%'; break; + case 'storno': + if(!confirm('Wirklich stornieren?')) return document.getElementById('aktion$prefix').selectedIndex = 0; else window.location.href='index.php?module=auftrag&action=delete&id=%value%'; break; + case 'unstorno': + if(!confirm('Wirklich stornierten Auftrag wieder freigeben?')) return document.getElementById('aktion$prefix').selectedIndex = 0; else window.location.href='index.php?module=auftrag&action=undelete&id=%value%'; + break; + case 'teillieferung': + window.location.href='index.php?module=auftrag&action=teillieferung&id=%value%'; + break; case 'anfrage': if(!confirm('Wirklich rückführen?')) return document.getElementById('aktion$prefix').selectedIndex = 0; else window.location.href='index.php?module=auftrag&action=anfrage&id=%value%'; break; case 'kreditlimit': if(!confirm('Wirklich Kreditlimit für diesen Auftrag freigeben?')) return document.getElementById('aktion$prefix').selectedIndex = 0; else window.location.href='index.php?module=auftrag&action=kreditlimit&id=%value%'; break; case 'copy': if(!confirm('Wirklich kopieren?')) return document.getElementById('aktion$prefix').selectedIndex = 0; else window.location.href='index.php?module=auftrag&action=copy&id=%value%'; break; @@ -6128,6 +6292,7 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '. $this->app->erp->MenuEintrag('index.php?module=auftrag&action=list','Übersicht'); $this->app->erp->MenuEintrag('index.php?module=auftrag&action=create','Neuen Auftrag anlegen'); + $this->app->erp->MenuEintrag('index.php?module=auftrag&action=offene','Offene Positionen'); $this->app->erp->MenuEintrag('index.php?module=auftrag&action=versandzentrum','Versandzentrum'); if(strlen($backurl)>5){ @@ -7004,4 +7169,127 @@ Die Gesamtsumme stimmt nicht mehr mit ursprünglich festgelegten Betrag '. header('Location: index.php?module=auftrag&action=versandzentrum'); } + /* + * Split auftrag into separate documents with submit -> do it and return jump to the new split part + */ + function AuftragTeillieferung() { + + $id = $this->app->Secure->GetGET('id'); + $this->AuftragMenu(); + $submit = $this->app->Secure->GetPOST('submit'); + + + $sql = "SELECT * from auftrag WHERE id = $id"; + $auftrag_alt = $this->app->DB->SelectArr($sql)[0]; + $msg = ""; + + if (in_array($auftrag_alt['status'],array('angelegt','freigegeben'))) { + if ($submit != '') { + $msg = ""; + switch ($submit) { + case 'speichern': + // Get parameters + + $teilmenge_input = $this->app->Secure->GetPOSTArray(); + + $teilmengen = array(); + + foreach ($teilmenge_input as $key => $value) { + + if ((strpos($key,'teilmenge_') === 0) && ($value !== '')) { + $posid = substr($key,'10'); + $teilmenge = array('posid' => $posid, 'menge' => $value); + $teilmengen[] = $teilmenge; + } + } + + if (!empty($teilmengen)) { + + // Create new auftrag + $sql = "SELECT * from auftrag WHERE id = $id"; + $auftrag_alt = $this->app->DB->SelectArr($sql)[0]; + + // Part auftrag of part auftrag -> select parent + $hauptauftrag_id = $auftrag_alt['teillieferungvon']; + if ($hauptauftrag_id != 0) { + $sql = "SELECT belegnr FROM auftrag WHERE id = $hauptauftrag_id"; + $hauptauftrag_belegnr = $this->app->DB->SelectArr($sql)[0]['belegnr']; + } else { + $hauptauftrag_id = $auftrag_alt['id']; + $hauptauftrag_belegnr = $auftrag_alt['belegnr']; + } + + $sql = "SELECT MAX(teillieferungnummer) as tpn FROM auftrag WHERE teillieferungvon = $hauptauftrag_id"; + $teillieferungnummer = $this->app->DB->SelectArr($sql)[0]['tpn']; + if (empty($teillieferungnummer) || $teillieferungnummer == 0) { + $teillieferungnummer = '1'; + } else { + $teillieferungnummer++; + } + + $belegnr_neu = $hauptauftrag_belegnr."-".$teillieferungnummer; + + $auftrag_neu = $auftrag_alt; + $auftrag_neu['id'] = null; + $auftrag_neu['belegnr'] = $belegnr_neu; + $auftrag_neu['teillieferungvon'] = $hauptauftrag_id; + $auftrag_neu['teillieferungnummer'] = $teillieferungnummer; + + $id_neu = $this->app->DB->MysqlCopyRow('auftrag','id',$id); + $sql = "UPDATE auftrag SET belegnr = '$belegnr_neu', teillieferungvon = $hauptauftrag_id, teillieferungnummer = $teillieferungnummer WHERE id = $id_neu"; + $this->app->DB->Update($sql); + + // Adjust quantities + foreach ($teilmengen as $teilmenge) { + + $sql = "SELECT menge FROM auftrag_position WHERE id = ".$teilmenge['posid']; + $menge_alt = $this->app->DB->SelectArr($sql)[0]['menge']; + + $menge_neu = $teilmenge['menge']; + if ($menge_neu > $menge_alt) { + $menge_neu = $menge_alt; + } + + $menge_reduziert = $menge_alt-$menge_neu; + + $posid_alt = $teilmenge['posid']; + $posid_neu = $this->app->DB->MysqlCopyRow('auftrag_position','id',$posid_alt); + + $sql = "UPDATE auftrag_position SET menge = $menge_reduziert WHERE id = $posid_alt"; + $this->app->DB->Update($sql); + $sql = "UPDATE auftrag_position SET auftrag = $id_neu, menge = $menge_neu WHERE id = $posid_neu"; + $this->app->DB->Update($sql); + } + + header('Location: index.php?module=auftrag&action=edit&id='.$id_neu); + + } + + break; + case 'abbrechen': + header('Location: index.php?module=auftrag&action=edit&id='.$id); + return; + break; + } + } // Submit + else { + $msg = "Teilauftrag: Auswahl der Artikel für den Teilauftrag."; + } + } // Status ok + else { + $msg = 'Teilauftrag in diesem Status nicht möglich.'; + } + + $this->app->Tpl->Add('INFOTEXT',$msg); + $this->app->YUI->TableSearch('TABLE','positionen_teillieferung', 'show','','',basename(__FILE__), __CLASS__); + + $this->app->Tpl->Parse('PAGE','auftrag_teillieferung.tpl'); + } // AuftragTeillieferung + + function AuftragOffenePositionen() { + $this->AuftraguebersichtMenu(); + $this->app->YUI->TableSearch('TAB1','offenepositionen',"show","","",basename(__FILE__), __CLASS__); + $this->app->Tpl->Parse('PAGE',"tabview.tpl"); + } + } diff --git a/www/pages/bestellvorschlag.php b/www/pages/bestellvorschlag.php new file mode 100644 index 00000000..6f2da7d4 --- /dev/null +++ b/www/pages/bestellvorschlag.php @@ -0,0 +1,544 @@ +app = $app; + if ($intern) + return; + + $this->app->ActionHandlerInit($this); + $this->app->ActionHandler("list", "bestellvorschlag_list"); +// $this->app->ActionHandler("create", "bestellvorschlag_edit"); // This automatically adds a "New" button +// $this->app->ActionHandler("edit", "bestellvorschlag_edit"); +// $this->app->ActionHandler("delete", "bestellvorschlag_delete"); + $this->app->DefaultActionHandler("list"); + $this->app->ActionHandlerListen($app); + } + + public function Install() { + /* Fill out manually later */ + } + + public function TableSearch(&$app, $name, $erlaubtevars) { + switch ($name) { + case "bestellvorschlag_list": + $allowed['bestellvorschlag_list'] = array('list'); + + $monate_absatz = $this->app->User->GetParameter('bestellvorschlag_monate_absatz'); + if (empty($monate_absatz)) { + $monate_absatz = 0; + } + $monate_voraus = $this->app->User->GetParameter('bestellvorschlag_monate_voraus'); + if (empty($monate_voraus)) { + $monate_voraus = 0; + } + + $heading = array('', '', 'Nr.', 'Artikel','Lieferant','Mindestlager','Lager','Bestellt','Auftrag','Absatz','Voraus','Vorschlag','Eingabe',''); + $width = array('1%','1%','1%', '20%', '10%', '1%', '1%', '1%', '1%', '1%', '1%', '1%', '1%', '1%'); + + // columns that are aligned right (numbers etc) + // $alignright = array(4,5,6,7,8); + + $findcols = array('a.id','a.id','a.nummer','a.name_de','l.name','mindestlager','lager','bestellt','auftrag','absatz','voraus','vorschlag'); + $searchsql = array('a.name_de'); + + $defaultorder = 1; + $defaultorderdesc = 0; + $numbercols = array(6,7,8,9,10,11,12); +// $sumcol = array(6); + $alignright = array(6,7,8,9,10,11,12); + + $dropnbox = "'' AS `open`, CONCAT('') AS `auswahl`"; + +// $menu = "
" . "Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"> " . "Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\">" . "
"; + + $input_for_menge = "CONCAT( + '', + '' + )"; + + $user = $app->User->GetID(); + + $sql_artikel_mengen = " + SELECT + a.id, + ( + SELECT + COALESCE(SUM(menge),0) + FROM + lager_platz_inhalt lpi + INNER JOIN lager_platz lp ON + lp.id = lpi.lager_platz + WHERE + lpi.artikel = a.id AND lp.sperrlager = 0 +) AS lager, +( + SELECT + COALESCE(SUM(menge - geliefert),0) + FROM + bestellung_position bp + INNER JOIN bestellung b ON + bp.bestellung = b.id + WHERE + bp.artikel = a.id AND b.status IN( + 'versendet', + 'freigegeben', + 'angelegt' + ) +) AS bestellt, +( + SELECT + COALESCE(SUM(menge - geliefert),0) + FROM + auftrag_position aufp + INNER JOIN auftrag auf ON + aufp.auftrag = auf.id + WHERE + aufp.artikel = a.id AND auf.status IN( + 'versendet', + 'freigegeben', + 'angelegt' + ) +) AS auftrag, +( + SELECT + COALESCE(SUM(menge),0) + FROM + rechnung_position rp + INNER JOIN rechnung r ON + rp.rechnung = r.id + WHERE + rp.artikel = a.id AND r.status IN( + 'versendet', + 'freigegeben' + ) AND r.datum > LAST_DAY(CURDATE() - INTERVAL ('$monate_absatz'+1) MONTH) AND r.datum <= LAST_DAY(CURDATE() - INTERVAL 1 MONTH) +) AS absatz, +ROUND ( +( + select absatz +) / '$monate_absatz' * '$monate_voraus') AS voraus, +( + SELECT + COALESCE(menge,0) + FROM + bestellvorschlag bv + WHERE + bv.artikel = a.id AND bv.user = '$user' +) AS vorschlag_save, +a.mindestlager -( +SELECT + lager +) - COALESCE(( +SELECT + bestellt +), +0) + + COALESCE(( +SELECT + auftrag +), +0) + + COALESCE(( +SELECT + voraus +), +0) + AS vorschlag_ber_raw, +IF( + ( +SELECT + vorschlag_ber_raw +) > 0, +( +SELECT + vorschlag_ber_raw +), +0 +) AS vorschlag_ber, +COALESCE( + ( +SELECT + vorschlag_save +), +( +SELECT + vorschlag_ber +) +) AS vorschlag, +FORMAT(a.mindestlager, 0, 'de_DE') AS mindestlager_form, +FORMAT(( +SELECT + lager +), +0, +'de_DE') AS lager_form, +FORMAT( + COALESCE(( +SELECT + bestellt +), +0), + 0, + 'de_DE' +) AS bestellt_form, +FORMAT( + COALESCE(( +SELECT + auftrag +), +0), + 0, + 'de_DE' +) AS auftrag_form, +FORMAT( + COALESCE(( +SELECT + absatz +), +0), + 0, + 'de_DE' +) AS absatz_form, +FORMAT( + COALESCE(( +SELECT + voraus +), +0), + 0, + 'de_DE' +) AS voraus_form, +FORMAT( + ( +SELECT + vorschlag_ber +), +'0', +'de_DE' +) AS vorschlag_ber_form +, +FORMAT( + ( +SELECT + vorschlag +), +'0', +'de_DE' +) AS vorschlag_form +FROM + artikel a + "; + + +//echo($sql_artikel_mengen); + + + $sql = "SELECT SQL_CALC_FOUND_ROWS + a.id, + $dropnbox, + a.nummer, + a.name_de, + l.name, + mengen.mindestlager_form, + mengen.lager_form, + mengen.bestellt_form, + mengen.auftrag_form, + mengen.absatz_form, + mengen.voraus_form, + mengen.vorschlag_ber_form," + .$input_for_menge + ."FROM + artikel a + INNER JOIN + adresse l ON l.id = a.adresse + INNER JOIN + (SELECT * FROM ($sql_artikel_mengen) mengen_inner WHERE mengen_inner.vorschlag > 0) as mengen ON mengen.id = a.id"; + + $where = "a.adresse != '' AND a.geloescht != 1 AND a.inaktiv != 1"; + $count = "SELECT count(DISTINCT a.id) FROM artikel a WHERE $where"; +// $groupby = ""; + + break; + } + + $erg = false; + + foreach ($erlaubtevars as $k => $v) { + if (isset($$v)) { + $erg[$v] = $$v; + } + } + return $erg; + } + + function bestellvorschlag_list() { + + + $submit = $this->app->Secure->GetPOST('submit'); + $user = $this->app->User->GetID(); + + $monate_absatz = $this->app->Secure->GetPOST('monate_absatz'); + if (empty($monate_absatz)) { + $monate_absatz = 0; + } + $monate_voraus = $this->app->Secure->GetPOST('monate_voraus'); + if (empty($monate_voraus)) { + $monate_voraus = 0; + } + + // For transfer to tablesearch + $this->app->User->SetParameter('bestellvorschlag_monate_absatz', $monate_absatz); + $this->app->User->SetParameter('bestellvorschlag_monate_voraus', $monate_voraus); + + switch ($submit) { + case 'loeschen': + $sql = "DELETE FROM bestellvorschlag where user = $user"; + $this->app->DB->Delete($sql); + break; + case 'speichern': + + $menge_input = $this->app->Secure->GetPOSTArray(); + $mengen = array(); + foreach ($menge_input as $key => $menge) { + if ((strpos($key,'menge_') === 0) && ($menge !== '')) { + $artikel = substr($key,'6'); + if ($menge > 0) { + $sql = "INSERT INTO bestellvorschlag (artikel, user, menge) VALUES($artikel,$user,$menge) ON DUPLICATE KEY UPDATE menge = $menge"; + $this->app->DB->Insert($sql); + } + } + } + break; + case 'bestellungen_erzeugen': + + $auswahl = $this->app->Secure->GetPOST('auswahl'); + $selectedIds = []; + + if(empty($auswahl)) { + $msg = '
Bitte Artikel auswählen.
'; + break; + } + + if(!empty($auswahl)) { + foreach ($auswahl as $selectedId) { + $selectedId = (int) $selectedId; + if ($selectedId > 0) { + $selectedIds[] = $selectedId; + } + } + } + + $menge_input = $this->app->Secure->GetPOSTArray(); + $mengen = array(); + + foreach ($selectedIds as $artikel_id) { + foreach ($menge_input as $key => $menge) { + if ((strpos($key,'menge_') === 0) && ($menge !== '')) { + $artikel = substr($key,'6'); + if ($menge > 0 && $artikel == $artikel_id) { + $mengen[] = array('id' => $artikel,'menge' => $menge); + } + } + } + } + + $mengen_pro_adresse = array(); + foreach ($mengen as $menge) { + $sql = "SELECT adresse FROM artikel WHERE id = ".$menge['id']; + $adresse = $this->app->DB->Select($sql); + if (!empty($adresse)) { + $index = array_search($adresse, array_column($mengen_pro_adresse,'adresse')); + if ($index !== false) { + $mengen_pro_adresse[$index]['positionen'][] = $menge; + } else { + $mengen_pro_adresse[] = array('adresse' => $adresse,'positionen' => array($menge)); + } + } + } + + $angelegt = 0; + + foreach ($mengen_pro_adresse as $bestelladresse) { + $bestellid = $this->app->erp->CreateBestellung($bestelladresse); + if (!empty($bestellid)) { + + $angelegt++; + + $this->app->erp->LoadBestellungStandardwerte($bestellid,$bestelladresse['adresse']); + $this->app->erp->BestellungProtokoll($bestellid,"Bestellung angelegt"); + foreach ($bestelladresse['positionen'] as $position) { + $preisid = $this->app->erp->Einkaufspreis($position['id'], $position['menge'], $bestelladresse['adresse']); + + if ($preisid == null) { + $artikelohnepreis = $position['id']; + } else { + $artikelohnepreis = null; + } + + $this->app->erp->AddBestellungPosition( + $bestellid, + $preisid, + $position['menge'], + $datum, + '', + $artikelohnepreis + ); + } + $this->app->erp->BestellungNeuberechnen($bestellid); + } + } + $msg .= "
Es wurden $angelegt Bestellungen angelegt.
"; + break; + } + + $this->app->erp->MenuEintrag("index.php?module=bestellvorschlag&action=list", "Übersicht"); + $this->app->erp->MenuEintrag("index.php?module=bestellvorschlag&action=create", "Neu anlegen"); + + $this->app->erp->MenuEintrag("index.php", "Zurück"); + + $this->app->Tpl->Set('MONATE_ABSATZ',$monate_absatz); + $this->app->Tpl->Set('MONATE_VORAUS',$monate_voraus); + + $this->app->Tpl->Set('MESSAGE',$msg); + + $this->app->YUI->TableSearch('TAB1', 'bestellvorschlag_list', "show", "", "", basename(__FILE__), __CLASS__); + $this->app->Tpl->Parse('PAGE', "bestellvorschlag_list.tpl"); + } + + public function bestellvorschlag_delete() { + $id = (int) $this->app->Secure->GetGET('id'); + + $this->app->DB->Delete("DELETE FROM `bestellvorschlag` WHERE `id` = '{$id}'"); + $this->app->Tpl->Set('MESSAGE', "
Der Eintrag wurde gelöscht.
"); + + $this->bestellvorschlag_list(); + } + + /* + * Edit bestellvorschlag item + * If id is empty, create a new one + */ + + function bestellvorschlag_edit() { + $id = $this->app->Secure->GetGET('id'); + + // Check if other users are editing this id + if($this->app->erp->DisableModul('artikel',$id)) + { + return; + } + + $this->app->Tpl->Set('ID', $id); + + $this->app->erp->MenuEintrag("index.php?module=bestellvorschlag&action=edit&id=$id", "Details"); + $this->app->erp->MenuEintrag("index.php?module=bestellvorschlag&action=list", "Zurück zur Übersicht"); + $id = $this->app->Secure->GetGET('id'); + $input = $this->GetInput(); + $submit = $this->app->Secure->GetPOST('submit'); + + if (empty($id)) { + // New item + $id = 'NULL'; + } + + if ($submit != '') + { + + // Write to database + + // Add checks here + + $columns = "id, "; + $values = "$id, "; + $update = ""; + + $fix = ""; + + foreach ($input as $key => $value) { + $columns = $columns.$fix.$key; + $values = $values.$fix."'".$value."'"; + $update = $update.$fix.$key." = '$value'"; + + $fix = ", "; + } + +// echo($columns."
"); +// echo($values."
"); +// echo($update."
"); + + $sql = "INSERT INTO bestellvorschlag (".$columns.") VALUES (".$values.") ON DUPLICATE KEY UPDATE ".$update; + +// echo($sql); + + $this->app->DB->Update($sql); + + if ($id == 'NULL') { + $msg = $this->app->erp->base64_url_encode("
Das Element wurde erfolgreich angelegt.
"); + header("Location: index.php?module=bestellvorschlag&action=list&msg=$msg"); + } else { + $this->app->Tpl->Set('MESSAGE', "
Die Einstellungen wurden erfolgreich übernommen.
"); + } + } + + + // Load values again from database + $dropnbox = "'' AS `open`, CONCAT('') AS `auswahl`"; + $result = $this->app->DB->SelectArr("SELECT SQL_CALC_FOUND_ROWS b.id, $dropnbox, b.artikel, b.adresse, b.lager, b.id FROM bestellvorschlag b"." WHERE id=$id"); + + foreach ($result[0] as $key => $value) { + $this->app->Tpl->Set(strtoupper($key), $value); + } + + /* + * Add displayed items later + * + + $this->app->Tpl->Add('KURZUEBERSCHRIFT2', $email); + $this->app->Tpl->Add('EMAIL', $email); + $this->app->Tpl->Add('ANGEZEIGTERNAME', $angezeigtername); + */ + +// $this->SetInput($input); + $this->app->Tpl->Parse('PAGE', "bestellvorschlag_edit.tpl"); + } + + /** + * Get all paramters from html form and save into $input + */ + public function GetInput(): array { + $input = array(); + //$input['EMAIL'] = $this->app->Secure->GetPOST('email'); + + $input['artikel'] = $this->app->Secure->GetPOST('artikel'); + $input['adresse'] = $this->app->Secure->GetPOST('adresse'); + $input['lager'] = $this->app->Secure->GetPOST('lager'); + + + return $input; + } + + /* + * Set all fields in the page corresponding to $input + */ + function SetInput($input) { + // $this->app->Tpl->Set('EMAIL', $input['email']); + + $this->app->Tpl->Set('ARTIKEL', $input['artikel']); + $this->app->Tpl->Set('ADRESSE', $input['adresse']); + $this->app->Tpl->Set('LAGER', $input['lager']); + + } + +} diff --git a/www/pages/content/auftrag_teillieferung.tpl b/www/pages/content/auftrag_teillieferung.tpl index 8ebf1a89..5c6e7d2b 100644 --- a/www/pages/content/auftrag_teillieferung.tpl +++ b/www/pages/content/auftrag_teillieferung.tpl @@ -1,22 +1,35 @@ -
- - - -
-
Teillieferung: Auswahl der Artikel für eine Teillieferung. Bestimmen Sie welche Artikel als Teillieferung vorab versendet werden sollen,
-und wann die Rechnung versendet wird (bei aktueller oder nächster Lieferung).
-
-
-[MESSAGE] -[TAB1] -[TAB1NEXT] -
-
- - +
+
[INFOTEXT]
+
+
+ [MESSAGE] +
+
+
+
+
+ [TABLE] +
+
+
+
+
+
+ + {|Aktionen|} + + +
+
+
+
+
+
+
+
diff --git a/www/pages/content/bestellvorschlag_list.tpl b/www/pages/content/bestellvorschlag_list.tpl new file mode 100644 index 00000000..9d79b6d8 --- /dev/null +++ b/www/pages/content/bestellvorschlag_list.tpl @@ -0,0 +1,83 @@ +
+
+ [MESSAGE] +
+
+
+
+
+
+ + {|Einstellungen|} + + + + + + + + +
{|Absatz berücksichtigen (Monate)|}:
{|Vorausplanen (Monate)|}:
+
+
+
+
+
+
+
+
+
+
+ + Aktionen + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+ [TAB1] +
+ + + + +
+  alle markieren  +
+
+
+
+
+
+
+ [TAB1NEXT] +
+
+ + + + + + diff --git a/www/pages/content/dateien_list.tpl b/www/pages/content/dateien_list.tpl new file mode 100644 index 00000000..1742e34f --- /dev/null +++ b/www/pages/content/dateien_list.tpl @@ -0,0 +1,5 @@ +
+ [MESSAGE] + [TAB1] + [TAB1NEXT] +
diff --git a/www/pages/content/produktion_edit.tpl b/www/pages/content/produktion_edit.tpl index a97610cc..15f3254d 100644 --- a/www/pages/content/produktion_edit.tpl +++ b/www/pages/content/produktion_edit.tpl @@ -1,13 +1,10 @@
-
[MESSAGE]
@@ -17,361 +14,266 @@
- {|produktion|}Info like this. + {|Produktion [BELEGNR]|} + [STATUSICONS] + [TEILPRODUKTIONINFO] +
+
+
+
+
+
+
+
+
+
+ {|Allgemein|} + + + + + +
{|Kunde|}:
{|Projekt|}:
{|Auftrag|}:
{|Interne Bezeichnung|}:
+
+
+
+
+
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
{|Datum|}:
{|Art|}:
{|Projekt|}:
{|Belegnr|}:
{|Internet|}:
{|Bearbeiter|}:
{|Angebot|}:
{|Freitext|}:
{|Internebemerkung|}:
{|Status|}:
{|Adresse|}:
{|Name|}:
{|Abteilung|}:
{|Unterabteilung|}:
{|Strasse|}:
{|Adresszusatz|}:
{|Ansprechpartner|}:
{|Plz|}:
{|Ort|}:
{|Land|}:
{|Ustid|}:
{|Ust_befreit|}:
{|Ust_inner|}:
{|Email|}:
{|Telefon|}:
{|Telefax|}:
{|Betreff|}:
{|Kundennummer|}:
{|Versandart|}:
{|Vertrieb|}:
{|Zahlungsweise|}:
{|Zahlungszieltage|}:
{|Zahlungszieltageskonto|}:
{|Zahlungszielskonto|}:
{|Bank_inhaber|}:
{|Bank_institut|}:
{|Bank_blz|}:
{|Bank_konto|}:
{|Kreditkarte_typ|}:
{|Kreditkarte_inhaber|}:
{|Kreditkarte_nummer|}:
{|Kreditkarte_pruefnummer|}:
{|Kreditkarte_monat|}:
{|Kreditkarte_jahr|}:
{|Firma|}:
{|Versendet|}:
{|Versendet_am|}:
{|Versendet_per|}:
{|Versendet_durch|}:
{|Autoversand|}:
{|Keinporto|}:
{|Keinestornomail|}:
{|Abweichendelieferadresse|}:
{|Liefername|}:
{|Lieferabteilung|}:
{|Lieferunterabteilung|}:
{|Lieferland|}:
{|Lieferstrasse|}:
{|Lieferort|}:
{|Lieferplz|}:
{|Lieferadresszusatz|}:
{|Lieferansprechpartner|}:
{|Packstation_inhaber|}:
{|Packstation_station|}:
{|Packstation_ident|}:
{|Packstation_plz|}:
{|Packstation_ort|}:
{|Autofreigabe|}:
{|Freigabe|}:
{|Nachbesserung|}:
{|Gesamtsumme|}:
{|Inbearbeitung|}:
{|Abgeschlossen|}:
{|Nachlieferung|}:
{|Lager_ok|}:
{|Porto_ok|}:
{|Ust_ok|}:
{|Check_ok|}:
{|Vorkasse_ok|}:
{|Nachnahme_ok|}:
{|Reserviert_ok|}:
{|Bestellt_ok|}:
{|Zeit_ok|}:
{|Versand_ok|}:
{|Partnerid|}:
{|Folgebestaetigung|}:
{|Zahlungsmail|}:
{|Stornogrund|}:
{|Stornosonstiges|}:
{|Stornorueckzahlung|}:
{|Stornobetrag|}:
{|Stornobankinhaber|}:
{|Stornobankkonto|}:
{|Stornobankblz|}:
{|Stornobankbank|}:
{|Stornogutschrift|}:
{|Stornogutschriftbeleg|}:
{|Stornowareerhalten|}:
{|Stornomanuellebearbeitung|}:
{|Stornokommentar|}:
{|Stornobezahlt|}:
{|Stornobezahltam|}:
{|Stornobezahltvon|}:
{|Stornoabgeschlossen|}:
{|Stornorueckzahlungper|}:
{|Stornowareerhaltenretour|}:
{|Partnerausgezahlt|}:
{|Partnerausgezahltam|}:
{|Kennen|}:
{|Logdatei|}:
{|Bezeichnung|}:
{|Datumproduktion|}:
{|Anschreiben|}:
{|Usereditid|}:
{|Useredittimestamp|}:
{|Steuersatz_normal|}:
{|Steuersatz_zwischen|}:
{|Steuersatz_ermaessigt|}:
{|Steuersatz_starkermaessigt|}:
{|Steuersatz_dienstleistung|}:
{|Waehrung|}:
{|Schreibschutz|}:
{|Pdfarchiviert|}:
{|Pdfarchiviertversion|}:
{|Typ|}:
{|Reservierart|}:
{|Auslagerart|}:
{|Projektfiliale|}:
{|Datumauslieferung|}:
{|Datumbereitstellung|}:
{|Unterlistenexplodieren|}:
{|Charge|}:
{|Arbeitsschrittetextanzeigen|}:
{|Einlagern_ok|}:
{|Auslagern_ok|}:
{|Mhd|}:
{|Auftragmengenanpassen|}:
{|Internebezeichnung|}:
{|Mengeoriginal|}:
{|Teilproduktionvon|}:
{|Teilproduktionnummer|}:
{|Parent|}:
{|Parentnummer|}:
{|Bearbeiterid|}:
{|Mengeausschuss|}:
{|Mengeerfolgreich|}:
{|Abschlussbemerkung|}:
{|Auftragid|}:
{|Funktionstest|}:
{|Seriennummer_erstellen|}:
{|Unterseriennummern_erfassen|}:
{|Datumproduktionende|}:
{|Standardlager|}:
{|Status|}:
{|Angelegt am|}:
{|Materiallager|}:
+
+
+
+
+
+
+ + {|Aktionen|} + + +
+
+
+
+
+
+
+
+
+
+
+ {|Einstellungen|} + + + + + + + + +
{|Reservierart|}:
{|Auslagerart|}:
{|Unterstücklisten auflösen|}:
{|Funktionstest|}:
{|Beschreibungen von Arbeitsschritten anzeigen|}:
{|Seriennummer erstellen|}:
{|Unterseriennummer erfassen|}:
+
+
+
+
+
+
+ + + + +
{|Auslieferung Lager|}:
{|Bereitstellung Start|}:
{|Produktion Start|}:
{|Produktion Ende|}:
- - - - - diff --git a/www/pages/content/produktion_list.tpl b/www/pages/content/produktion_list.tpl index 1742e34f..39ca3cf9 100644 --- a/www/pages/content/produktion_list.tpl +++ b/www/pages/content/produktion_list.tpl @@ -1,5 +1,48 @@ -
- [MESSAGE] - [TAB1] - [TAB1NEXT] +
+ +
+ [MESSAGE] +
+
+
+
{|Filter|}
+
    + [STATUSFILTER] +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
+ [TAB1] + [TAB1NEXT] +
diff --git a/www/pages/content/produktion_minidetail.tpl b/www/pages/content/produktion_minidetail.tpl index ad12a2cb..7514c2a3 100644 --- a/www/pages/content/produktion_minidetail.tpl +++ b/www/pages/content/produktion_minidetail.tpl @@ -1,281 +1,46 @@ - - - - - - - - -
- -
-
[MENU]
-
- -

Artikel für Produktion

-
[ARTIKEL]
- [MINIDETAILNACHARTIKEL] -

Externe Produktionsschritte

-
[BESTELLUNGEN]
- - -

Zeiterfassung

-
[ZEITERFASSUNG]
-

Arbeitsschritte

-
[ARBEITSSCHRITTE]
-

Abschlussbemerkung

-
[ABSCHLUSSBEMERKUNG]
-
- - - - - - - - - - - - - -
Zeit Geplant in StundenZeit Tatsächlich in StundenArbeitsplatzgruppe Kosten Geplant in EURArbeitsplatzgruppe Kosten Tatsächlich in EUR
[ZEITGEPLANT][ZEITGEBUCHT][KOSTENGEPLANT][KOSTENGEBUCHT]
-
-
-
-
- -

Produktionszentrum

-
-
- [BUTTONS] -
-
- -
-

Protokoll

-
- [PROTOKOLL] -
-
- - - - - -

Abschluss Bericht

-
- - - - - - - - - -
Menge GeplantMenge Ausschuss
[MENGEGEPLANT][MENGEAUSSCHUSS]
-
- -

Deckungsbeitrag

-
- - - - - - - - - -
Deckungsbeitrag in EURDB in %
[DECKUNGSBEITRAG][DBPROZENT]
- -
-
- -
+
+
+
+ {|Produktionsfortschritt|} +
+ + + + + + + + + + + + + + + + + + + + + + + +
{|Geplant|}:[MINI_MENGE_GEPLANT]{|Offen:|}[MINI_MENGE_OFFEN]
{|Produziert|}:[MINI_MENGE_PRODUZIERT]{|Reserviert:|}[MINI_MENGE_RESERVIERT]
{|Erfolgreich|}:[MINI_MENGEERFOLGREICH]{|Produzierbar:|}[MINI_MENGE_PRODUZIERBAR]
{|Ausschuss|}:[MINI_MENGEAUSSCHUSS]
+
+
+
+
+ {|Protokoll|} +
+ [PROTOKOLL] +
+
+
+
-
-
-
-
{|Artikel|} -
- - -
-
-
{|Bestellung bei externen Produzent|} - - - - - - - - - - - -
- - - - - -
- - - -
- - -
-
-
{|Beistellen des Materials|} - - - - - - - -
- - -
- - -
-
-
{|Produktion|} - - - - -
- - -
-
-
-
- diff --git a/www/pages/content/produktion_position_edit.tpl b/www/pages/content/produktion_position_edit.tpl new file mode 100644 index 00000000..64d9e3b0 --- /dev/null +++ b/www/pages/content/produktion_position_edit.tpl @@ -0,0 +1,33 @@ +
+ + + +
diff --git a/www/pages/content/ticket_edit.tpl b/www/pages/content/ticket_edit.tpl index 67118ba5..52e7c38c 100644 --- a/www/pages/content/ticket_edit.tpl +++ b/www/pages/content/ticket_edit.tpl @@ -20,11 +20,11 @@ {|[STATUSICON]Ticket #[SCHLUESSEL]|} - - + +
{|Betreff|}:
{|Letzte Aktion|}:[ZEIT]
{|Von|}:[MAILADRESSE] ([KUNDE])
{|Von|}:[KUNDE] [MAILADRESSE]
{|Projekt|}:
{|Adresse|}:
{|Tags|}:
{|Letzte Aktion|}:[ZEIT]
diff --git a/www/pages/content/ticket_nachricht.tpl b/www/pages/content/ticket_nachricht.tpl index 7e3f388d..8452ac29 100644 --- a/www/pages/content/ticket_nachricht.tpl +++ b/www/pages/content/ticket_nachricht.tpl @@ -1,19 +1,34 @@
-
-
-
- {|[NACHRICHT_BETREFF]|} - - - - - - - - -
{|Zeit|}:[NACHRICHT_ZEIT]
{|Von|}:[NACHRICHT_SENDER]
{|An|}:[NACHRICHT_RECIPIENTS]
{|CC|}:[NACHRICHT_CC_RECIPIENTS]

[NACHRICHT_TEXT]
[NACHRICHT_ANHANG]
-
+
+
+
+
+
+
+
+ + + + + + + +
{|Betreff|}:[NACHRICHT_BETREFF]
{|Zeit|}:[NACHRICHT_ZEIT]
{|Von|}:[NACHRICHT_SENDER]
{|An|}:[NACHRICHT_RECIPIENTS]
{|CC|}:[NACHRICHT_CC_RECIPIENTS]
[NACHRICHT_ANHANG]
+
+
+
+
+
+
+ + +
[NACHRICHT_TEXT]
+
+
+
+
+
diff --git a/www/pages/content/uebersetzung_edit.tpl b/www/pages/content/uebersetzung_edit.tpl new file mode 100644 index 00000000..663757a8 --- /dev/null +++ b/www/pages/content/uebersetzung_edit.tpl @@ -0,0 +1,90 @@ +
+ + +
+ [MESSAGE] +
+ [FORMHANDLEREVENT] +
+
+
+
+
+ {|Übersetzung|} + + + + + + + + + +
{|Label|}:
{|Sprache|}:
{|Übersetzung|}:
{|Original|}:
+
+
+
+
+
+ + +
+
+ +
+ diff --git a/www/pages/content/uebersetzung_list.tpl b/www/pages/content/uebersetzung_list.tpl new file mode 100644 index 00000000..7cd3c1a3 --- /dev/null +++ b/www/pages/content/uebersetzung_list.tpl @@ -0,0 +1,10 @@ +
+ +
+ [MESSAGE] + [TAB1] + [TAB1NEXT] +
+
diff --git a/www/pages/content/upgrade.tpl b/www/pages/content/upgrade.tpl new file mode 100644 index 00000000..3acd5379 --- /dev/null +++ b/www/pages/content/upgrade.tpl @@ -0,0 +1,108 @@ +
+
    +
  • +
+ +
+ [MESSAGE] +
+
+
+
+
+ {|OpenXE Upgrade-System|} +Das Upgrade funktioniert in 2 Schritten: Dateien aktualisieren, Datenbank auffrischen. Wenn das Upgrade lange läuft, kann der Fortschritt in einem neuen Fenster mit "Anzeige auffrischen" angezeigt werden.

+Falls nach einem Abbruch oder schwerwiegenden Fehler kein Upgrade möglich ist, im Hauptordner den Ordner ".git" löschen und das Upgrade in der Konsole erneut durchführen. +Dazu im Unterordner "upgrade" diesen Befehl starten:
./upgrade.sh -do
+
+
+
+
+
+
+ [FORMHANDLEREVENT] +
+
+
+
+
+
+
+
+
+ {|Aktuelle Version|} + + OpenXE [CURRENT] +
+
+
+
+
+
+
+
+
+
+
+ {|Ausgabe|} + +[OUTPUT_FROM_CLI] +
+
+
+
+
+
+
+
+
+
+
+ {|Aktionen|} + + + + + + + + + +
{|Upgrade-Details anzeigen|}:
{|Erzwingen (-f)|}:
{|Datenbank-Details anzeigen|}:
+
+
+
+
+
+
+
+ +
+ diff --git a/www/pages/dateien.php b/www/pages/dateien.php index ac4a3c5a..f4c96cbd 100644 --- a/www/pages/dateien.php +++ b/www/pages/dateien.php @@ -95,15 +95,15 @@ class Dateien { $heading = array('ID','Titel', 'Beschreibung', 'Verknüpfung', 'Geloescht', 'Logdatei', 'Menü'); $width = array('10%'); // Fill out manually later - $findcols = array('d.id','d.titel', 'd.beschreibung', 'd.nummer', 'd.geloescht', 'd.logdatei'); - $searchsql = array('d.titel', 'd.beschreibung', 'd.nummer', 'd.geloescht', 'd.logdatei'); + $findcols = array('d.id','d.titel', 'd.beschreibung', 'ds.objekt', 'd.geloescht', 'd.logdatei'); + $searchsql = array('d.titel', 'd.beschreibung', 'd.nummer', 'd.geloescht', 'd.logdatei','ds.objekt'); $defaultorder = 1; $defaultorderdesc = 0; $menu = "
" . "Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\">
"; - $sql = "SELECT SQL_CALC_FOUND_ROWS d.id, d.id, d.titel, d.beschreibung, GROUP_CONCAT(ds.objekt SEPARATOR ', '), d.geloescht, d.logdatei, d.id FROM datei d LEFT join datei_stichwoerter ds ON ds.datei = d.id"; + $sql = "SELECT SQL_CALC_FOUND_ROWS d.id, d.id, d.titel, d.beschreibung, GROUP_CONCAT(ds.objekt SEPARATOR ', ') as verknuepfung, d.geloescht, d.logdatei, d.id FROM datei d LEFT join datei_stichwoerter ds ON ds.datei = d.id"; $where = "1"; $count = "SELECT count(DISTINCT id) FROM datei WHERE $where"; diff --git a/www/pages/firmendaten.php b/www/pages/firmendaten.php index 0ece581b..e06eae2b 100644 --- a/www/pages/firmendaten.php +++ b/www/pages/firmendaten.php @@ -1016,7 +1016,7 @@ class Firmendaten { ,'zahlungszielskonto','kleinunternehmer','schnellanlegen','bestellvorschlaggroessernull','immernettorechnungen','rechnung_header','rechnung_footer', 'lieferschein_header','lieferschein_footer','auftrag_header','auftrag_footer','angebot_header','angebot_footer','gutschrift_header','gutschrift_footer','bestellung_header','bestellung_footer', 'arbeitsnachweis_header','arbeitsnachweis_footer','provisionsgutschrift_header','provisionsgutschrift_footer','proformarechnung_header','proformarechnung_footer','eu_lieferung_vermerk','export_lieferung_vermerk' - ,'wareneingang_kamera_waage','layout_iconbar','passwort','host','port','mailssl','signatur','email','absendername','bcc1','bcc2' + ,'wareneingang_kamera_waage','layout_iconbar','passwort','host','port','mailssl','signatur','email','absendername','bcc1','bcc2','bcc3' ,'firmenfarbe','name','strasse','plz','ort','steuernummer','projekt','steuer_positionen_export','tabsnavigationfarbe','tabsnavigationfarbeschrift' ); @@ -1719,6 +1719,7 @@ class Firmendaten { $this->app->Tpl->Set('ABSENDERNAME' , $data[0]['absendername']); $this->app->Tpl->Set('BCC1' , $data[0]['bcc1']); $this->app->Tpl->Set('BCC2' , $data[0]['bcc2']); + $this->app->Tpl->Set('BCC3' , $data[0]['bcc3']); $this->app->Tpl->Set('FIRMENFARBE' , $data[0]['firmenfarbe']); $this->app->Tpl->Set('NAME' , $data[0]['name']); $this->app->Tpl->Set('STRASSE' , $data[0]['strasse']); @@ -2072,7 +2073,8 @@ class Firmendaten { $this->app->Tpl->Set('EMAIL' , $data['email']); $this->app->Tpl->Set('ABSENDERNAME' , $data['absendername']); $this->app->Tpl->Set('BCC1' , $data['bcc1']); - $this->app->Tpl->Set('BCC2' , $data['bcc2']); + $this->app->Tpl->Set('BCC2' , $data['bcc2']); + $this->app->Tpl->Set('BCC3' , $data['bcc3']); $this->app->Tpl->Set('FIRMENFARBE' , $data['firmenfarbe']); $this->app->Tpl->Set('NAME' , $data['name']); $this->app->Tpl->Set('STRASSE' , $data['strasse']); @@ -2224,6 +2226,7 @@ class Firmendaten { $data['absendername'] = ($this->app->Secure->POST["absendername"]); $data['bcc1'] = ($this->app->Secure->POST["bcc1"]); $data['bcc2'] = ($this->app->Secure->POST["bcc2"]); + $data['bcc3'] = ($this->app->Secure->POST["bcc3"]); $data['name'] = ($this->app->Secure->POST["name"]); $data['firmenfarbe'] = ($this->app->Secure->POST["firmenfarbe"]); $data['strasse'] = ($this->app->Secure->POST["strasse"]); diff --git a/www/pages/importvorlage.php b/www/pages/importvorlage.php index 18af7c73..fdc370aa 100644 --- a/www/pages/importvorlage.php +++ b/www/pages/importvorlage.php @@ -3739,7 +3739,7 @@ class Importvorlage extends GenImportvorlage { } $altervk = $this->app->DB->Select("SELECT preis FROM verkaufspreise WHERE artikel='$artikelid' AND ab_menge='".$tmp['verkaufspreis'.$verkaufspreisanzahl.'menge'][$i]."' - AND (gueltig_bis='0000-00-00' OR gueltig_bis >=NOW() ) AND adresse <='$_kundenid' ".($gruppe?" AND gruppe = '".$gruppe."'":" AND (is_null(gruppe) or gruppe = '') ")." LIMIT 1"); + AND (gueltig_bis='0000-00-00' OR gueltig_bis >=NOW() ) AND adresse <='$_kundenid' ".($gruppe?" AND gruppe = '".$gruppe."'":" AND ((gruppe IS NULL) or gruppe = '') ")." LIMIT 1"); if($altervk != str_replace(',','.',$tmp['verkaufspreis'.$verkaufspreisanzahl.'netto'][$i]) && str_replace(',','.',$tmp['verkaufspreis'.$verkaufspreisanzahl.'netto'][$i])) { @@ -3755,7 +3755,7 @@ class Importvorlage extends GenImportvorlage { //verkaufspreis3internerkommentar'][$i] $this->app->DB->Update("UPDATE verkaufspreise SET gueltig_bis=DATE_SUB(NOW(),INTERVAL 1 DAY) - WHERE artikel='".$artikelid."' AND adresse='$_kundenid' ".($gruppe?" AND gruppe = '".$gruppe."'":" AND (is_null(gruppe) or gruppe = '') ")." + WHERE artikel='".$artikelid."' AND adresse='$_kundenid' ".($gruppe?" AND gruppe = '".$gruppe."'":" AND ((gruppe IS NULL) or gruppe = '') ")." AND ab_menge='".$tmp['verkaufspreis'.$verkaufspreisanzahl.'menge'][$i]."' LIMIT 1"); $verkaufspreis1stueckdivisor = 1; diff --git a/www/pages/lager.php b/www/pages/lager.php index 0d252509..264fbfff 100644 --- a/www/pages/lager.php +++ b/www/pages/lager.php @@ -1346,17 +1346,17 @@ class Lager extends GenLager { case "lager_reservierungen": $allowed['lager'] = array('reservierungen'); - $heading = array('Kunde','Belegart','Belegnr','Status','Artikel','Menge','Projekt','Grund','Menü'); - $width = array('20%','20%','5%','10%','20%','1%'); - $findcols = array('t.kunde', 't.typ', 't.belegnr', 't.status', 't.Artikel', 't.menge', 't.projekt', 't.grund', 't.rid'); - $searchsql = array('t.kunde', 't.typ', 't.belegnr', 't.status', 't.Artikel', $app->erp->FormatMenge('t.menge'), 't.projekt', 't.grund'); + $heading = array('Kunde','Belegart','Belegnr','Status','Artikelnummer','Artikel','Menge','Projekt','Grund','Menü'); + $width = array('20%', '10%', '5%', '5%', '5%', '20%', '1%', '10%', '20%'); + $findcols = array('t.kunde', 't.typ', 't.belegnr', 't.status','t.Artikelnummer', 't.Artikel', 't.menge', 't.projekt', 't.grund', 't.rid'); + $searchsql = array('t.kunde', 't.typ', 't.belegnr', 't.status','t.Artikelnummer', 't.Artikel', $app->erp->FormatMenge('t.menge'), 't.projekt', 't.grund'); $defaultorder = 1; //Optional wenn andere Reihenfolge gewuenscht $defaultorderdesc = 1; //$sumcol = 9; $menu = "
Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\">
"; - $alignright = array(6); - $numbercols = array(5); + $alignright = array(7); + $numbercols = array(6); $menucol = 5; //$moreinfo = true; $sql = " @@ -1366,6 +1366,7 @@ class Lager extends GenLager { t.typ, t.belegnr, t.status, + t.Artikelnummer, t.Artikel, ".$app->erp->FormatMenge('t.menge').", t.projekt, @@ -1375,43 +1376,43 @@ class Lager extends GenLager { FROM ( ( - SELECT r.id as rid, adr.name as kunde,'Auftrag' as typ,if(auf.belegnr = '','ENTWURF',auf.belegnr) as belegnr ,if(auf.status = '','angelegt',auf.status) as status, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON + SELECT r.id as rid, adr.name as kunde,'Auftrag' as typ,if(auf.belegnr = '','ENTWURF',auf.belegnr) as belegnr ,if(auf.status = '','angelegt',auf.status) as status, a.nummer as Artikelnummer, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON p.id=r.projekt LEFT JOIN adresse adr ON r.adresse=adr.id INNER JOIN auftrag auf ON auf.id = r.parameter AND r.objekt = 'auftrag' ) UNION ALL ( - SELECT r.id as rid, adr.name as kunde,'Lieferschein' as typ,if(l.belegnr = '','ENTWURF',l.belegnr) as belegnr ,if(l.status = '','angelegt',l.status) as status, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON + SELECT r.id as rid, adr.name as kunde,'Lieferschein' as typ,if(l.belegnr = '','ENTWURF',l.belegnr) as belegnr ,if(l.status = '','angelegt',l.status) as status, a.nummer as Artikelnummer, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON p.id=r.projekt LEFT JOIN adresse adr ON r.adresse=adr.id INNER JOIN lieferschein l ON l.id = r.parameter AND r.objekt = 'lieferschein' ) UNION ALL ( - SELECT r.id as rid, adr.name as kunde,'Produktion' as typ,if(l.belegnr = '','ENTWURF',l.belegnr) as belegnr ,if(l.status = '','angelegt',l.status) as status, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON + SELECT r.id as rid, adr.name as kunde,'Produktion' as typ,if(l.belegnr = '','ENTWURF',l.belegnr) as belegnr ,if(l.status = '','angelegt',l.status) as status, a.nummer as Artikelnummer, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON p.id=r.projekt LEFT JOIN adresse adr ON r.adresse=adr.id INNER JOIN produktion l ON l.id = r.parameter AND r.objekt = 'produktion' ) UNION ALL ( - SELECT r.id as rid, adr.name as kunde,'Auftrag' as typ,'GELÖSCHT' as belegnr ,'GELÖSCHT' as status, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON + SELECT r.id as rid, adr.name as kunde,'Auftrag' as typ,'GELÖSCHT' as belegnr ,'GELÖSCHT' as status, a.nummer as Artikelnummer, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON p.id=r.projekt LEFT JOIN adresse adr ON r.adresse=adr.id LEFT JOIN auftrag auf ON auf.id = r.parameter AND r.objekt = 'auftrag' WHERE isnull(auf.id) AND r.objekt = 'auftrag' ) UNION ALL ( - SELECT r.id as rid, adr.name as kunde,'Lieferschein' as typ,'GELÖSCHT' as belegnr ,'GELÖSCHT' as status, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON + SELECT r.id as rid, adr.name as kunde,'Lieferschein' as typ,'GELÖSCHT' as belegnr ,'GELÖSCHT' as status, a.nummer as Artikelnummer, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON p.id=r.projekt LEFT JOIN adresse adr ON r.adresse=adr.id LEFT JOIN lieferschein l ON l.id = r.parameter AND r.objekt = 'lieferschein' WHERE isnull(l.id) AND r.objekt = 'lieferschein' ) UNION ALL ( - SELECT r.id as rid, adr.name as kunde,'Produktion' as typ,'GELÖSCHT' as belegnr ,'GELÖSCHT' as status, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON + SELECT r.id as rid, adr.name as kunde,'Produktion' as typ,'GELÖSCHT' as belegnr ,'GELÖSCHT' as status, a.nummer as Artikelnummer, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON p.id=r.projekt LEFT JOIN adresse adr ON r.adresse=adr.id LEFT JOIN produktion l ON l.id = r.parameter AND r.objekt = 'produktion' WHERE isnull(l.id) AND r.objekt = 'produktion' ) UNION ALL ( - SELECT r.id as rid, adr.name as kunde,r.objekt as typ,'' as belegnr , '' as status, a.name_de as Artikel,r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON + SELECT r.id as rid, adr.name as kunde,r.objekt as typ,'' as belegnr , '' as status, a.nummer as Artikelnummer, a.name_de as Artikel, r.menge,p.abkuerzung as projekt,r.grund, r.id FROM lager_reserviert r LEFT JOIN artikel a ON a.id=r.artikel LEFT JOIN projekt p ON p.id=r.projekt LEFT JOIN adresse adr ON r.adresse=adr.id WHERE r.objekt <> 'auftrag' AND r.objekt <> 'lieferschein' AND r.objekt <> 'produktion' ) diff --git a/www/pages/layoutvorlagen.php b/www/pages/layoutvorlagen.php index 0b7a58c1..c7663c50 100644 --- a/www/pages/layoutvorlagen.php +++ b/www/pages/layoutvorlagen.php @@ -1,915 +1,915 @@ -app = $app; - if($intern) { - return; - } - $this->app->ActionHandlerInit($this); - $this->app->ActionHandler("list", "LayoutvorlagenList"); - $this->app->ActionHandler("edit", "LayoutvorlagenEdit"); - $this->app->ActionHandler("create", "LayoutvorlagenCreate"); - $this->app->ActionHandler("copy", "LayoutvorlagenCopy"); - $this->app->ActionHandler("getposition", "LayoutvorlagenGetPosition"); - $this->app->ActionHandler("saveposition", "LayoutvorlagenSavePosition"); - $this->app->ActionHandler("createposition", "LayoutvorlagenCreatePosition"); - $this->app->ActionHandler("deleteposition", "LayoutvorlagenDeletePosition"); - $this->app->ActionHandler("delete", "LayoutvorlagenDelete"); - $this->app->ActionHandler("download", "LayoutvorlagenDownload"); - $this->app->ActionHandler("export", "LayoutvorlagenExport"); - //$this->app->ActionHandler("import", "LayoutvorlagenImport"); - - $this->app->ActionHandler("imgvorschau", "LayoutvorlagenImgVorschau"); - - $this->app->erp->Headlines('Layoutvorlagen'); - - $this->app->ActionHandlerListen($app); - } - - public function LayoutvorlagenCopy() - { - $id = (int)$this->app->Secure->GetGET('id'); - if($id) - { - $layoutvorlage = $this->app->DB->SelectArr("SELECT * FROM layoutvorlagen WHERE id = '$id'"); - if($layoutvorlage) - { - $this->app->DB->Insert("INSERT INTO layoutvorlagen (id) VALUES('')"); - $newvorlage = $this->app->DB->GetInsertID(); - $layoutvorlage[0]['name'] .= ' (Kopie)'; - $this->app->FormHandler->ArrayUpdateDatabase("layoutvorlagen",$newvorlage,$layoutvorlage[0],true); - $positionen = $this->app->DB->SelectArr("SELECT * FROM layoutvorlagen_positionen WHERE layoutvorlage = '$id'"); - if($positionen) - { - foreach($positionen as $position) - { - $this->app->DB->Insert("INSERT INTO layoutvorlagen_positionen (id) VALUES('')"); - $newvorlagepos = $this->app->DB->GetInsertID(); - $position['layoutvorlage'] = $newvorlage; - $this->app->FormHandler->ArrayUpdateDatabase("layoutvorlagen_positionen",$newvorlagepos,$position, true); - } - } - } - } - header('Location: index.php?module=layoutvorlagen&action=list'); - exit; - } - - public function LayoutvorlagenDownload($id = 0) - { - if(!$id)$id = $this->app->Secure->GetGET('id'); - // mit infos aus zertifikat und konkreten inhalten - $projekt = ""; - $Brief = new LayoutvorlagenPDF($this->app, $projekt); - $Brief->GetLayoutvorlage($id); - $Brief->inlineDocument(); - } - - - public function LayoutvorlagenMenu() { - $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=list","Übersicht"); - } - - public function LayoutvorlagenList() { - - //$this->LayoutvorlagenMenu(); - $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=list","Übersicht"); - $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=create","Neu"); - - $layoutanlegen = $this->app->Secure->GetPOST('layoutanlegen'); - - - if ($layoutanlegen) { - - $row['name'] = $this->app->Secure->GetPOST('name'); - //$row['name'] = preg_replace('#[^-A-Za-z0-9]#', '-', $row['name']); - $row['typ'] = $this->app->Secure->GetPOST('typ'); - $row['format'] = $this->app->Secure->GetPOST('format'); - $row['kategorie'] = $this->app->Secure->GetPOST('kategorie'); - - if ($row['name']) { - - $this->app->DB->Insert(' - INSERT INTO - layoutvorlagen - SET - name = "' . $row['name'] . '", - typ = "' . $row['typ'] . '", - format = "' . $row['format'] . '", - kategorie = "' . $row['kategorie'] . '" - '); - - $id = $this->app->DB->GetInsertID(); - if ($id) { - header('location: index.php?module=layoutvorlagen&action=edit&id=' . $id); - exit; - } - } - } - if($this->app->Secure->GetPOST('cmd') === 'import') { - if (!empty($_FILES['importfile']['tmp_name'])) { - $string = file_get_contents($_FILES['importfile']['tmp_name']); - $ret = $this->importJson($string, $this->app->Secure->GetPOST('ueberschreiben')); - if(!empty($ret['message'])) { - $this->app->Tpl->Add('ERRORMSG', $ret['message']); - } - } - else { - $this->app->Tpl->Add('ERRORMSG', "Keine Datei ausgewält"); - } - } - - - $this->app->YUI->TableSearch('TABELLE', 'layoutvorlagen_list'); - $this->app->Tpl->Parse('PAGE',"layoutvorlagen_list.tpl"); - - } - - /** - * @param string $string - * @param bool $overwrite - * - * @return array - */ - public function importJson($string, $overwrite = false) - { - $ret = []; - if(!(NULL !== $json = json_decode($string))) { - return ['status' => 0, 'message' => 'Keine gültige Datei']; - } - if(empty($json->Layout) && empty($json->Layout->name)) { - return ['status' => 0, 'message' => 'Keine gültige Datei Fehlendes Element: Layout']; - } - - $altesLayout = $this->app->DB->SelectArr( - sprintf( - "select * from layoutvorlagen where name like '%s'", - $this->app->DB->real_escape_string($json->Layout->name) - ) - ); - - if(!empty($altesLayout) && !$overwrite) { - return ['status' => 0, 'message' => 'Es existiert bereis ein Layout mit dem Namen','id' => $altesLayout['id']]; - } - - if(isset($json->Layout->id)) { - unset($json->Layout->id); - } - $columns = $this->app->DB->SelectArr('SHOW COLUMNS FROM layoutvorlagen'); - $error = false; - foreach($json->Layout as $k => $v) { - $found = false; - foreach($columns as $k2 => $v2) { - if($v2['Field'] == $k) { - $found = true; - } - } - if(!$found) { - $error = true; - } - } - $columnspos = $this->app->DB->SelectArr('SHOW COLUMNS FROM layoutvorlagen_positionen'); - if(!empty($json->Layoutpositionen)) { - foreach($json->Layoutpositionen as $k => $pos) { - if(isset($pos->id)) { - unset($json->Layoutpositionen[$k]->id); - } - if(isset($pos->layoutvorlage)) { - unset($json->Layoutpositionen[$k]->id); - } - - foreach($pos as $kp => $vp) { - $found = false; - foreach($columnspos as $k2 => $v2) { - if($v2['Field'] == $kp) { - $found = true; - } - } - if(!$found) { - $error = true; - } - } - } - } - if(!empty($error)) { - return ['status' => 0, 'message' => 'Keine gültige Datei: falsche Elemente']; - } - - $query = "insert into layoutvorlagen ("; - $i = 0; - foreach($columns as $k => $v) { - if($v['Field'] !== 'id') { - $i++; - if($i > 1) { - $query .= ', '; - } - $query .= $v['Field']; - } - } - $query .= ') values ('; - $i = 0; - foreach($columns as $k => $v) { - if($v['Field'] !== 'id') { - $i++; - if($i > 1) { - $query .= ', '; - } - $query .= "'"; - $fieldName = $v['Field']; - if(isset($json->Layout->$fieldName)) { - $query .= $this->app->DB->real_escape_string($json->Layout->$fieldName); - } - $query .= "'"; - } - } - $query .= ')'; - - //alte Löschen falls existiert - if($altesLayout) { - foreach($altesLayout as $l) { - if($l['id']) { - $this->app->DB->Delete("delete from layoutvorlagen_positionen where layoutvorlage = ".$l['id']); - $this->app->DB->Delete("delete from layoutvorlagen where id = ".$l['id']); - } - } - } - // - $this->app->DB->Insert($query); - $newid = $this->app->DB->GetInsertID(); - - if(empty($newid)) { - return ['status' => 0, 'message' => 'Fehler beim Erstellen des Layouts']; - } - - $j = 0; - foreach ($json->Layoutpositionen as $kpos => $pos) { - - $querypos[$j] = "insert into layoutvorlagen_positionen (layoutvorlage"; - $i = 0; - foreach($columnspos as $k => $v) { - if($v['Field'] !== 'id' && $v['Field'] !== 'layoutvorlage') { - $i++; - $querypos[$j] .= ', '; - $querypos[$j] .= $v['Field']; - } - } - - $querypos[$j] .= ") values ('".$newid."'"; - $i = 0; - foreach($columnspos as $k => $v) { - if($v['Field'] !== 'id' && $v['Field'] !== 'layoutvorlage') { - $i++; - $querypos[$j] .= ', '; - $querypos[$j] .= "'"; - $fieldName = $v['Field']; - if(isset($pos->$fieldName)) { - $querypos[$j] .= $this->app->DB->real_escape_string($pos->$fieldName); - } - $querypos[$j] .= "'"; - } - } - - $querypos[$j] .= ")"; - $j++; - } - if(isset($querypos)) { - $fehler = false; - foreach($querypos as $qp) { - $this->app->DB->Insert($qp); - if($this->app->DB->error()){ - $ret['error'] = $this->app->DB->error(); - $fehler = true; - } - } - } - if($fehler) { - return [ - 'status' => 0, - 'message' => (empty($ret['error'])?'':$ret['error'].' ') - . 'Fehler beim Erstellen von einer oder mehreren Layoutposition(en)' - ]; - } - - return [ - 'message' => 'Layout ' .$json->Layout->name. ' erfolgreich erstellt', - 'status' => true, 'id' => $newid - ]; - } - - public function LayoutvorlagenEdit() { - - $id = $this->app->Secure->GetGET('id'); - $cmd = $this->app->Secure->GetGET('cmd'); - $speichern = $this->app->Secure->GetPOST('layoutspeichern'); - - if ($speichern) { - $name = $this->app->Secure->GetPOST('name'); - $typ = $this->app->Secure->GetPOST('typ'); - $format = $this->app->Secure->GetPOST('format'); - $kategorie = $this->app->Secure->GetPOST('kategorie'); - $projekt = $this->app->Secure->GetPOST('layoutvorlagen_projekt'); - $delete_hintergrund = $this->app->Secure->GetPOST('delete_hintergrund')==''?false:true; - $pdf_hintergrund = $_FILES['pdf_hintergrund']; - - if (isset($pdf_hintergrund['tmp_name']) && ($pdf_hintergrund['type'] == 'application/pdf' || $pdf_hintergrund['type'] == 'application/force-download' || $pdf_hintergrund['type'] =='binary/octet-stream' || $pdf_hintergrund['type'] == 'application/octetstream')) { - $fp = fopen($pdf_hintergrund['tmp_name'], 'r'); - $imgContent = fread($fp, filesize($pdf_hintergrund['tmp_name'])); - fclose($fp); - $sets[] = 'pdf_hintergrund = "' . base64_encode($imgContent) . '"'; - } elseif($delete_hintergrund) { - $sets[] = 'pdf_hintergrund = ""'; - } - - $sets[] = 'name = "' . $name . '" '; - $sets[] = 'typ = "' . $typ . '" '; - $sets[] = 'format = "' . $format . '" '; - $sets[] = 'kategorie = "' . $kategorie . '" '; - - if ($sets) { - $this->app->DB->Insert('UPDATE layoutvorlagen SET ' . implode(', ', $sets) . ' WHERE id = ' . $id); - } - - if($projekt != ''){ - $projektid = $this->app->DB->Select("SELECT id FROM projekt WHERE abkuerzung = '$projekt' LIMIT 1"); - }else{ - $projektid = 0; - } - - $this->app->DB->Update("UPDATE layoutvorlagen SET projekt = '$projektid' WHERE id = '$id'"); - - } - - $this->app->YUI->AutoComplete("kategorie","layoutvorlagenkategorie"); - $this->app->YUI->AutoComplete("layoutvorlagen_projekt", "projektname", 1); - //$this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=create","Neu"); - $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=edit&id=" . $id . "","Details"); - - $vorlage = $this->app->DB->SelectArr('SELECT * FROM layoutvorlagen WHERE id = ' . $id); - $vorlage = reset($vorlage); - - if ($cmd) { - switch ($cmd) { - case 'pdfvorschau': - $pdf_hintergrund = $this->app->DB->Select('SELECT pdf_hintergrund FROM layoutvorlagen WHERE id = ' . $id); - $pdf_hintergrund = base64_decode($pdf_hintergrund); - - header("Content-type: application/pdf"); - header('Content-disposition: attachment; filename="pdf_hintergrund.pdf"'); - print $pdf_hintergrund; - - - break; - default: - break; - } - exit; - } - - $this->app->User->SetParameter('layoutvorlagen_id', $id); - - $this->app->Tpl->Add('NAME', $vorlage['name']); - $this->app->Tpl->Add('KATEGORIE', $vorlage['kategorie']); - - if($vorlage['projekt'] > 0){ - $projektname = $this->app->DB->Select("SELECT abkuerzung FROM projekt WHERE id = '".$vorlage['projekt']."' LIMIT 1"); - if($projektname != ""){ - $this->app->Tpl->Add('PROJEKT', $projektname); - } - } - - if ($vorlage['pdf_hintergrund']) { - $this->app->Tpl->Add('PDFVORSCHAU', ''); - } - $this->app->Tpl->Add('TAB3', ''); - /* - $schriftarten = $this->app->erp->GetSchriftarten(); - //Test - $schriftarten['times'] = "Times"; - $schriftarten['juliusc'] = 'juliusc'; - $schriftarten['bernard'] = 'Bernard'; - $schriftarten['HLBC____'] = 'HLBC____'; - */ - $schriftartena = $this->app->erp->GetFonts(); - foreach($schriftartena as $kk => $vv) - { - $schriftarten[$kk] = $vv['name']; - - } - //Test End - $schriftartenTpl = ''; - if ($schriftarten) { - foreach ($schriftarten as $schriftartKey => $schriftart) { - $schriftartenTpl .= ''; - } - } - $this->app->Tpl->Add(SCHRIFTARTEN, $schriftartenTpl); - - $rahmenbreiten = array( - '0' => 'Kein Rahmen', - '1' => '1', - '2' => '2', - '3' => '3', - '4' => '4', - '5' => '5', - '6' => '6', - '7' => '7', - '8' => '8', - '9' => '9', - '10' => '10' - ); - $rahmenTpl = ''; - if ($rahmenbreiten) { - foreach ($rahmenbreiten as $rahmenbreiteKey => $rahmenbreite) { - $rahmenTpl .= ''; - } - } - - $positionen = $this->app->DB->SelectArr(' - SELECT - id, - name, - typ - FROM - layoutvorlagen_positionen - WHERE - layoutvorlage = "' . $id . '" - '); - - $positionenTpl = ''; - $positionenTpl .= ''; - if ($positionen) { - foreach ($positionen as $position) { - $positionenTpl .= ''; - } - } - - $schriftausrichtungen = array('left' => 'Links', 'center' => 'Zentriert', 'right' => 'Rechts'); - $schriftausrichtungenTpl = ''; - if ($schriftausrichtungen) { - foreach($schriftausrichtungen as $schriftausrichtungKey => $schriftausrichtung) { - $schriftausrichtungenTpl .= ''; - } - } - - $formate = array('A4' => 'DIN A4 Hoch', 'A4L' => 'DIN A4 Quer','A5' => 'DIN A5 Hoch', 'A5L' => 'DIN A5 Quer','A6' => 'DIN A6 Hoch', 'A6L' => 'DIN A6 Quer'); - $formatTpl = ''; - if ($formate) { - foreach($formate as $formatKey => $formatBeschriftung) { - $formatTpl .= ''; - } - } - - - - $this->app->YUI->ColorPicker("schrift_farbe"); - $this->app->YUI->ColorPicker("hintergrund_farbe"); - $this->app->YUI->ColorPicker("rahmen_farbe"); - - $this->app->Tpl->Add('SCHRIFTAUSRICHTUNGEN', $schriftausrichtungenTpl); - $this->app->Tpl->Add('POSITIONPARENT', $positionenTpl); - - $this->app->Tpl->Add('FORMAT', $formatTpl); - $this->app->Tpl->Add('RAHMEN', $rahmenTpl); - $this->app->YUI->TableSearch('TABELLE', 'layoutvorlagen_edit'); - $this->app->Tpl->Parse('PAGE',"layoutvorlagen_edit.tpl"); - - } - - public function LayoutvorlagenCreate() { - - $speichern = $this->app->Secure->GetPOST('layouterstellen'); - - if ($speichern) { - - - $felder = array('name', 'typ', 'format', 'kategorie'); - $sets = array(); - if ($felder) { - foreach ($felder as $feld) { - $sets[] = $feld . ' = "' . $this->app->Secure->GetPOST($feld) . '"'; - } - } - - $projekt = $this->app->Secure->GetPOST('layoutvorlagen_projekt'); - if($projekt != ''){ - $projektid = $this->app->DB->Select("SELECT id FROM projekt WHERE abkuerzung = '$projekt' LIMIT 1"); - }else{ - $projektid = 0; - } - - $query = ('INSERT INTO layoutvorlagen SET ' . implode(', ', $sets) . ' '); - $this->app->DB->Insert($query); - - - $layoutvorlagenId = $this->app->DB->GetInsertID(); - - $this->app->DB->Update("UPDATE layoutvorlagen SET projekt = '$projektid' WHERE id = '$layoutvorlagenId'"); - - - $delete_hintergrund = $this->app->Secure->GetPOST('delete_hintergrund')==''?false:true; - $pdf_hintergrund = $_FILES['pdf_hintergrund']; - if (isset($pdf_hintergrund['tmp_name']) && ($pdf_hintergrund['type'] == 'application/pdf' || $pdf_hintergrund['type'] == 'application/force-download' || $pdf_hintergrund['type'] =='binary/octet-stream' || $pdf_hintergrund['type'] == 'application/octetstream')) { - $fp = fopen($pdf_hintergrund['tmp_name'], 'r'); - $imgContent = fread($fp, filesize($pdf_hintergrund['tmp_name'])); - fclose($fp); - $sets[] = 'pdf_hintergrund = "' . base64_encode($imgContent) . '"'; - } elseif($delete_hintergrund) { - $sets[] = 'pdf_hintergrund = ""'; - } - - if ($sets) { - $this->app->DB->Insert('UPDATE layoutvorlagen SET ' . implode(', ', $sets) . ' WHERE id = ' . $layoutvorlagenId); - } - - - - - - if ($layoutvorlagenId) { - header('location: index.php?module=layoutvorlagen&action=edit&id=' . $layoutvorlagenId); - exit; - } - - } - - $this->app->YUI->AutoComplete("kategorie","layoutvorlagenkategorie"); - $this->app->YUI->AutoComplete("layoutvorlagen_projekt", "projektname", 1); - - $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=create","Erstellen"); - $this->app->Tpl->Parse('PAGE','layoutvorlagen_create.tpl'); - - } - - public function LayoutvorlagenGetPosition() { - - $id = $this->app->Secure->GetPOST('id'); - $row = $this->app->DB->SelectRow('SELECT * FROM layoutvorlagen_positionen WHERE id = ' . $id); - - if ($row['bild_deutsch']) { - $bilddata['bild_deutsch'] = 'VORSCHAU'; - unset($row['bild_deutsch']); - } - - if ($row['bild_englisch']) { - $bilddata['bild_englisch'] = 'VORSCHAU'; - unset($row['bild_englisch']); - } - - echo json_encode(array( - 'status' => 1, - 'statusText' => '', - 'row' => $row, - 'bilddata' => $bilddata - )); - $this->app->ExitXentral(); - } - - - public function LayoutvorlagenSavePosition() { - - $id = $this->app->Secure->GetPOST('id'); - $typ = $this->app->Secure->GetPOST('typ'); - - $name = $this->app->Secure->GetPOST('name'); - $name = strtolower($name); - $name = preg_replace('#[^-A-Za-z0-9]#', '-', $name); - - $beschreibung = $this->app->Secure->GetPOST('beschreibung'); - $position_typ = $this->app->Secure->GetPOST('position_typ'); - $position_x = $this->app->Secure->GetPOST('position_x'); - $position_y = $this->app->Secure->GetPOST('position_y'); - $position_parent = $this->app->Secure->GetPOST('position_parent'); - $breite = $this->app->Secure->GetPOST('breite'); - $hoehe = $this->app->Secure->GetPOST('hoehe'); - $schrift_art = $this->app->Secure->GetPOST('schrift_art'); - $schrift_groesse = $this->app->Secure->GetPOST('schrift_groesse'); - $zeilen_hoehe = $this->app->Secure->GetPOST('zeilen_hoehe'); - $schrift_align = $this->app->Secure->GetPOST('schrift_align'); - $schrift_farbe = $this->app->Secure->GetPOST('schrift_farbe'); - $hintergrund_farbe = $this->app->Secure->GetPOST('hintergrund_farbe'); - $rahmen = $this->app->Secure->GetPOST('rahmen'); - $rahmen_farbe = $this->app->Secure->GetPOST('rahmen_farbe'); - $sichtbar = ($this->app->Secure->GetPOST('sichtbar')=='')?'0':'1'; - $schrift_fett = ($this->app->Secure->GetPOST('schrift_fett')=='')?'0':'1'; - $schrift_kursiv = ($this->app->Secure->GetPOST('schrift_kursiv')=='')?'0':'1'; - $schrift_underline = ($this->app->Secure->GetPOST('schrift_underline')=='')?'0':'1'; - //$this->app->erp->LogFile("sichtbar: ".$sichtbar."."); - $inhalt_deutsch = $this->app->Secure->GetPOST('inhalt_deutsch'); - $inhalt_englisch = $this->app->Secure->GetPOST('inhalt_englisch'); - $layoutvorlage = (int)$this->app->Secure->GetPOST('layoutvorlage'); - $sort = (int)$this->app->Secure->GetPOST('sort'); - $zeichenbegrenzung = (int)$this->app->Secure->GetPOST('zeichenbegrenzung'); - $zeichenbegrenzung_anzahl = (int)$this->app->Secure->GetPOST('zeichenbegrenzung_anzahl'); - - $layoutvorlagenpos = $this->app->DB->SelectArr("select id, sort from layoutvorlagen_positionen where layoutvorlage = ".$layoutvorlage." and id <> ".$id." order by sort"); - $i = 0; - - if(isset($layoutvorlagenpos[0])) - { - foreach($layoutvorlagenpos as $key => $pos) - { - $i++; - if($i < $sort && $i != $pos['sort'] ) - { - $this->app->DB->Update("update layoutvorlagen_positionen set sort = ".$i." where id = ".$pos['id']); - } - if($i >= $sort && $i + 1 != $pos['sort']) - { - $this->app->DB->Update("update layoutvorlagen_positionen set sort = ".($i + 1)." where id = ".$pos['id']); - } - } - } - if($sort < 1) - { - $sort = 1; - } - if($sort > $i + 1) - { - $sort = $i + 1; - } - - $sets = array(); - $sets[] = 'typ = "' . $typ . '"'; - $sets[] = 'name = "' . $name . '"'; - $sets[] = 'beschreibung = "' . $beschreibung . '"'; - $sets[] = 'position_typ = "' . $position_typ . '"'; - $sets[] = 'position_x = "' . $position_x . '"'; - $sets[] = 'position_y = "' . $position_y . '"'; - $sets[] = 'position_parent = "' . $position_parent . '"'; - $sets[] = 'breite = "' . $breite . '"'; - $sets[] = 'hoehe = "' . $hoehe . '"'; - $sets[] = 'schrift_art = "' . $schrift_art . '"'; - $sets[] = 'schrift_groesse = "' . $schrift_groesse . '"'; - $sets[] = 'zeilen_hoehe = "' . $zeilen_hoehe . '"'; - $sets[] = 'schrift_fett = "' . $schrift_fett . '"'; - $sets[] = 'schrift_kursiv = "' . $schrift_kursiv . '"'; - $sets[] = 'schrift_underline = "' . $schrift_underline . '"'; - $sets[] = 'schrift_align = "' . $schrift_align . '"'; - $sets[] = 'schrift_farbe = "' . $schrift_farbe . '"'; - $sets[] = 'hintergrund_farbe = "' . $hintergrund_farbe . '"'; - $sets[] = 'rahmen = "' . $rahmen . '"'; - $sets[] = 'rahmen_farbe = "' . $rahmen_farbe . '"'; - $sets[] = 'sichtbar = "' . $sichtbar . '"'; - $sets[] = 'inhalt_deutsch = "' . $inhalt_deutsch . '"'; - $sets[] = 'inhalt_englisch = "' . $inhalt_englisch . '"'; - $sets[] = 'layoutvorlage = "' . $layoutvorlage . '"'; - $sets[] = 'sort = "' . $sort . '"'; - $sets[] = 'zeichenbegrenzung = "' . $zeichenbegrenzung . '"'; - $sets[] = 'zeichenbegrenzung_anzahl = "' . $zeichenbegrenzung_anzahl . '"'; - - if (isset($_FILES['bild_deutsch']['tmp_name'])) { - if ($_FILES['bild_deutsch']['type'] == 'image/jpeg' || $_FILES['bild_deutsch']['type'] == 'image/png') { - - $imgtype = exif_imagetype($_FILES['bild_deutsch']['tmp_name']); - $img_type = ''; - switch($imgtype) - { - case IMAGETYPE_GIF: - $img_type = 'GIF'; - break; - case IMAGETYPE_JPEG: - $img_type = 'JPEG'; - break; - case IMAGETYPE_PNG: - $img_type = 'PNG'; - break; - case IMAGETYPE_ICO: - $img_type = 'ICO'; - break; - case IMAGETYPE_BMP: - $img_type = 'BMP'; - break; - - } - $fp = fopen($_FILES['bild_deutsch']['tmp_name'], 'r'); - $sets[] = 'bild_deutsch_typ = "' . $img_type . '"'; - $imgContent = fread($fp, filesize($_FILES['bild_deutsch']['tmp_name'])); - fclose($fp); - $sets[] = 'bild_deutsch = "' . base64_encode($imgContent) . '"'; - } - } - - if (isset($_FILES['bild_englisch']['tmp_name'])) { - if ($_FILES['bild_englisch']['type'] == 'image/jpeg' || $_FILES['bild_englisch']['type'] == 'image/png') { - - $imgtype = exif_imagetype($_FILES['bild_deutsch']['tmp_name']); - $img_type = ''; - switch($imgtype) - { - case IMAGETYPE_GIF: - $img_type = 'GIF'; - break; - case IMAGETYPE_JPEG: - $img_type = 'JPEG'; - break; - case IMAGETYPE_PNG: - $img_type = 'PNG'; - break; - case IMAGETYPE_ICO: - $img_type = 'ICO'; - break; - case IMAGETYPE_BMP: - $img_type = 'BMP'; - break; - - } - $sets[] = 'bild_englisch_typ = "' . $img_type . '"'; - $fp = fopen($_FILES['bild_englisch']['tmp_name'], 'r'); - $imgContent = fread($fp, filesize($_FILES['bild_englisch']['tmp_name'])); - fclose($fp); - $sets[] = 'bild_englisch = "' . base64_encode($imgContent) . '"'; - } - } - - - - if($id) { - $query = ('UPDATE layoutvorlagen_positionen SET ' . implode(',', $sets) . ' WHERE id = ' . $id); - $saveType = 'UPDATE'; - } else { - -// $layoutvorlage = $this->app->DB->Select("SELECT layoutvorlage FROM layoutvorlagen_positionen WHERE id='$id'"); - $checkname = $this->app->DB->Select(' - SELECT id FROM layoutvorlagen_positionen WHERE name = "' . $name . '" AND layoutvorlage="'.$layoutvorlage.'" - '); - - if ($checkname) { - $msg = $this->app->erp->base64_url_encode("
Name bereits vergeben.
"); - header('location: index.php?module=layoutvorlagen&action=edit&id=' . $layoutvorlage . '&msg=' . $msg); - exit; - } - - $query = ('INSERT INTO layoutvorlagen_positionen SET ' . implode(' , ', $sets)); - $saveType = 'INSERT'; - } - - $this->app->DB->Insert($query); - - header('location: index.php?module=layoutvorlagen&action=edit&id=' . $layoutvorlage."#tabs-2"); - exit; - - } - - public function LayoutvorlagenDelete() { - - $id = (int)$this->app->Secure->GetGET('id'); - - if($id > 0){ - $this->app->DB->Delete('DELETE FROM layoutvorlagen WHERE id = ' . $id); - $this->app->DB->Delete('DELETE FROM layoutvorlagen_positionen WHERE layoutvorlage = ' . $id); - } - - echo json_encode(array( - 'status' => 1, - 'statusText' => 'Gelöscht.' - )); - - $this->app->ExitXentral(); - } - - public function LayoutvorlagenDeletePosition() { - - $id = (int)$this->app->Secure->GetGET('id'); - if($id <= 0){ - echo json_encode(array( - 'status' => 0, - 'statusText' => 'ID ungültig: nicht Gelöscht.' - )); - $this->app->ExitXentral(); - } - $parent = $this->app->DB->SelectArr("SELECT sort, position_parent, layoutvorlage from layoutvorlagen_positionen where id = ".$id); - if($parent[0]['position_parent'] !== false) - { - $this->app->DB->Update("UPDATE layoutvorlagen_positionen SET parent = ".$parent[0]['position_parent']." where parent = ".$id); - } - $this->app->DB->Delete('DELETE FROM layoutvorlagen_positionen WHERE id = ' . $id); - $this->app->DB->Update('UPDATE layoutvorlagen_positionen set sort = sort - 1 where sort > '.$parent[0]['sort'].' and layoutvorlage = '.$parent[0]['layoutvorlage']); - - echo json_encode(array( - 'status' => 1, - 'statusText' => 'Gelöscht.' - )); - - $this->app->ExitXentral(); - } - - public function LayoutvorlagenImgVorschau() { - - $id = $this->app->Secure->GetGET('id'); - $cmd = $this->app->Secure->GetGET('cmd'); - - if ($cmd == 'de') { - $bildA = $this->app->DB->SelectArr('SELECT bild_deutsch, bild_deutsch_typ FROM layoutvorlagen_positionen WHERE id = ' . $id); - if(!isset($bildA[0])) - { - $this->app->ExitXentral(); - } - $bild = $bildA[0]['bild_deutsch']; - $type = $bildA[0]['bild_deutsch_typ']; - } else if ($cmd == 'en') { - $bildA = $this->app->DB->SelectArr('SELECT bild_englisch, bild_englisch_typ FROM layoutvorlagen_positionen WHERE id = ' . $id); - if(!isset($bildA[0])) - { - $this->app->ExitXentral(); - } - $bild = $bildA[0]['bild_englisch']; - $type = $bildA[0]['bild_englisch_typ']; - - } - - $bild = base64_decode($bild); - - if ($bild) { - - $im = imagecreatefromstring($bild); - if ($im !== false) { - //$type = strtolower($type); - $type = ''; - if($type == '')$type = $this->get_img_type($bild); - if($type == 'jpg') - { - $type = 'jpeg'; - } - header('Content-Type: image/'.$type); - switch(strtolower($type)){ - case "png": - imagepng($im); break; - case "jpeg": case "jpg": - imagejpeg($im); break; - case "gif": - imagegif($im); break; - default: - - break; - } - imagedestroy($im); - } - - } - - $this->app->ExitXentral(); - } - - function get_img_type($data) { - $magics = array( - 'ffd8ff' => 'jpg', - '89504e470d0a1a0a' => 'png', - ); - - foreach ($magics as $str => $ext) { - if (strtolower(bin2hex(substr($data, 0, strlen($str)/2))) == $str) - { - return $ext; - } - } - - return NULL; - } - - public function LayoutvorlagenExport() - { - $id = (int)$this->app->Secure->GetGET('id'); - if($id > 0) - { - if($Layout = $this->app->DB->SelectArr("select * from layoutvorlagen where id = ".$id." limit 1")) - { - $Layout = reset($Layout); - $Layoutpositionen = $this->app->DB->SelectArr("select * from layoutvorlagen_positionen where layoutvorlage = ".$id); - header('Conent-Type: application/json'); - header("Content-Disposition: attachment; filename=\"Layout".$this->app->erp->Dateinamen((trim($Layout['name'])!= ''?'_'.$Layout['name']:(trim($Layout['beschreibung']) != ''?'_'.$Layout['beschreibung']:''))).".json\""); - $Datei['Layout'] = $Layout; - if(!empty($Layoutpositionen)) - { - $Datei['Layoutpositionen'] = $Layoutpositionen; - } - echo json_encode($Datei); - $this->app->ExitXentral(); - } - } - } - -} +app = $app; + if($intern) { + return; + } + $this->app->ActionHandlerInit($this); + $this->app->ActionHandler("list", "LayoutvorlagenList"); + $this->app->ActionHandler("edit", "LayoutvorlagenEdit"); + $this->app->ActionHandler("create", "LayoutvorlagenCreate"); + $this->app->ActionHandler("copy", "LayoutvorlagenCopy"); + $this->app->ActionHandler("getposition", "LayoutvorlagenGetPosition"); + $this->app->ActionHandler("saveposition", "LayoutvorlagenSavePosition"); + $this->app->ActionHandler("createposition", "LayoutvorlagenCreatePosition"); + $this->app->ActionHandler("deleteposition", "LayoutvorlagenDeletePosition"); + $this->app->ActionHandler("delete", "LayoutvorlagenDelete"); + $this->app->ActionHandler("download", "LayoutvorlagenDownload"); + $this->app->ActionHandler("export", "LayoutvorlagenExport"); + //$this->app->ActionHandler("import", "LayoutvorlagenImport"); + + $this->app->ActionHandler("imgvorschau", "LayoutvorlagenImgVorschau"); + + $this->app->erp->Headlines('Layoutvorlagen'); + + $this->app->ActionHandlerListen($app); + } + + public function LayoutvorlagenCopy() + { + $id = (int)$this->app->Secure->GetGET('id'); + if($id) + { + $layoutvorlage = $this->app->DB->SelectArr("SELECT * FROM layoutvorlagen WHERE id = '$id'"); + if($layoutvorlage) + { + $this->app->DB->Insert("INSERT INTO layoutvorlagen (id) VALUES('')"); + $newvorlage = $this->app->DB->GetInsertID(); + $layoutvorlage[0]['name'] .= ' (Kopie)'; + $this->app->FormHandler->ArrayUpdateDatabase("layoutvorlagen",$newvorlage,$layoutvorlage[0],true); + $positionen = $this->app->DB->SelectArr("SELECT * FROM layoutvorlagen_positionen WHERE layoutvorlage = '$id'"); + if($positionen) + { + foreach($positionen as $position) + { + $this->app->DB->Insert("INSERT INTO layoutvorlagen_positionen (id) VALUES('')"); + $newvorlagepos = $this->app->DB->GetInsertID(); + $position['layoutvorlage'] = $newvorlage; + $this->app->FormHandler->ArrayUpdateDatabase("layoutvorlagen_positionen",$newvorlagepos,$position, true); + } + } + } + } + header('Location: index.php?module=layoutvorlagen&action=list'); + exit; + } + + public function LayoutvorlagenDownload($id = 0) + { + if(!$id)$id = $this->app->Secure->GetGET('id'); + // mit infos aus zertifikat und konkreten inhalten + $projekt = ""; + $Brief = new LayoutvorlagenPDF($this->app, $projekt); + $Brief->GetLayoutvorlage($id); + $Brief->inlineDocument(); + } + + + public function LayoutvorlagenMenu() { + $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=list","Übersicht"); + } + + public function LayoutvorlagenList() { + + //$this->LayoutvorlagenMenu(); + $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=list","Übersicht"); + $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=create","Neu"); + + $layoutanlegen = $this->app->Secure->GetPOST('layoutanlegen'); + + + if ($layoutanlegen) { + + $row['name'] = $this->app->Secure->GetPOST('name'); + //$row['name'] = preg_replace('#[^-A-Za-z0-9]#', '-', $row['name']); + $row['typ'] = $this->app->Secure->GetPOST('typ'); + $row['format'] = $this->app->Secure->GetPOST('format'); + $row['kategorie'] = $this->app->Secure->GetPOST('kategorie'); + + if ($row['name']) { + + $this->app->DB->Insert(' + INSERT INTO + layoutvorlagen + SET + name = "' . $row['name'] . '", + typ = "' . $row['typ'] . '", + format = "' . $row['format'] . '", + kategorie = "' . $row['kategorie'] . '" + '); + + $id = $this->app->DB->GetInsertID(); + if ($id) { + header('location: index.php?module=layoutvorlagen&action=edit&id=' . $id); + exit; + } + } + } + if($this->app->Secure->GetPOST('cmd') === 'import') { + if (!empty($_FILES['importfile']['tmp_name'])) { + $string = file_get_contents($_FILES['importfile']['tmp_name']); + $ret = $this->importJson($string, $this->app->Secure->GetPOST('ueberschreiben')); + if(!empty($ret['message'])) { + $this->app->Tpl->Add('ERRORMSG', $ret['message']); + } + } + else { + $this->app->Tpl->Add('ERRORMSG', "Keine Datei ausgewält"); + } + } + + + $this->app->YUI->TableSearch('TABELLE', 'layoutvorlagen_list'); + $this->app->Tpl->Parse('PAGE',"layoutvorlagen_list.tpl"); + + } + + /** + * @param string $string + * @param bool $overwrite + * + * @return array + */ + public function importJson($string, $overwrite = false) + { + $ret = []; + if(!(NULL !== $json = json_decode($string))) { + return ['status' => 0, 'message' => 'Keine gültige Datei']; + } + if(empty($json->Layout) && empty($json->Layout->name)) { + return ['status' => 0, 'message' => 'Keine gültige Datei Fehlendes Element: Layout']; + } + + $altesLayout = $this->app->DB->SelectArr( + sprintf( + "select * from layoutvorlagen where name like '%s'", + $this->app->DB->real_escape_string($json->Layout->name) + ) + ); + + if(!empty($altesLayout) && !$overwrite) { + return ['status' => 0, 'message' => 'Es existiert bereis ein Layout mit dem Namen','id' => $altesLayout['id']]; + } + + if(isset($json->Layout->id)) { + unset($json->Layout->id); + } + $columns = $this->app->DB->SelectArr('SHOW COLUMNS FROM layoutvorlagen'); + $error = false; + foreach($json->Layout as $k => $v) { + $found = false; + foreach($columns as $k2 => $v2) { + if($v2['Field'] == $k) { + $found = true; + } + } + if(!$found) { + $error = true; + } + } + $columnspos = $this->app->DB->SelectArr('SHOW COLUMNS FROM layoutvorlagen_positionen'); + if(!empty($json->Layoutpositionen)) { + foreach($json->Layoutpositionen as $k => $pos) { + if(isset($pos->id)) { + unset($json->Layoutpositionen[$k]->id); + } + if(isset($pos->layoutvorlage)) { + unset($json->Layoutpositionen[$k]->id); + } + + foreach($pos as $kp => $vp) { + $found = false; + foreach($columnspos as $k2 => $v2) { + if($v2['Field'] == $kp) { + $found = true; + } + } + if(!$found) { + $error = true; + } + } + } + } + if(!empty($error)) { + return ['status' => 0, 'message' => 'Keine gültige Datei: falsche Elemente']; + } + + $query = "insert into layoutvorlagen ("; + $i = 0; + foreach($columns as $k => $v) { + if($v['Field'] !== 'id') { + $i++; + if($i > 1) { + $query .= ', '; + } + $query .= $v['Field']; + } + } + $query .= ') values ('; + $i = 0; + foreach($columns as $k => $v) { + if($v['Field'] !== 'id') { + $i++; + if($i > 1) { + $query .= ', '; + } + $query .= "'"; + $fieldName = $v['Field']; + if(isset($json->Layout->$fieldName)) { + $query .= $this->app->DB->real_escape_string($json->Layout->$fieldName); + } + $query .= "'"; + } + } + $query .= ')'; + + //alte Löschen falls existiert + if($altesLayout) { + foreach($altesLayout as $l) { + if($l['id']) { + $this->app->DB->Delete("delete from layoutvorlagen_positionen where layoutvorlage = ".$l['id']); + $this->app->DB->Delete("delete from layoutvorlagen where id = ".$l['id']); + } + } + } + // + $this->app->DB->Insert($query); + $newid = $this->app->DB->GetInsertID(); + + if(empty($newid)) { + return ['status' => 0, 'message' => 'Fehler beim Erstellen des Layouts']; + } + + $j = 0; + foreach ($json->Layoutpositionen as $kpos => $pos) { + + $querypos[$j] = "insert into layoutvorlagen_positionen (layoutvorlage"; + $i = 0; + foreach($columnspos as $k => $v) { + if($v['Field'] !== 'id' && $v['Field'] !== 'layoutvorlage') { + $i++; + $querypos[$j] .= ', '; + $querypos[$j] .= $v['Field']; + } + } + + $querypos[$j] .= ") values ('".$newid."'"; + $i = 0; + foreach($columnspos as $k => $v) { + if($v['Field'] !== 'id' && $v['Field'] !== 'layoutvorlage') { + $i++; + $querypos[$j] .= ', '; + $querypos[$j] .= "'"; + $fieldName = $v['Field']; + if(isset($pos->$fieldName)) { + $querypos[$j] .= $this->app->DB->real_escape_string($pos->$fieldName); + } + $querypos[$j] .= "'"; + } + } + + $querypos[$j] .= ")"; + $j++; + } + if(isset($querypos)) { + $fehler = false; + foreach($querypos as $qp) { + $this->app->DB->Insert($qp); + if($this->app->DB->error()){ + $ret['error'] = $this->app->DB->error(); + $fehler = true; + } + } + } + if($fehler) { + return [ + 'status' => 0, + 'message' => (empty($ret['error'])?'':$ret['error'].' ') + . 'Fehler beim Erstellen von einer oder mehreren Layoutposition(en)' + ]; + } + + return [ + 'message' => 'Layout ' .$json->Layout->name. ' erfolgreich erstellt', + 'status' => true, 'id' => $newid + ]; + } + + public function LayoutvorlagenEdit() { + + $id = $this->app->Secure->GetGET('id'); + $cmd = $this->app->Secure->GetGET('cmd'); + $speichern = $this->app->Secure->GetPOST('layoutspeichern'); + + if ($speichern) { + $name = $this->app->Secure->GetPOST('name'); + $typ = $this->app->Secure->GetPOST('typ'); + $format = $this->app->Secure->GetPOST('format'); + $kategorie = $this->app->Secure->GetPOST('kategorie'); + $projekt = $this->app->Secure->GetPOST('layoutvorlagen_projekt'); + $delete_hintergrund = $this->app->Secure->GetPOST('delete_hintergrund')==''?false:true; + $pdf_hintergrund = $_FILES['pdf_hintergrund']; + + if (isset($pdf_hintergrund['tmp_name']) && ($pdf_hintergrund['type'] == 'application/pdf' || $pdf_hintergrund['type'] == 'application/force-download' || $pdf_hintergrund['type'] =='binary/octet-stream' || $pdf_hintergrund['type'] == 'application/octetstream')) { + $fp = fopen($pdf_hintergrund['tmp_name'], 'r'); + $imgContent = fread($fp, filesize($pdf_hintergrund['tmp_name'])); + fclose($fp); + $sets[] = 'pdf_hintergrund = "' . base64_encode($imgContent) . '"'; + } elseif($delete_hintergrund) { + $sets[] = 'pdf_hintergrund = ""'; + } + + $sets[] = 'name = "' . $name . '" '; + $sets[] = 'typ = "' . $typ . '" '; + $sets[] = 'format = "' . $format . '" '; + $sets[] = 'kategorie = "' . $kategorie . '" '; + + if ($sets) { + $this->app->DB->Insert('UPDATE layoutvorlagen SET ' . implode(', ', $sets) . ' WHERE id = ' . $id); + } + + if($projekt != ''){ + $projektid = $this->app->DB->Select("SELECT id FROM projekt WHERE abkuerzung = '$projekt' LIMIT 1"); + }else{ + $projektid = 0; + } + + $this->app->DB->Update("UPDATE layoutvorlagen SET projekt = '$projektid' WHERE id = '$id'"); + + } + + $this->app->YUI->AutoComplete("kategorie","layoutvorlagenkategorie"); + $this->app->YUI->AutoComplete("layoutvorlagen_projekt", "projektname", 1); + //$this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=create","Neu"); + $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=edit&id=" . $id . "","Details"); + + $vorlage = $this->app->DB->SelectArr('SELECT * FROM layoutvorlagen WHERE id = ' . $id); + $vorlage = reset($vorlage); + + if ($cmd) { + switch ($cmd) { + case 'pdfvorschau': + $pdf_hintergrund = $this->app->DB->Select('SELECT pdf_hintergrund FROM layoutvorlagen WHERE id = ' . $id); + $pdf_hintergrund = base64_decode($pdf_hintergrund); + + header("Content-type: application/pdf"); + header('Content-disposition: attachment; filename="pdf_hintergrund.pdf"'); + print $pdf_hintergrund; + + + break; + default: + break; + } + exit; + } + + $this->app->User->SetParameter('layoutvorlagen_id', $id); + + $this->app->Tpl->Add('NAME', $vorlage['name']); + $this->app->Tpl->Add('KATEGORIE', $vorlage['kategorie']); + + if($vorlage['projekt'] > 0){ + $projektname = $this->app->DB->Select("SELECT abkuerzung FROM projekt WHERE id = '".$vorlage['projekt']."' LIMIT 1"); + if($projektname != ""){ + $this->app->Tpl->Add('PROJEKT', $projektname); + } + } + + if ($vorlage['pdf_hintergrund']) { + $this->app->Tpl->Add('PDFVORSCHAU', ''); + } + $this->app->Tpl->Add('TAB3', ''); + /* + $schriftarten = $this->app->erp->GetSchriftarten(); + //Test + $schriftarten['times'] = "Times"; + $schriftarten['juliusc'] = 'juliusc'; + $schriftarten['bernard'] = 'Bernard'; + $schriftarten['HLBC____'] = 'HLBC____'; + */ + $schriftartena = $this->app->erp->GetFonts(); + foreach($schriftartena as $kk => $vv) + { + $schriftarten[$kk] = $vv['name']; + + } + //Test End + $schriftartenTpl = ''; + if ($schriftarten) { + foreach ($schriftarten as $schriftartKey => $schriftart) { + $schriftartenTpl .= ''; + } + } + $this->app->Tpl->Add('SCHRIFTARTEN', $schriftartenTpl); + + $rahmenbreiten = array( + '0' => 'Kein Rahmen', + '1' => '1', + '2' => '2', + '3' => '3', + '4' => '4', + '5' => '5', + '6' => '6', + '7' => '7', + '8' => '8', + '9' => '9', + '10' => '10' + ); + $rahmenTpl = ''; + if ($rahmenbreiten) { + foreach ($rahmenbreiten as $rahmenbreiteKey => $rahmenbreite) { + $rahmenTpl .= ''; + } + } + + $positionen = $this->app->DB->SelectArr(' + SELECT + id, + name, + typ + FROM + layoutvorlagen_positionen + WHERE + layoutvorlage = "' . $id . '" + '); + + $positionenTpl = ''; + $positionenTpl .= ''; + if ($positionen) { + foreach ($positionen as $position) { + $positionenTpl .= ''; + } + } + + $schriftausrichtungen = array('left' => 'Links', 'center' => 'Zentriert', 'right' => 'Rechts'); + $schriftausrichtungenTpl = ''; + if ($schriftausrichtungen) { + foreach($schriftausrichtungen as $schriftausrichtungKey => $schriftausrichtung) { + $schriftausrichtungenTpl .= ''; + } + } + + $formate = array('A4' => 'DIN A4 Hoch', 'A4L' => 'DIN A4 Quer','A5' => 'DIN A5 Hoch', 'A5L' => 'DIN A5 Quer','A6' => 'DIN A6 Hoch', 'A6L' => 'DIN A6 Quer'); + $formatTpl = ''; + if ($formate) { + foreach($formate as $formatKey => $formatBeschriftung) { + $formatTpl .= ''; + } + } + + + + $this->app->YUI->ColorPicker("schrift_farbe"); + $this->app->YUI->ColorPicker("hintergrund_farbe"); + $this->app->YUI->ColorPicker("rahmen_farbe"); + + $this->app->Tpl->Add('SCHRIFTAUSRICHTUNGEN', $schriftausrichtungenTpl); + $this->app->Tpl->Add('POSITIONPARENT', $positionenTpl); + + $this->app->Tpl->Add('FORMAT', $formatTpl); + $this->app->Tpl->Add('RAHMEN', $rahmenTpl); + $this->app->YUI->TableSearch('TABELLE', 'layoutvorlagen_edit'); + $this->app->Tpl->Parse('PAGE',"layoutvorlagen_edit.tpl"); + + } + + public function LayoutvorlagenCreate() { + + $speichern = $this->app->Secure->GetPOST('layouterstellen'); + + if ($speichern) { + + + $felder = array('name', 'typ', 'format', 'kategorie'); + $sets = array(); + if ($felder) { + foreach ($felder as $feld) { + $sets[] = $feld . ' = "' . $this->app->Secure->GetPOST($feld) . '"'; + } + } + + $projekt = $this->app->Secure->GetPOST('layoutvorlagen_projekt'); + if($projekt != ''){ + $projektid = $this->app->DB->Select("SELECT id FROM projekt WHERE abkuerzung = '$projekt' LIMIT 1"); + }else{ + $projektid = 0; + } + + $query = ('INSERT INTO layoutvorlagen SET ' . implode(', ', $sets) . ' '); + $this->app->DB->Insert($query); + + + $layoutvorlagenId = $this->app->DB->GetInsertID(); + + $this->app->DB->Update("UPDATE layoutvorlagen SET projekt = '$projektid' WHERE id = '$layoutvorlagenId'"); + + + $delete_hintergrund = $this->app->Secure->GetPOST('delete_hintergrund')==''?false:true; + $pdf_hintergrund = $_FILES['pdf_hintergrund']; + if (isset($pdf_hintergrund['tmp_name']) && ($pdf_hintergrund['type'] == 'application/pdf' || $pdf_hintergrund['type'] == 'application/force-download' || $pdf_hintergrund['type'] =='binary/octet-stream' || $pdf_hintergrund['type'] == 'application/octetstream')) { + $fp = fopen($pdf_hintergrund['tmp_name'], 'r'); + $imgContent = fread($fp, filesize($pdf_hintergrund['tmp_name'])); + fclose($fp); + $sets[] = 'pdf_hintergrund = "' . base64_encode($imgContent) . '"'; + } elseif($delete_hintergrund) { + $sets[] = 'pdf_hintergrund = ""'; + } + + if ($sets) { + $this->app->DB->Insert('UPDATE layoutvorlagen SET ' . implode(', ', $sets) . ' WHERE id = ' . $layoutvorlagenId); + } + + + + + + if ($layoutvorlagenId) { + header('location: index.php?module=layoutvorlagen&action=edit&id=' . $layoutvorlagenId); + exit; + } + + } + + $this->app->YUI->AutoComplete("kategorie","layoutvorlagenkategorie"); + $this->app->YUI->AutoComplete("layoutvorlagen_projekt", "projektname", 1); + + $this->app->erp->MenuEintrag("index.php?module=layoutvorlagen&action=create","Erstellen"); + $this->app->Tpl->Parse('PAGE','layoutvorlagen_create.tpl'); + + } + + public function LayoutvorlagenGetPosition() { + + $id = $this->app->Secure->GetPOST('id'); + $row = $this->app->DB->SelectRow('SELECT * FROM layoutvorlagen_positionen WHERE id = ' . $id); + + if ($row['bild_deutsch']) { + $bilddata['bild_deutsch'] = 'VORSCHAU'; + unset($row['bild_deutsch']); + } + + if ($row['bild_englisch']) { + $bilddata['bild_englisch'] = 'VORSCHAU'; + unset($row['bild_englisch']); + } + + echo json_encode(array( + 'status' => 1, + 'statusText' => '', + 'row' => $row, + 'bilddata' => $bilddata + )); + $this->app->ExitXentral(); + } + + + public function LayoutvorlagenSavePosition() { + + $id = $this->app->Secure->GetPOST('id'); + $typ = $this->app->Secure->GetPOST('typ'); + + $name = $this->app->Secure->GetPOST('name'); + $name = strtolower($name); + $name = preg_replace('#[^-A-Za-z0-9]#', '-', $name); + + $beschreibung = $this->app->Secure->GetPOST('beschreibung'); + $position_typ = $this->app->Secure->GetPOST('position_typ'); + $position_x = $this->app->Secure->GetPOST('position_x'); + $position_y = $this->app->Secure->GetPOST('position_y'); + $position_parent = $this->app->Secure->GetPOST('position_parent'); + $breite = $this->app->Secure->GetPOST('breite'); + $hoehe = $this->app->Secure->GetPOST('hoehe'); + $schrift_art = $this->app->Secure->GetPOST('schrift_art'); + $schrift_groesse = $this->app->Secure->GetPOST('schrift_groesse'); + $zeilen_hoehe = $this->app->Secure->GetPOST('zeilen_hoehe'); + $schrift_align = $this->app->Secure->GetPOST('schrift_align'); + $schrift_farbe = $this->app->Secure->GetPOST('schrift_farbe'); + $hintergrund_farbe = $this->app->Secure->GetPOST('hintergrund_farbe'); + $rahmen = $this->app->Secure->GetPOST('rahmen'); + $rahmen_farbe = $this->app->Secure->GetPOST('rahmen_farbe'); + $sichtbar = ($this->app->Secure->GetPOST('sichtbar')=='')?'0':'1'; + $schrift_fett = ($this->app->Secure->GetPOST('schrift_fett')=='')?'0':'1'; + $schrift_kursiv = ($this->app->Secure->GetPOST('schrift_kursiv')=='')?'0':'1'; + $schrift_underline = ($this->app->Secure->GetPOST('schrift_underline')=='')?'0':'1'; + //$this->app->erp->LogFile("sichtbar: ".$sichtbar."."); + $inhalt_deutsch = $this->app->Secure->GetPOST('inhalt_deutsch'); + $inhalt_englisch = $this->app->Secure->GetPOST('inhalt_englisch'); + $layoutvorlage = (int)$this->app->Secure->GetPOST('layoutvorlage'); + $sort = (int)$this->app->Secure->GetPOST('sort'); + $zeichenbegrenzung = (int)$this->app->Secure->GetPOST('zeichenbegrenzung'); + $zeichenbegrenzung_anzahl = (int)$this->app->Secure->GetPOST('zeichenbegrenzung_anzahl'); + + $layoutvorlagenpos = $this->app->DB->SelectArr("select id, sort from layoutvorlagen_positionen where layoutvorlage = ".$layoutvorlage." and id <> ".$id." order by sort"); + $i = 0; + + if(isset($layoutvorlagenpos[0])) + { + foreach($layoutvorlagenpos as $key => $pos) + { + $i++; + if($i < $sort && $i != $pos['sort'] ) + { + $this->app->DB->Update("update layoutvorlagen_positionen set sort = ".$i." where id = ".$pos['id']); + } + if($i >= $sort && $i + 1 != $pos['sort']) + { + $this->app->DB->Update("update layoutvorlagen_positionen set sort = ".($i + 1)." where id = ".$pos['id']); + } + } + } + if($sort < 1) + { + $sort = 1; + } + if($sort > $i + 1) + { + $sort = $i + 1; + } + + $sets = array(); + $sets[] = 'typ = "' . $typ . '"'; + $sets[] = 'name = "' . $name . '"'; + $sets[] = 'beschreibung = "' . $beschreibung . '"'; + $sets[] = 'position_typ = "' . $position_typ . '"'; + $sets[] = 'position_x = "' . $position_x . '"'; + $sets[] = 'position_y = "' . $position_y . '"'; + $sets[] = 'position_parent = "' . $position_parent . '"'; + $sets[] = 'breite = "' . $breite . '"'; + $sets[] = 'hoehe = "' . $hoehe . '"'; + $sets[] = 'schrift_art = "' . $schrift_art . '"'; + $sets[] = 'schrift_groesse = "' . $schrift_groesse . '"'; + $sets[] = 'zeilen_hoehe = "' . $zeilen_hoehe . '"'; + $sets[] = 'schrift_fett = "' . $schrift_fett . '"'; + $sets[] = 'schrift_kursiv = "' . $schrift_kursiv . '"'; + $sets[] = 'schrift_underline = "' . $schrift_underline . '"'; + $sets[] = 'schrift_align = "' . $schrift_align . '"'; + $sets[] = 'schrift_farbe = "' . $schrift_farbe . '"'; + $sets[] = 'hintergrund_farbe = "' . $hintergrund_farbe . '"'; + $sets[] = 'rahmen = "' . $rahmen . '"'; + $sets[] = 'rahmen_farbe = "' . $rahmen_farbe . '"'; + $sets[] = 'sichtbar = "' . $sichtbar . '"'; + $sets[] = 'inhalt_deutsch = "' . $inhalt_deutsch . '"'; + $sets[] = 'inhalt_englisch = "' . $inhalt_englisch . '"'; + $sets[] = 'layoutvorlage = "' . $layoutvorlage . '"'; + $sets[] = 'sort = "' . $sort . '"'; + $sets[] = 'zeichenbegrenzung = "' . $zeichenbegrenzung . '"'; + $sets[] = 'zeichenbegrenzung_anzahl = "' . $zeichenbegrenzung_anzahl . '"'; + + if (isset($_FILES['bild_deutsch']['tmp_name'])) { + if ($_FILES['bild_deutsch']['type'] == 'image/jpeg' || $_FILES['bild_deutsch']['type'] == 'image/png') { + + $imgtype = exif_imagetype($_FILES['bild_deutsch']['tmp_name']); + $img_type = ''; + switch($imgtype) + { + case IMAGETYPE_GIF: + $img_type = 'GIF'; + break; + case IMAGETYPE_JPEG: + $img_type = 'JPEG'; + break; + case IMAGETYPE_PNG: + $img_type = 'PNG'; + break; + case IMAGETYPE_ICO: + $img_type = 'ICO'; + break; + case IMAGETYPE_BMP: + $img_type = 'BMP'; + break; + + } + $fp = fopen($_FILES['bild_deutsch']['tmp_name'], 'r'); + $sets[] = 'bild_deutsch_typ = "' . $img_type . '"'; + $imgContent = fread($fp, filesize($_FILES['bild_deutsch']['tmp_name'])); + fclose($fp); + $sets[] = 'bild_deutsch = "' . base64_encode($imgContent) . '"'; + } + } + + if (isset($_FILES['bild_englisch']['tmp_name'])) { + if ($_FILES['bild_englisch']['type'] == 'image/jpeg' || $_FILES['bild_englisch']['type'] == 'image/png') { + + $imgtype = exif_imagetype($_FILES['bild_deutsch']['tmp_name']); + $img_type = ''; + switch($imgtype) + { + case IMAGETYPE_GIF: + $img_type = 'GIF'; + break; + case IMAGETYPE_JPEG: + $img_type = 'JPEG'; + break; + case IMAGETYPE_PNG: + $img_type = 'PNG'; + break; + case IMAGETYPE_ICO: + $img_type = 'ICO'; + break; + case IMAGETYPE_BMP: + $img_type = 'BMP'; + break; + + } + $sets[] = 'bild_englisch_typ = "' . $img_type . '"'; + $fp = fopen($_FILES['bild_englisch']['tmp_name'], 'r'); + $imgContent = fread($fp, filesize($_FILES['bild_englisch']['tmp_name'])); + fclose($fp); + $sets[] = 'bild_englisch = "' . base64_encode($imgContent) . '"'; + } + } + + + + if($id) { + $query = ('UPDATE layoutvorlagen_positionen SET ' . implode(',', $sets) . ' WHERE id = ' . $id); + $saveType = 'UPDATE'; + } else { + +// $layoutvorlage = $this->app->DB->Select("SELECT layoutvorlage FROM layoutvorlagen_positionen WHERE id='$id'"); + $checkname = $this->app->DB->Select(' + SELECT id FROM layoutvorlagen_positionen WHERE name = "' . $name . '" AND layoutvorlage="'.$layoutvorlage.'" + '); + + if ($checkname) { + $msg = $this->app->erp->base64_url_encode("
Name bereits vergeben.
"); + header('location: index.php?module=layoutvorlagen&action=edit&id=' . $layoutvorlage . '&msg=' . $msg); + exit; + } + + $query = ('INSERT INTO layoutvorlagen_positionen SET ' . implode(' , ', $sets)); + $saveType = 'INSERT'; + } + + $this->app->DB->Insert($query); + + header('location: index.php?module=layoutvorlagen&action=edit&id=' . $layoutvorlage."#tabs-2"); + exit; + + } + + public function LayoutvorlagenDelete() { + + $id = (int)$this->app->Secure->GetGET('id'); + + if($id > 0){ + $this->app->DB->Delete('DELETE FROM layoutvorlagen WHERE id = ' . $id); + $this->app->DB->Delete('DELETE FROM layoutvorlagen_positionen WHERE layoutvorlage = ' . $id); + } + + echo json_encode(array( + 'status' => 1, + 'statusText' => 'Gelöscht.' + )); + + $this->app->ExitXentral(); + } + + public function LayoutvorlagenDeletePosition() { + + $id = (int)$this->app->Secure->GetGET('id'); + if($id <= 0){ + echo json_encode(array( + 'status' => 0, + 'statusText' => 'ID ungültig: nicht Gelöscht.' + )); + $this->app->ExitXentral(); + } + $parent = $this->app->DB->SelectArr("SELECT sort, position_parent, layoutvorlage from layoutvorlagen_positionen where id = ".$id); + if($parent[0]['position_parent'] !== false) + { + $this->app->DB->Update("UPDATE layoutvorlagen_positionen SET parent = ".$parent[0]['position_parent']." where parent = ".$id); + } + $this->app->DB->Delete('DELETE FROM layoutvorlagen_positionen WHERE id = ' . $id); + $this->app->DB->Update('UPDATE layoutvorlagen_positionen set sort = sort - 1 where sort > '.$parent[0]['sort'].' and layoutvorlage = '.$parent[0]['layoutvorlage']); + + echo json_encode(array( + 'status' => 1, + 'statusText' => 'Gelöscht.' + )); + + $this->app->ExitXentral(); + } + + public function LayoutvorlagenImgVorschau() { + + $id = $this->app->Secure->GetGET('id'); + $cmd = $this->app->Secure->GetGET('cmd'); + + if ($cmd == 'de') { + $bildA = $this->app->DB->SelectArr('SELECT bild_deutsch, bild_deutsch_typ FROM layoutvorlagen_positionen WHERE id = ' . $id); + if(!isset($bildA[0])) + { + $this->app->ExitXentral(); + } + $bild = $bildA[0]['bild_deutsch']; + $type = $bildA[0]['bild_deutsch_typ']; + } else if ($cmd == 'en') { + $bildA = $this->app->DB->SelectArr('SELECT bild_englisch, bild_englisch_typ FROM layoutvorlagen_positionen WHERE id = ' . $id); + if(!isset($bildA[0])) + { + $this->app->ExitXentral(); + } + $bild = $bildA[0]['bild_englisch']; + $type = $bildA[0]['bild_englisch_typ']; + + } + + $bild = base64_decode($bild); + + if ($bild) { + + $im = imagecreatefromstring($bild); + if ($im !== false) { + //$type = strtolower($type); + $type = ''; + if($type == '')$type = $this->get_img_type($bild); + if($type == 'jpg') + { + $type = 'jpeg'; + } + header('Content-Type: image/'.$type); + switch(strtolower($type)){ + case "png": + imagepng($im); break; + case "jpeg": case "jpg": + imagejpeg($im); break; + case "gif": + imagegif($im); break; + default: + + break; + } + imagedestroy($im); + } + + } + + $this->app->ExitXentral(); + } + + function get_img_type($data) { + $magics = array( + 'ffd8ff' => 'jpg', + '89504e470d0a1a0a' => 'png', + ); + + foreach ($magics as $str => $ext) { + if (strtolower(bin2hex(substr($data, 0, strlen($str)/2))) == $str) + { + return $ext; + } + } + + return NULL; + } + + public function LayoutvorlagenExport() + { + $id = (int)$this->app->Secure->GetGET('id'); + if($id > 0) + { + if($Layout = $this->app->DB->SelectArr("select * from layoutvorlagen where id = ".$id." limit 1")) + { + $Layout = reset($Layout); + $Layoutpositionen = $this->app->DB->SelectArr("select * from layoutvorlagen_positionen where layoutvorlage = ".$id); + header('Conent-Type: application/json'); + header("Content-Disposition: attachment; filename=\"Layout".$this->app->erp->Dateinamen((trim($Layout['name'])!= ''?'_'.$Layout['name']:(trim($Layout['beschreibung']) != ''?'_'.$Layout['beschreibung']:''))).".json\""); + $Datei['Layout'] = $Layout; + if(!empty($Layoutpositionen)) + { + $Datei['Layoutpositionen'] = $Layoutpositionen; + } + echo json_encode($Datei); + $this->app->ExitXentral(); + } + } + } + +} diff --git a/www/pages/log.php b/www/pages/log.php index 46d18563..6de8da11 100644 --- a/www/pages/log.php +++ b/www/pages/log.php @@ -82,7 +82,7 @@ class Log 'Nachricht', '', ]; - $width = ['1%', '4%', '8%', '4%', '10%', '15%', '20%', '10%', '5%', '40%']; + $width = ['1%', '4%', '9%', '4%', '10%', '15%', '20%', '10%', '5%', '40%']; $findcols = [ 'open', 'l.id', @@ -116,7 +116,7 @@ class Log $sql = "SELECT l.id, '' AS `open`, l.id, - DATE_FORMAT(l.log_time,'%d.%m.%Y %H:%i:%s') AS `log_time`, + SUBSTRING(DATE_FORMAT(l.log_time,'%d.%m.%Y %H:%i:%s %f'),1,23) AS `log_time`, l.level, l.origin_type, l.origin_detail, l.class, l.method, l.line, l.message, l.id FROM `log` AS `l`"; $fastcount = 'SELECT COUNT(l.id) FROM `log` AS `l`'; diff --git a/www/pages/produktion.php b/www/pages/produktion.php index 7b1878c1..5dab6f4c 100644 --- a/www/pages/produktion.php +++ b/www/pages/produktion.php @@ -8,6 +8,12 @@ use Xentral\Components\Database\Exception\QueryFailureException; class Produktion { + // Botched helper function -> Should be replaced with a proper locale solution someday TODO + function FormatMenge ($value) { + return(number_format($value,0,',','.')); // DE +// return(number_format($value,0,'.',',')); // EN + } + function __construct($app, $intern = false) { $this->app = $app; if ($intern) @@ -17,42 +23,34 @@ class Produktion { $this->app->ActionHandler("list", "produktion_list"); $this->app->ActionHandler("create", "produktion_edit"); // This automatically adds a "New" button $this->app->ActionHandler("edit", "produktion_edit"); - $this->app->ActionHandler("delete", "produktion_delete"); + $this->app->ActionHandler("copy", "produktion_copy"); + $this->app->ActionHandler("minidetail", "produktion_minidetail"); + $this->app->ActionHandler("delete", "produktion_delete"); $this->app->DefaultActionHandler("list"); $this->app->ActionHandlerListen($app); + + $this->Install(); } public function Install() { - /* Fill out manually later */ + + } - static function TableSearch(&$app, $name, $erlaubtevars) { + public function TableSearch(&$app, $name, $erlaubtevars) { switch ($name) { case "produktion_list": $allowed['produktion_list'] = array('list'); -/* -Produktion -Kd-Nr. -Kunde -Vom -Bezeichnung -Soll -Ist -Zeit geplant -Zeit gebucht -Projekt -Status -Monitor -Menü -*/ // $heading = array('','','datum', 'art', 'projekt', 'belegnr', 'internet', 'bearbeiter', 'angebot', 'freitext', 'internebemerkung', 'status', 'adresse', 'name', 'abteilung', 'unterabteilung', 'strasse', 'adresszusatz', 'ansprechpartner', 'plz', 'ort', 'land', 'ustid', 'ust_befreit', 'ust_inner', 'email', 'telefon', 'telefax', 'betreff', 'kundennummer', 'versandart', 'vertrieb', 'zahlungsweise', 'zahlungszieltage', 'zahlungszieltageskonto', 'zahlungszielskonto', 'bank_inhaber', 'bank_institut', 'bank_blz', 'bank_konto', 'kreditkarte_typ', 'kreditkarte_inhaber', 'kreditkarte_nummer', 'kreditkarte_pruefnummer', 'kreditkarte_monat', 'kreditkarte_jahr', 'firma', 'versendet', 'versendet_am', 'versendet_per', 'versendet_durch', 'autoversand', 'keinporto', 'keinestornomail', 'abweichendelieferadresse', 'liefername', 'lieferabteilung', 'lieferunterabteilung', 'lieferland', 'lieferstrasse', 'lieferort', 'lieferplz', 'lieferadresszusatz', 'lieferansprechpartner', 'packstation_inhaber', 'packstation_station', 'packstation_ident', 'packstation_plz', 'packstation_ort', 'autofreigabe', 'freigabe', 'nachbesserung', 'gesamtsumme', 'inbearbeitung', 'abgeschlossen', 'nachlieferung', 'lager_ok', 'porto_ok', 'ust_ok', 'check_ok', 'vorkasse_ok', 'nachnahme_ok', 'reserviert_ok', 'bestellt_ok', 'zeit_ok', 'versand_ok', 'partnerid', 'folgebestaetigung', 'zahlungsmail', 'stornogrund', 'stornosonstiges', 'stornorueckzahlung', 'stornobetrag', 'stornobankinhaber', 'stornobankkonto', 'stornobankblz', 'stornobankbank', 'stornogutschrift', 'stornogutschriftbeleg', 'stornowareerhalten', 'stornomanuellebearbeitung', 'stornokommentar', 'stornobezahlt', 'stornobezahltam', 'stornobezahltvon', 'stornoabgeschlossen', 'stornorueckzahlungper', 'stornowareerhaltenretour', 'partnerausgezahlt', 'partnerausgezahltam', 'kennen', 'logdatei', 'bezeichnung', 'datumproduktion', 'anschreiben', 'usereditid', 'useredittimestamp', 'steuersatz_normal', 'steuersatz_zwischen', 'steuersatz_ermaessigt', 'steuersatz_starkermaessigt', 'steuersatz_dienstleistung', 'waehrung', 'schreibschutz', 'pdfarchiviert', 'pdfarchiviertversion', 'typ', 'reservierart', 'auslagerart', 'projektfiliale', 'datumauslieferung', 'datumbereitstellung', 'unterlistenexplodieren', 'charge', 'arbeitsschrittetextanzeigen', 'einlagern_ok', 'auslagern_ok', 'mhd', 'auftragmengenanpassen', 'internebezeichnung', 'mengeoriginal', 'teilproduktionvon', 'teilproduktionnummer', 'parent', 'parentnummer', 'bearbeiterid', 'mengeausschuss', 'mengeerfolgreich', 'abschlussbemerkung', 'auftragid', 'funktionstest', 'seriennummer_erstellen', 'unterseriennummern_erfassen', 'datumproduktionende', 'standardlager', 'Menü'); $heading = array('','','Produktion','Kd-Nr.','Kunde','Vom','Bezeichnung','Soll','Ist','Zeit geplant','Zeit gebucht','Projekt','Status','Monitor','Menü'); + $alignright = array(8,9,10,11); + $width = array('1%','1%','10%'); // Fill out manually later // $findcols = array('p.datum', 'p.art', 'p.projekt', 'p.belegnr', 'p.internet', 'p.bearbeiter', 'p.angebot', 'p.freitext', 'p.internebemerkung', 'p.status', 'p.adresse', 'p.name', 'p.abteilung', 'p.unterabteilung', 'p.strasse', 'p.adresszusatz', 'p.ansprechpartner', 'p.plz', 'p.ort', 'p.land', 'p.ustid', 'p.ust_befreit', 'p.ust_inner', 'p.email', 'p.telefon', 'p.telefax', 'p.betreff', 'p.kundennummer', 'p.versandart', 'p.vertrieb', 'p.zahlungsweise', 'p.zahlungszieltage', 'p.zahlungszieltageskonto', 'p.zahlungszielskonto', 'p.bank_inhaber', 'p.bank_institut', 'p.bank_blz', 'p.bank_konto', 'p.kreditkarte_typ', 'p.kreditkarte_inhaber', 'p.kreditkarte_nummer', 'p.kreditkarte_pruefnummer', 'p.kreditkarte_monat', 'p.kreditkarte_jahr', 'p.firma', 'p.versendet', 'p.versendet_am', 'p.versendet_per', 'p.versendet_durch', 'p.autoversand', 'p.keinporto', 'p.keinestornomail', 'p.abweichendelieferadresse', 'p.liefername', 'p.lieferabteilung', 'p.lieferunterabteilung', 'p.lieferland', 'p.lieferstrasse', 'p.lieferort', 'p.lieferplz', 'p.lieferadresszusatz', 'p.lieferansprechpartner', 'p.packstation_inhaber', 'p.packstation_station', 'p.packstation_ident', 'p.packstation_plz', 'p.packstation_ort', 'p.autofreigabe', 'p.freigabe', 'p.nachbesserung', 'p.gesamtsumme', 'p.inbearbeitung', 'p.abgeschlossen', 'p.nachlieferung', 'p.lager_ok', 'p.porto_ok', 'p.ust_ok', 'p.check_ok', 'p.vorkasse_ok', 'p.nachnahme_ok', 'p.reserviert_ok', 'p.bestellt_ok', 'p.zeit_ok', 'p.versand_ok', 'p.partnerid', 'p.folgebestaetigung', 'p.zahlungsmail', 'p.stornogrund', 'p.stornosonstiges', 'p.stornorueckzahlung', 'p.stornobetrag', 'p.stornobankinhaber', 'p.stornobankkonto', 'p.stornobankblz', 'p.stornobankbank', 'p.stornogutschrift', 'p.stornogutschriftbeleg', 'p.stornowareerhalten', 'p.stornomanuellebearbeitung', 'p.stornokommentar', 'p.stornobezahlt', 'p.stornobezahltam', 'p.stornobezahltvon', 'p.stornoabgeschlossen', 'p.stornorueckzahlungper', 'p.stornowareerhaltenretour', 'p.partnerausgezahlt', 'p.partnerausgezahltam', 'p.kennen', 'p.logdatei', 'p.bezeichnung', 'p.datumproduktion', 'p.anschreiben', 'p.usereditid', 'p.useredittimestamp', 'p.steuersatz_normal', 'p.steuersatz_zwischen', 'p.steuersatz_ermaessigt', 'p.steuersatz_starkermaessigt', 'p.steuersatz_dienstleistung', 'p.waehrung', 'p.schreibschutz', 'p.pdfarchiviert', 'p.pdfarchiviertversion', 'p.typ', 'p.reservierart', 'p.auslagerart', 'p.projektfiliale', 'p.datumauslieferung', 'p.datumbereitstellung', 'p.unterlistenexplodieren', 'p.charge', 'p.arbeitsschrittetextanzeigen', 'p.einlagern_ok', 'p.auslagern_ok', 'p.mhd', 'p.auftragmengenanpassen', 'p.internebezeichnung', 'p.mengeoriginal', 'p.teilproduktionvon', 'p.teilproduktionnummer', 'p.parent', 'p.parentnummer', 'p.bearbeiterid', 'p.mengeausschuss', 'p.mengeerfolgreich', 'p.abschlussbemerkung', 'p.auftragid', 'p.funktionstest', 'p.seriennummer_erstellen', 'p.unterseriennummern_erfassen', 'p.datumproduktionende', 'p.standardlager'); - $findcols = array('p.id','p.id','p.belegnr','p.kundennummer','p.name','p.datum'); + $findcols = array('p.id','p.id','p.belegnr','p.kundennummer','p.name','p.datum','a.name_de','soll','ist', 'zeit_geplant','zeit_geplant', 'projekt','p.status','icons','id'); // $searchsql = array('p.datum', 'p.art', 'p.projekt', 'p.belegnr', 'p.internet', 'p.bearbeiter', 'p.angebot', 'p.freitext', 'p.internebemerkung', 'p.status', 'p.adresse', 'p.name', 'p.abteilung', 'p.unterabteilung', 'p.strasse', 'p.adresszusatz', 'p.ansprechpartner', 'p.plz', 'p.ort', 'p.land', 'p.ustid', 'p.ust_befreit', 'p.ust_inner', 'p.email', 'p.telefon', 'p.telefax', 'p.betreff', 'p.kundennummer', 'p.versandart', 'p.vertrieb', 'p.zahlungsweise', 'p.zahlungszieltage', 'p.zahlungszieltageskonto', 'p.zahlungszielskonto', 'p.bank_inhaber', 'p.bank_institut', 'p.bank_blz', 'p.bank_konto', 'p.kreditkarte_typ', 'p.kreditkarte_inhaber', 'p.kreditkarte_nummer', 'p.kreditkarte_pruefnummer', 'p.kreditkarte_monat', 'p.kreditkarte_jahr', 'p.firma', 'p.versendet', 'p.versendet_am', 'p.versendet_per', 'p.versendet_durch', 'p.autoversand', 'p.keinporto', 'p.keinestornomail', 'p.abweichendelieferadresse', 'p.liefername', 'p.lieferabteilung', 'p.lieferunterabteilung', 'p.lieferland', 'p.lieferstrasse', 'p.lieferort', 'p.lieferplz', 'p.lieferadresszusatz', 'p.lieferansprechpartner', 'p.packstation_inhaber', 'p.packstation_station', 'p.packstation_ident', 'p.packstation_plz', 'p.packstation_ort', 'p.autofreigabe', 'p.freigabe', 'p.nachbesserung', 'p.gesamtsumme', 'p.inbearbeitung', 'p.abgeschlossen', 'p.nachlieferung', 'p.lager_ok', 'p.porto_ok', 'p.ust_ok', 'p.check_ok', 'p.vorkasse_ok', 'p.nachnahme_ok', 'p.reserviert_ok', 'p.bestellt_ok', 'p.zeit_ok', 'p.versand_ok', 'p.partnerid', 'p.folgebestaetigung', 'p.zahlungsmail', 'p.stornogrund', 'p.stornosonstiges', 'p.stornorueckzahlung', 'p.stornobetrag', 'p.stornobankinhaber', 'p.stornobankkonto', 'p.stornobankblz', 'p.stornobankbank', 'p.stornogutschrift', 'p.stornogutschriftbeleg', 'p.stornowareerhalten', 'p.stornomanuellebearbeitung', 'p.stornokommentar', 'p.stornobezahlt', 'p.stornobezahltam', 'p.stornobezahltvon', 'p.stornoabgeschlossen', 'p.stornorueckzahlungper', 'p.stornowareerhaltenretour', 'p.partnerausgezahlt', 'p.partnerausgezahltam', 'p.kennen', 'p.logdatei', 'p.bezeichnung', 'p.datumproduktion', 'p.anschreiben', 'p.usereditid', 'p.useredittimestamp', 'p.steuersatz_normal', 'p.steuersatz_zwischen', 'p.steuersatz_ermaessigt', 'p.steuersatz_starkermaessigt', 'p.steuersatz_dienstleistung', 'p.waehrung', 'p.schreibschutz', 'p.pdfarchiviert', 'p.pdfarchiviertversion', 'p.typ', 'p.reservierart', 'p.auslagerart', 'p.projektfiliale', 'p.datumauslieferung', 'p.datumbereitstellung', 'p.unterlistenexplodieren', 'p.charge', 'p.arbeitsschrittetextanzeigen', 'p.einlagern_ok', 'p.auslagern_ok', 'p.mhd', 'p.auftragmengenanpassen', 'p.internebezeichnung', 'p.mengeoriginal', 'p.teilproduktionvon', 'p.teilproduktionnummer', 'p.parent', 'p.parentnummer', 'p.bearbeiterid', 'p.mengeausschuss', 'p.mengeerfolgreich', 'p.abschlussbemerkung', 'p.auftragid', 'p.funktionstest', 'p.seriennummer_erstellen', 'p.unterseriennummern_erfassen', 'p.datumproduktionende', 'p.standardlager'); $searchsql = array('p.datum', 'p.art', 'p.projekt', 'p.belegnr', 'p.internet', 'p.bearbeiter', 'p.angebot', 'p.freitext', 'p.internebemerkung', 'p.status', 'p.adresse', 'p.name', 'p.abteilung', 'p.unterabteilung', 'p.strasse', 'p.adresszusatz', 'p.ansprechpartner', 'p.plz', 'p.ort', 'p.land', 'p.ustid', 'p.ust_befreit', 'p.ust_inner', 'p.email', 'p.telefon', 'p.telefax', 'p.betreff', 'p.kundennummer', 'p.versandart', 'p.vertrieb', 'p.zahlungsweise', 'p.zahlungszieltage', 'p.zahlungszieltageskonto', 'p.zahlungszielskonto', 'p.bank_inhaber', 'p.bank_institut', 'p.bank_blz', 'p.bank_konto', 'p.kreditkarte_typ', 'p.kreditkarte_inhaber', 'p.kreditkarte_nummer', 'p.kreditkarte_pruefnummer', 'p.kreditkarte_monat', 'p.kreditkarte_jahr', 'p.firma', 'p.versendet', 'p.versendet_am', 'p.versendet_per', 'p.versendet_durch', 'p.autoversand', 'p.keinporto', 'p.keinestornomail', 'p.abweichendelieferadresse', 'p.liefername', 'p.lieferabteilung', 'p.lieferunterabteilung', 'p.lieferland', 'p.lieferstrasse', 'p.lieferort', 'p.lieferplz', 'p.lieferadresszusatz', 'p.lieferansprechpartner', 'p.packstation_inhaber', 'p.packstation_station', 'p.packstation_ident', 'p.packstation_plz', 'p.packstation_ort', 'p.autofreigabe', 'p.freigabe', 'p.nachbesserung', 'p.gesamtsumme', 'p.inbearbeitung', 'p.abgeschlossen', 'p.nachlieferung', 'p.lager_ok', 'p.porto_ok', 'p.ust_ok', 'p.check_ok', 'p.vorkasse_ok', 'p.nachnahme_ok', 'p.reserviert_ok', 'p.bestellt_ok', 'p.zeit_ok', 'p.versand_ok', 'p.partnerid', 'p.folgebestaetigung', 'p.zahlungsmail', 'p.stornogrund', 'p.stornosonstiges', 'p.stornorueckzahlung', 'p.stornobetrag', 'p.stornobankinhaber', 'p.stornobankkonto', 'p.stornobankblz', 'p.stornobankbank', 'p.stornogutschrift', 'p.stornogutschriftbeleg', 'p.stornowareerhalten', 'p.stornomanuellebearbeitung', 'p.stornokommentar', 'p.stornobezahlt', 'p.stornobezahltam', 'p.stornobezahltvon', 'p.stornoabgeschlossen', 'p.stornorueckzahlungper', 'p.stornowareerhaltenretour', 'p.partnerausgezahlt', 'p.partnerausgezahltam', 'p.kennen', 'p.logdatei', 'p.bezeichnung', 'p.datumproduktion', 'p.anschreiben', 'p.usereditid', 'p.useredittimestamp', 'p.steuersatz_normal', 'p.steuersatz_zwischen', 'p.steuersatz_ermaessigt', 'p.steuersatz_starkermaessigt', 'p.steuersatz_dienstleistung', 'p.waehrung', 'p.schreibschutz', 'p.pdfarchiviert', 'p.pdfarchiviertversion', 'p.typ', 'p.reservierart', 'p.auslagerart', 'p.projektfiliale', 'p.datumauslieferung', 'p.datumbereitstellung', 'p.unterlistenexplodieren', 'p.charge', 'p.arbeitsschrittetextanzeigen', 'p.einlagern_ok', 'p.auslagern_ok', 'p.mhd', 'p.auftragmengenanpassen', 'p.internebezeichnung', 'p.mengeoriginal', 'p.teilproduktionvon', 'p.teilproduktionnummer', 'p.parent', 'p.parentnummer', 'p.bearbeiterid', 'p.mengeausschuss', 'p.mengeerfolgreich', 'p.abschlussbemerkung', 'p.auftragid', 'p.funktionstest', 'p.seriennummer_erstellen', 'p.unterseriennummern_erfassen', 'p.datumproduktionende', 'p.standardlager'); @@ -60,34 +58,255 @@ Menü $defaultorder = 1; $defaultorderdesc = 0; - $dropnbox = "'' AS `open`, CONCAT('') AS `auswahl`"; + $dropnbox = "'' AS `open`, CONCAT('') AS `auswahl`"; - $menu = "
" . "Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"> " . "Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\">" . "
"; + $menu = "
" . + "Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"> ". + "Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\">" . + "Conf->WFconf['defaulttheme']}/images/copy.svg\" border=\"0\">" . + "
"; // $sql = "SELECT SQL_CALC_FOUND_ROWS p.id, $dropnbox, p.datum, p.art, p.projekt, p.belegnr, p.internet, p.bearbeiter, p.angebot, p.freitext, p.internebemerkung, p.status, p.adresse, p.name, p.abteilung, p.unterabteilung, p.strasse, p.adresszusatz, p.ansprechpartner, p.plz, p.ort, p.land, p.ustid, p.ust_befreit, p.ust_inner, p.email, p.telefon, p.telefax, p.betreff, p.kundennummer, p.versandart, p.vertrieb, p.zahlungsweise, p.zahlungszieltage, p.zahlungszieltageskonto, p.zahlungszielskonto, p.bank_inhaber, p.bank_institut, p.bank_blz, p.bank_konto, p.kreditkarte_typ, p.kreditkarte_inhaber, p.kreditkarte_nummer, p.kreditkarte_pruefnummer, p.kreditkarte_monat, p.kreditkarte_jahr, p.firma, p.versendet, p.versendet_am, p.versendet_per, p.versendet_durch, p.autoversand, p.keinporto, p.keinestornomail, p.abweichendelieferadresse, p.liefername, p.lieferabteilung, p.lieferunterabteilung, p.lieferland, p.lieferstrasse, p.lieferort, p.lieferplz, p.lieferadresszusatz, p.lieferansprechpartner, p.packstation_inhaber, p.packstation_station, p.packstation_ident, p.packstation_plz, p.packstation_ort, p.autofreigabe, p.freigabe, p.nachbesserung, p.gesamtsumme, p.inbearbeitung, p.abgeschlossen, p.nachlieferung, p.lager_ok, p.porto_ok, p.ust_ok, p.check_ok, p.vorkasse_ok, p.nachnahme_ok, p.reserviert_ok, p.bestellt_ok, p.zeit_ok, p.versand_ok, p.partnerid, p.folgebestaetigung, p.zahlungsmail, p.stornogrund, p.stornosonstiges, p.stornorueckzahlung, p.stornobetrag, p.stornobankinhaber, p.stornobankkonto, p.stornobankblz, p.stornobankbank, p.stornogutschrift, p.stornogutschriftbeleg, p.stornowareerhalten, p.stornomanuellebearbeitung, p.stornokommentar, p.stornobezahlt, p.stornobezahltam, p.stornobezahltvon, p.stornoabgeschlossen, p.stornorueckzahlungper, p.stornowareerhaltenretour, p.partnerausgezahlt, p.partnerausgezahltam, p.kennen, p.logdatei, p.bezeichnung, p.datumproduktion, p.anschreiben, p.usereditid, p.useredittimestamp, p.steuersatz_normal, p.steuersatz_zwischen, p.steuersatz_ermaessigt, p.steuersatz_starkermaessigt, p.steuersatz_dienstleistung, p.waehrung, p.schreibschutz, p.pdfarchiviert, p.pdfarchiviertversion, p.typ, p.reservierart, p.auslagerart, p.projektfiliale, p.datumauslieferung, p.datumbereitstellung, p.unterlistenexplodieren, p.charge, p.arbeitsschrittetextanzeigen, p.einlagern_ok, p.auslagern_ok, p.mhd, p.auftragmengenanpassen, p.internebezeichnung, p.mengeoriginal, p.teilproduktionvon, p.teilproduktionnummer, p.parent, p.parentnummer, p.bearbeiterid, p.mengeausschuss, p.mengeerfolgreich, p.abschlussbemerkung, p.auftragid, p.funktionstest, p.seriennummer_erstellen, p.unterseriennummern_erfassen, p.datumproduktionende, p.standardlager, p.id FROM produktion p"; // $sql = "SELECT SQL_CALC_FOUND_ROWS p.id, $dropnbox, p.belegnr, p.kundennummer, p.name, p.datum, \"SUBSELECT\", \"SUBSELECT\", p.mengeerfolgreich, \"-\", \"-\", p.projekt, p.status, p.status, p.id FROM produktion p"; $sql = "SELECT SQL_CALC_FOUND_ROWS - p.id, - $dropnbox, - p.belegnr, - p.kundennummer, - p.name, - p.datum, - (SELECT pp.bezeichnung FROM produktion_position pp WHERE pp.produktion = p.id AND pp.stuecklistestufe = 1 LIMIT 1), - FORMAT(p.mengeoriginal,0), - FORMAT(p.mengeerfolgreich,0), - \"-\", - \"-\", - (SELECT projekt.abkuerzung FROM projekt WHERE p.projekt = projekt.id LIMIT 1), - p.status, - (" . $app->YUI->IconsSQL_produktion('p') . ") AS `icons`, - p.id - FROM produktion p"; + p.id, + $dropnbox, + p.belegnr, + p.kundennummer, + (SELECT name FROM adresse WHERE kundennummer = p.kundennummer AND p.kundennummer != 0 LIMIT 1) as name, + DATE_FORMAT(datum,'%d.%m.%Y') as datum, + + CONCAT ( + IFNULL((SELECT CONCAT(a.name_de,' (',a.nummer,')','
') FROM artikel a INNER JOIN produktion_position pp ON pp.artikel = a.id WHERE pp.stuecklistestufe = 1 AND pp.produktion = p.id LIMIT 1),''), + CONCAT('',internebezeichnung,'') + ) as bezeichnung, - $where = "1"; - $count = "SELECT count(DISTINCT id) FROM produktion WHERE $where"; + FORMAT((SELECT SUM(menge) FROM produktion_position pp WHERE pp.produktion = p.id AND pp.stuecklistestufe = 1),0,'de_DE') as soll, + FORMAT(p.mengeerfolgreich,0,'de_DE') as ist, + \"-\" as zeit_geplant, + \"-\" as zeit_erfasst, + (SELECT projekt.abkuerzung FROM projekt WHERE p.projekt = projekt.id LIMIT 1) as projekt, + p.status, + (" . $app->YUI->IconsSQL_produktion('p') . ") AS `icons`, + p.id + FROM produktion p + "; + + $where = "0"; + + // Toggle filters + $this->app->Tpl->Add('JQUERYREADY', "$('#angelegte').click( function() { fnFilterColumn1( 0 ); } );"); + $this->app->Tpl->Add('JQUERYREADY', "$('#offene').click( function() { fnFilterColumn2( 0 ); } );"); + $this->app->Tpl->Add('JQUERYREADY', "$('#geschlossene').click( function() { fnFilterColumn3( 0 ); } );"); + $this->app->Tpl->Add('JQUERYREADY', "$('#stornierte').click( function() { fnFilterColumn4( 0 ); } );"); + + for ($r = 1;$r <= 4;$r++) { + $this->app->Tpl->Add('JAVASCRIPT', ' + function fnFilterColumn' . $r . ' ( i ) + { + if(oMoreData' . $r . $name . '==1) + oMoreData' . $r . $name . ' = 0; + else + oMoreData' . $r . $name . ' = 1; + + $(\'#' . $name . '\').dataTable().fnFilter( + \'\', + i, + 0,0 + ); + } + '); + } + + + $more_data1 = $this->app->Secure->GetGET("more_data1"); + if ($more_data1 == 1) { + $where .= " OR p.status IN ('angelegt')"; + } else { + } + + $more_data2 = $this->app->Secure->GetGET("more_data2"); + if ($more_data2 == 1) { + $where .= " OR p.status IN ('freigegeben','gestartet')"; + } + else { + } + + $more_data3 = $this->app->Secure->GetGET("more_data3"); + if ($more_data3 == 1) { + $where .= " OR p.status IN ('abgeschlossen')"; + } + else { + } + + $more_data4 = $this->app->Secure->GetGET("more_data4"); + if ($more_data4 == 1) { + $where .= " OR p.status IN ('storniert')"; + } + else { + } + // END Toggle filters + + $moreinfo = true; // Allow drop down details + $menucol = 14; // For moredata + + if ($where=='0') { + $where = " p.status IN ('freigegeben','gestartet')"; + } + + $count = "SELECT count(DISTINCT p.id) FROM produktion p INNER JOIN produktion_position pp ON pp.produktion = pp.id WHERE $where"; // $groupby = ""; + break; + case "produktion_position_source_list": + $id = $app->Secure->GetGET('id'); + + $sql = "SELECT standardlager FROM produktion WHERE id=$id"; + $standardlager = $app->DB->SelectArr($sql)[0]['standardlager']; + + $allowed['produktion_position_list'] = array('list'); + + $sql = "SELECT menge FROM produktion_position pp WHERE produktion=$id AND stuecklistestufe=1"; + $produktionsmenge = $app->DB->SelectArr($sql)[0]['menge']; + + // Get status to control UI element menu availability + $sql = "SELECT p.status from produktion p WHERE p.id = $id"; + $result = $app->DB->SelectArr($sql)[0]; + $status = $result['status']; + + if (in_array($status,array('angelegt','freigegeben'))) { + $heading = array('','','Nummer', 'Artikel', 'Projekt', 'Planmenge pro Stück', 'Lager alle (verfügbar)', 'Lager (verfügbar)', 'Reserviert', 'Planmenge', 'Verbraucht', 'Menü'); + $width = array( '1%','1%','5%', '30%', '5%', '1%', '1%', '1%' , '1%', '1%', '1%' ,'1%'); + $menu = "
" . "Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"> " . "Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\">" . "
"; + } else { + $heading = array('','','Nummer', 'Artikel', 'Projekt','Planmenge pro Stück', 'Lager alle (verfügbar)', 'Lager (verfügbar)', 'Reserviert', 'Planmenge', 'Verbraucht', ''); + $width = array( '1%','1%','5%', '30%', '5%', '1%', '1%', '1%' , '1%', '1%', '1%' ,'1%'); + $menu = ""; + } + + $alignright = array(6,7,8,9,10); + + $findcols = array('','p.artikel','(SELECT a.nummer FROM artikel a WHERE a.id = p.artikel LIMIT 1)','(SELECT a.name_de FROM artikel a WHERE a.id = p.artikel LIMIT 1)','projekt','stueckmenge','lageralle','lager','reserviert','menge','geliefert_menge'); + $searchsql = array('p.artikel','nummer','name','projekt','lager','menge','reserviert','geliefert_menge'); + + $defaultorder = 1; + $defaultorderdesc = 0; + + $dropnbox = "'' AS `open`, CONCAT('') AS `auswahl`"; + + $sql = "SELECT SQL_CALC_FOUND_ROWS + p.id, + $dropnbox, + (SELECT a.nummer FROM artikel a WHERE a.id = p.artikel LIMIT 1) as nummer, + (SELECT a.name_de FROM artikel a WHERE a.id = p.artikel LIMIT 1) as name, + (SELECT projekt.abkuerzung FROM projekt INNER JOIN artikel a WHERE a.projekt = projekt.id AND a.id = p.artikel LIMIT 1) as projekt, + FORMAT(p.menge/$produktionsmenge,0,'de_DE') as stueckmenge, + IF ((SELECT lagerartikel FROM artikel a WHERE a.id = p.artikel LIMIT 1) != 0, + CONCAT ( + FORMAT (IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.artikel = p.artikel),0),0,'de_DE'), + ' (', + FORMAT ( + IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.artikel = p.artikel),0)- + IFNULL((SELECT SUM(menge) FROM lager_reserviert r WHERE r.artikel = p.artikel),0), + 0, + 'de_DE' + ), + ')' + ),'') as lageralle, + if (('$standardlager' != '0') && ((SELECT lagerartikel FROM artikel a WHERE a.id = p.artikel LIMIT 1) != 0), + CONCAT ( + FORMAT (IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.lager_platz = $standardlager AND lpi.artikel = p.artikel),0),0,'de_DE'), + ' (', + FORMAT ( + IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.lager_platz = $standardlager AND lpi.artikel = p.artikel),0)- + IFNULL((SELECT SUM(menge) FROM lager_reserviert r WHERE r.lager_platz = $standardlager AND r.artikel = p.artikel),0), + 0, + 'de_DE' + ), + ')' + ) + ,'' + ) as lager, + FORMAT ((SELECT SUM(menge) FROM lager_reserviert r WHERE r.lager_platz = $standardlager AND r.artikel = p.artikel AND r.objekt = 'produktion' AND r.parameter = $id AND r.posid = p.id),0,'de_DE') as Reserviert, + FORMAT(p.menge,0,'de_DE'), + FORMAT(p.geliefert_menge,0,'de_DE') as geliefert_menge, + p.id + FROM produktion_position p"; + + $where = " stuecklistestufe = 0 AND produktion = $id"; + + $count = "SELECT count(DISTINCT id) FROM produktion_position WHERE $where"; +// $groupby = ""; + + break; + case "produktion_source_list": // Aggregated per artikel + $id = $app->Secure->GetGET('id'); + + $sql = "SELECT menge FROM produktion_position pp WHERE produktion=$id AND stuecklistestufe=1"; + $produktionsmenge = $app->DB->SelectArr($sql)[0]['menge']; + + $sql = "SELECT standardlager FROM produktion WHERE id=$id"; + $standardlager = $app->DB->SelectArr($sql)[0]['standardlager']; + + $allowed['produktion_position_list'] = array('list'); + $heading = array('','Nummer', 'Artikel', 'Projekt','Planmenge pro Stück', 'Lager alle (verfügbar)' ,'Lager (verfügbar)', 'Reserviert','Planmenge', 'Verbraucht',''); + $width = array('1%','5%', '30%', '5%', '1%', '1%', '1%', '1%' , '1%', '1%' ,'1%'); + + $alignright = array(5,6,7,8,9); + + $findcols = array('p.artikel','(SELECT a.nummer FROM artikel a WHERE a.id = p.artikel LIMIT 1)','(SELECT a.name_de FROM artikel a WHERE a.id = p.artikel LIMIT 1)','projekt','stueckmenge','lageralle','lager','reserviert','menge','geliefert_menge'); + + $searchsql = array('p.artikel','nummer','name','projekt','lager','menge','reserviert','geliefert_menge'); + + $defaultorder = 1; + $defaultorderdesc = 0; + + $drop = "'' AS `open`"; + + $sql = "SELECT SQL_CALC_FOUND_ROWS + p.artikel, + $drop, + (SELECT a.nummer FROM artikel a WHERE a.id = p.artikel LIMIT 1) as nummer, + (SELECT a.name_de FROM artikel a WHERE a.id = p.artikel LIMIT 1) as name, + (SELECT projekt.abkuerzung FROM projekt INNER JOIN artikel a WHERE a.projekt = projekt.id AND a.id = p.artikel LIMIT 1) as projekt, + FORMAT(SUM(p.menge)/$produktionsmenge,0,'de_DE') as stueckmenge, + IF ((SELECT lagerartikel FROM artikel a WHERE a.id = p.artikel LIMIT 1) != 0, + CONCAT ( + FORMAT (IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.artikel = p.artikel),0),0,'de_DE'), + ' (', + FORMAT ( + IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.artikel = p.artikel),0)- + IFNULL((SELECT SUM(menge) FROM lager_reserviert r WHERE r.artikel = p.artikel),0), + 0, + 'de_DE' + ), + ')' + ),'') as lageralle, + if (('$standardlager' != '0') && ((SELECT lagerartikel FROM artikel a WHERE a.id = p.artikel LIMIT 1) != 0), + CONCAT ( + FORMAT (IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.lager_platz = $standardlager AND lpi.artikel = p.artikel),0),0,'de_DE'), + ' (', + FORMAT ( + IFNULL((SELECT SUM(menge) FROM lager_platz_inhalt lpi WHERE lpi.lager_platz = $standardlager AND lpi.artikel = p.artikel),0)- + IFNULL((SELECT SUM(menge) FROM lager_reserviert r WHERE r.lager_platz = $standardlager AND r.artikel = p.artikel),0), + 0, + 'de_DE' + ), + ')' + ) + ,'' + ) as lager, + FORMAT ((SELECT SUM(menge) FROM lager_reserviert r WHERE r.lager_platz = $standardlager AND r.artikel = p.artikel AND r.objekt = 'produktion' AND r.parameter = $id),0,'de_DE') as reserviert, + FORMAT(SUM(p.menge),0,'de_DE') as menge, + FORMAT(p.geliefert_menge,0,'de_DE') as geliefert_menge, + p.id + FROM produktion_position p"; + + $where = " stuecklistestufe = 0 AND produktion = $id"; + + $count = "SELECT count(DISTINCT id) FROM produktion_position WHERE $where"; + $groupby = " GROUP BY p.artikel "; + break; } @@ -107,6 +326,8 @@ Menü $this->app->erp->MenuEintrag("index.php", "Zurück"); + $this->StatusBerechnen(0); // all open ones + $this->app->YUI->TableSearch('TAB1', 'produktion_list', "show", "", "", basename(__FILE__), __CLASS__); $this->app->Tpl->Parse('PAGE', "produktion_list.tpl"); } @@ -114,8 +335,18 @@ Menü public function produktion_delete() { $id = (int) $this->app->Secure->GetGET('id'); - $this->app->DB->Delete("DELETE FROM `produktion` WHERE `id` = '{$id}'"); - $this->app->Tpl->Set('MESSAGE', "
Der Eintrag wurde gelöscht.
"); + // Check if storno possible -> No partial production yet + + $geliefert_menge = $this->app->DB->SelectArr("SELECT SUM(geliefert_menge) as menge FROM produktion_position pp WHERE pp.produktion = $id")[0]['menge']; + + if ($geliefert_menge == 0) { + + $sql = "UPDATE produktion SET status='storniert' WHERE id = '$id'"; + $this->app->DB->Update($sql); + $this->app->Tpl->Set('MESSAGE', "
Der Eintrag wurde storniert.
"); + } else { + $this->app->Tpl->Set('MESSAGE', "
Der Eintrag kann nicht storniert werden, da bereits Buchungen vorhanden sind.
"); + } $this->produktion_list(); } @@ -125,410 +356,1357 @@ Menü * If id is empty, create a new one */ - function produktion_edit() { - $id = $this->app->Secure->GetGET('id'); - + function produktion_edit($id = NULL) { + + if (empty($id)) { + $id = $this->app->Secure->GetGET('id'); + } + if($this->app->erp->DisableModul('produktion',$id)) + { + return; + } + + $submit = $this->app->Secure->GetPOST('submit'); + $this->app->Tpl->Set('ID', $id); $this->app->erp->MenuEintrag("index.php?module=produktion&action=edit&id=$id", "Details"); $this->app->erp->MenuEintrag("index.php?module=produktion&action=list", "Zurück zur Übersicht"); - $id = $this->app->Secure->GetGET('id'); $input = $this->GetInput(); - $submit = $this->app->Secure->GetPOST('submit'); - + $msg = $this->app->erp->base64_url_decode($this->app->Secure->GetGET('msg')); + + $sql = "SELECT status, belegnr, projekt, standardlager FROM produktion WHERE id = '$id'"; + $from_db = $this->app->DB->SelectArr($sql)[0]; + $global_status = $from_db['status']; + $global_produktionsnummer = $from_db['belegnr']; + $global_projekt = $from_db['projekt']; + $global_standardlager = $from_db['standardlager']; + +// foreach ($input as $key => $value) { +// echo($key." -> ".$value."
\n"); +// } + + $this->app->Tpl->Set('MESSAGE', ""); + if (empty($id)) { // New item - $id = 'NULL'; - } + $id = 'NULL'; + + } else { + } if ($submit != '') { - // Write to database + $msg = ""; + + switch ($submit) { + case 'speichern': + // Write to database - // Add checks here + // Add checks here - $columns = "id, "; - $values = "$id, "; - $update = ""; + if (empty($input['datum'])) { + $input['datum'] = date("Y-m-d"); + } else { + $input['datum'] = $this->app->erp->ReplaceDatum(true,$input['datum'],true); + } + + if ($id == 'NULL') { + $input['status'] = 'angelegt'; + } + + $input['datumauslieferung'] = $this->app->erp->ReplaceDatum(true,$input['datumauslieferung'],true); + $input['datumbereitstellung'] = $this->app->erp->ReplaceDatum(true,$input['datumbereitstellung'],true); + $input['datumproduktion'] = $this->app->erp->ReplaceDatum(true,$input['datumproduktion'],true); + $input['datumproduktionende'] = $this->app->erp->ReplaceDatum(true,$input['datumproduktionende'],true); + $input['projekt'] = $this->app->erp->ReplaceProjekt(true,$input['projekt'],true); + + $columns = "id, "; + $values = "$id, "; + $update = ""; + + $fix = ""; + + foreach ($input as $key => $value) { + $columns = $columns.$fix.$key; + $values = $values.$fix."'".$value."'"; + $update = $update.$fix.$key." = '$value'"; + $fix = ", "; + } + + $sql = "INSERT INTO produktion (".$columns.") VALUES (".$values.") ON DUPLICATE KEY UPDATE ".$update; + $this->app->DB->Update($sql); + + if ($id == 'NULL') { - $fix = ""; + $id = $this->app->DB->GetInsertID(); - foreach ($input as $key => $value) { - $columns = $columns.$fix.$key; - $values = $values.$fix."'".$value."'"; - $update = $update.$fix.$key." = '$value'"; + if (!empty($id)) { + $this->ProtokollSchreiben($id,'Produktion angelegt'); + $msg = "
Das Element wurde erfolgreich angelegt.
"; // Overwrite old MSG + $msg = $this->app->erp->base64_url_encode($msg); + header("Location: index.php?module=produktion&action=edit&id=$id&msg=$msg"); + } + + } else { + $msg .= "
Die Einstellungen wurden erfolgreich übernommen.
"; + } + break; + case 'planen': + + // Check + // Parse positions + $sql = "SELECT artikel FROM produktion_position pp WHERE produktion=$id AND stuecklistestufe=1"; + $produktionsartikel = $this->app->DB->SelectArr($sql); - $fix = ", "; - } + if (!empty($produktionsartikel)) { + $msg .= "
Bereits geplant.
"; + break; + } -// echo($columns."
"); -// echo($values."
"); -// echo($update."
"); + $artikel_planen_id = $this->app->erp->ReplaceArtikel(true, $this->app->Secure->GetPOST('artikel_planen'),true); // Convert from form to artikel number + $artikel_planen_menge = $this->app->Secure->GetPOST('artikel_planen_menge'); - $sql = "INSERT INTO produktion (".$columns.") VALUES (".$values.") ON DUPLICATE KEY UPDATE ".$update; + if (!$artikel_planen_id) { + $msg .= "
Artikel ist keine Stückliste.
"; + break; + } -// echo($sql); + if ($artikel_planen_menge < 1) { + $msg .= "
Ungültige Planmenge.
"; + break; + } - $this->app->DB->Update($sql); + // Insert positions - if ($id == 'NULL') { - $msg = $this->app->erp->base64_url_encode("
Das Element wurde erfolgreich angelegt.
"); - header("Location: index.php?module=produktion&action=list&msg=$msg"); - } else { - $this->app->Tpl->Set('MESSAGE', "
Die Einstellungen wurden erfolgreich übernommen.
"); - } + $position_array = array(); + + $sql = "SELECT '".$id."' as id, artikel, menge, '0' as stuecklistestufe FROM stueckliste WHERE stuecklistevonartikel = ".$artikel_planen_id; + $stueckliste = $this->app->DB->SelectArr($sql); + + if (empty($stueckliste)) { + $msg .= "
Stückliste ist leer.
"; + break; + } + + foreach ($stueckliste as $key => $value) { + $value['menge'] = $value['menge'] * $artikel_planen_menge; + $position_values[] = '('.implode(",",$value).',\'\')'; + } + + $sql = "INSERT INTO produktion_position (produktion, artikel, menge, stuecklistestufe, projekt) VALUES ( $id, $artikel_planen_id, $artikel_planen_menge, 1, '$global_projekt'), ".implode(',',$position_values); + $this->app->DB->Update($sql); + + $msg .= "
Planung angelegt.
"; + $this->ProtokollSchreiben($id,"Produktion geplant ($artikel_planen_menge)"); + + break; + case 'freigeben': + $this->app->erp->BelegFreigabe("produktion",$id); + $this->ProtokollSchreiben($id,'Produktion freigegeben'); + break; + case 'reservieren': + + // Check quantities and reserve for every position + + if($global_standardlager == 0) { + break; + } + + $fortschritt = $this->MengeFortschritt($id,$global_standardlager); + + if (empty($fortschritt)) { + break; + } + + $sql = "SELECT pp.id, pp.artikel, a.name_de, a.nummer, pp.menge as menge, pp.geliefert_menge as geliefert_menge FROM produktion_position pp INNER JOIN artikel a ON a.id = pp.artikel WHERE pp.produktion=$id AND pp.stuecklistestufe=0"; + $materialbedarf = $this->app->DB->SelectArr($sql); + + // Try to reserve material + $reservierung_durchgefuehrt = false; + foreach ($materialbedarf as $materialbedarf_position) { + + // Calculate new needed quantity if there is scrap + $materialbedarf_position['menge'] = $materialbedarf_position['menge']*($fortschritt['ausschuss']+$fortschritt['geplant'])/$fortschritt['geplant']; + + $result = $this->ArtikelReservieren($materialbedarf_position['artikel'], $global_standardlager, $materialbedarf_position['menge']-$materialbedarf_position['geliefert_menge'], 0, 'produktion', $id, $materialbedarf_position['id'],"Produktion $global_produktionsnummer"); + if ($result > 0) { + $reservierung_durchgefuehrt = true; + } + } + + // Message output + if ($reservierung_durchgefuehrt) { + $msg .= "
Reservierung durchgeführt.
"; + } else { + $msg .= "
Keine Reservierung durchgeführt!
"; + } + break; + case 'produzieren': + + // Check quanitites + // Parse positions + $sql = "SELECT artikel, menge, geliefert_menge FROM produktion_position pp WHERE produktion=$id AND stuecklistestufe=1"; + $produktionsartikel_position = $this->app->DB->SelectArr($sql)[0]; + + if (empty($produktionsartikel_position)) { + $msg .= "
Keine Planung vorhanden.
"; + break; + } + + $menge_produzieren = $this->app->Secure->GetPOST('menge_produzieren'); + if (empty($menge_produzieren)) { + $menge_produzieren = 0; + } + $menge_ausschuss = $this->app->Secure->GetPOST('menge_ausschuss_produzieren'); + if (empty($menge_ausschuss)) { + $menge_ausschuss = 0; + } + + $menge_plan = $produktionsartikel_position['menge']; + $menge_geliefert = $produktionsartikel_position['geliefert_menge']; + + $menge_auslagern = $menge_produzieren+$menge_ausschuss; + + if ($menge_auslagern < 1) { + $msg .= "
Ungültige Menge.
"; + break; + } + + $menge_moeglich = $this->LagerCheckProduktion($id, $global_standardlager, false); + + if ($menge_auslagern > $menge_moeglich) { + $msg .= "
Lagermenge nicht ausreichend. ($menge_auslagern > $menge_moeglich)
"; + break; + } + + $sql = "UPDATE produktion SET status = 'gestartet' WHERE id=$id"; + $this->app->DB->Update($sql); + + $sql = "SELECT pp.id, pp.artikel, pp.menge, pp.geliefert_menge, pp.stuecklistestufe, a.lagerartikel FROM produktion_position pp INNER JOIN artikel a ON a.id = pp.artikel WHERE pp.produktion=$id"; + $material = $this->app->DB->SelectArr($sql); + + foreach ($material as $material_position) { + + // Calculate quantity to be removed + $menge_artikel_auslagern = $material_position['menge']/$produktionsartikel_position['menge']*$menge_auslagern; + + // Remove material from stock + if ($material_position['stuecklistestufe'] == 0 && $material_position['lagerartikel']) { + $result = $this->app->erp->LagerAuslagernRegal($material_position['artikel'],$global_standardlager,$menge_artikel_auslagern,$global_projekt,'Produktion '.$produktion_belegnr); + if ($result != 1) { + $msg .= "
Kritischer Fehler beim Ausbuchen! (Position ".$material_position['id'].", Menge ".$menge_artikel_auslagern.").
". + $error = true; + break; + } + // Adjust reservation + $result = $this->ArtikelReservieren($material_position['artikel'],$global_standardlager,-$menge_artikel_auslagern,0,'produktion',$id,$material_position['id'],"Produktion $global_produktionsnummer"); + } + + // Update position + $sql = "UPDATE produktion_position SET geliefert_menge = geliefert_menge + $menge_artikel_auslagern WHERE id = ".$material_position['id']; + $this->app->DB->Update($sql); + } + + if ($error) { + break; + } + + // Insert produced parts into stock + // Check target stock, if not existing, use default stock of article, if not given use production stock + + + $ziellager_from_form = $this->app->erp->ReplaceLagerPlatz(true,$this->app->Secure->GetPOST('ziellager'),true); // Parameters: Target db?, value, from form? + + $use_artikel_lager = false; + $ziellager = $global_standardlager; + + if (!empty($ziellager_from_form)) { + $sql = "SELECT id FROM lager_platz WHERE id = ".$ziellager_from_form; + $result = $this->app->DB->SelectArr($sql); + if (!empty($result)) { + $ziellager = $ziellager_from_form; + } else { + $use_artikel_lager = true; + } + } else { + $use_artikel_lager = true; + } + + if ($use_artikel_lager) { + $sql = "SELECT lager_platz FROM artikel WHERE id = ".$produktionsartikel_position['artikel']; + $result = $this->app->DB->SelectArr($sql); + if (!empty($result) && !empty($result[0]['lager_platz'])) { + $ziellager = $result[0]['lager_platz']; + } else { + + } + } else { + + } + $sql = "SELECT kurzbezeichnung FROM lager_platz WHERE id = $ziellager"; + $lagername = $this->app->DB->SelectArr($sql)[0]['kurzbezeichnung']; + + // ERPAPI + // function LagerEinlagern($artikel,$menge,$regal,$projekt,$grund="",$importer="",$paketannahme="",$doctype = "", $doctypeid = 0, $vpeid = 0, $permanenteinventur = 0, $adresse = 0) + $this->app->erp->LagerEinlagern($produktionsartikel_position['artikel'],$menge_produzieren,$ziellager,$global_projekt,"Produktion $global_produktionsnummer"); + // No error handling in LagerEinlagern... + + $sql = "UPDATE produktion SET mengeerfolgreich = mengeerfolgreich + $menge_produzieren, mengeausschuss = mengeausschuss + $menge_ausschuss WHERE id = $id"; + $this->app->DB->Update($sql); + + if ($menge_produzieren > 0) { + $lagertext = ", eingelagert in $lagername"; + } + $text = "Produktion durchgeführt ($menge_produzieren erfolgreich, $menge_ausschuss Ausschuss)$lagertext"; + $msg .= "
$text.
"; + $this->ProtokollSchreiben($id,$text); + + break; + case 'teilen': + + // Create partial production + + $menge_abteilen = $this->app->Secure->GetPOST('menge_produzieren'); + + $fortschritt = $this->MengeFortschritt($id,$global_standardlager); + + if (empty($fortschritt)) { + break; + } + + if (($menge_abteilen < 1) || ($menge_abteilen > $fortschritt['offen'])) { + $msg .= "
Ungültige Teilmenge.
"; + break; + } + + $sql = "SELECT * from produktion WHERE id = $id"; + $produktion_alt = $this->app->DB->SelectArr($sql)[0]; + + // Part production of part production -> select parent + $hauptproduktion_id = $produktion_alt['teilproduktionvon']; + if ($hauptproduktion_id != 0) { + $sql = "SELECT belegnr FROM produktion WHERE id = $hauptproduktion_id"; + $hauptproduktion_belegnr = $this->app->DB->SelectArr($sql)[0]['belegnr']; + } else { + $hauptproduktion_id = $produktion_alt['id']; + $hauptproduktion_belegnr = $produktion_alt['belegnr']; + } + + $sql = "SELECT MAX(teilproduktionnummer) as tpn FROM produktion WHERE teilproduktionvon = $hauptproduktion_id"; + $teilproduktionnummer = $this->app->DB->SelectArr($sql)[0]['tpn']; + if (empty($teilproduktionnummer) || $teilproduktionnummer == 0) { + $teilproduktionnummer = '1'; + } else { + $teilproduktionnummer++; + } + + $produktion_neu = array(); + $produktion_neu['status'] = 'angelegt'; + $produktion_neu['datum'] = date("Y-m-d"); + $produktion_neu['art'] = $produktion_alt['art']; + $produktion_neu['projekt'] = $produktion_alt['projekt']; + $produktion_neu['angebot'] = $produktion_alt['angebot']; + $produktion_neu['kundennummer'] = $produktion_alt['kundennummer']; + $produktion_neu['auftragid'] = $produktion_alt['auftragid']; + $produktion_neu['freitext'] = $produktion_alt['freitext']; + $produktion_neu['internebemerkung'] = $produktion_alt['internebemerkung']; + $produktion_neu['adresse'] = $produktion_alt['adresse']; + $produktion_neu['internebemerkung'] = $produktion_alt['internebemerkung']; + $produktion_neu['internebezeichnung '] = $produktion_alt['internebezeichnung']; + $produktion_neu['standardlager'] = $produktion_alt['standardlager']; + $produktion_neu['belegnr'] = $hauptproduktion_belegnr."-".$teilproduktionnummer; + $produktion_neu['teilproduktionvon'] = $hauptproduktion_id; + $produktion_neu['teilproduktionnummer'] = $teilproduktionnummer; + + $columns = ""; + $values = ""; + $update = ""; + + $fix = ""; + + foreach ($produktion_neu as $key => $value) { + $columns = $columns.$fix.$key; + $values = $values.$fix."'".$value."'"; + $update = $update.$fix.$key." = '$value'"; + $fix = ", "; + } + + $sql = "INSERT INTO produktion (".$columns.") VALUES (".$values.")"; + $this->app->DB->Update($sql); + $produktion_neu_id = $this->app->DB->GetInsertID(); + + // Now add the positions + $sql = "SELECT * FROM produktion_position WHERE produktion = $id"; + $positionen = $this->app->DB->SelectArr($sql); + + foreach ($positionen as $position) { + + $columns = ""; + + // Preserve these values + $pos_id = $position['id']; + $geliefert_menge = $position['geliefert_menge']; + $menge = $position['menge']; + $produktion_alt_id = $position['produktion']; + $menge_pro_stueck = $menge/$fortschritt['geplant']; + + // For the new positions + $position['id'] = 'NULL'; + $position['geliefert_menge'] = 0; + + $position['menge'] = $menge_abteilen*$menge_pro_stueck; + $position['produktion'] = $produktion_neu_id; + + $values = ""; + $fix = ""; + foreach ($position as $key => $value) { + $columns = $columns.$fix.$key; + $values = $values.$fix."'".$value."'"; + $fix = ", "; + } + $sql = "INSERT INTO produktion_position (".$columns.") VALUES (".$values.")"; + $this->app->DB->Update($sql); + + // For the old positions + // Reduce positions in old production + $position['id'] = $pos_id; + $position['geliefert_menge'] = $geliefert_menge; + $position['menge'] = $menge - $position['menge']; // old quantity - partial quantity + $position['produktion'] = $produktion_alt_id; + + $fix = ""; + $update = ""; + foreach ($position as $key => $value) { + $update = $update.$fix.$key." = '".($value)."'"; + $fix = ", "; + } + + $sql = "UPDATE produktion_position SET $update WHERE id = $pos_id"; + $this->app->DB->Update($sql); + + // Free surplus reservations + $restreservierung = $menge_pro_stueck * $fortschritt['offen']-$menge_abteilen; + $result = $this->ArtikelReservieren($position['artikel'],$global_standardlager,0,$restreservierung,'produktion',$id,$position['id'],"Produktion $global_produktionsnummer"); + + } + + $this->ProtokollSchreiben($id,"Teilproduktion erstellt: ".$produktion_neu['belegnr']." (Menge $menge_abteilen)"); + $msg = "
Das Element wurde erfolgreich angelegt.
"; // Overwrite old MSG + $msg = $this->app->erp->base64_url_encode($msg); + header("Location: index.php?module=produktion&action=edit&id=$produktion_neu_id&msg=$msg"); + + break; + case 'leeren': + + if ($global_status == 'angelegt' || $global_status == 'freigegeben') { + $sql = "SELECT id, artikel, menge, geliefert_menge FROM produktion_position pp WHERE produktion=$id AND stuecklistestufe=0"; + $material = $this->app->DB->SelectArr($sql); + foreach ($material as $material_position) { + // Remove reservation + $result = $this->ArtikelReservieren($material_position['artikel'],$global_standardlager,0,0,'produktion',$id,$material_position['id'],"Produktion $global_produktionsnummer"); + } + $sql = "DELETE FROM produktion_position WHERE produktion = $id"; + $this->app->DB->Update($sql); + $msg .= "
Planung geleert.
"; + } else { + $msg .= "
Planung kann nicht geleert werden.
"; + } + + break; + case 'anpassen': + + if ($global_status == 'angelegt' || $global_status == 'freigegeben' || $global_status == 'gestartet') { + + $menge_anpassen = $this->app->Secure->GetPOST('menge_produzieren'); + + if (empty($menge_anpassen)) { + $msg .= "
Ungültige Planmenge.
"; + break; + } + + $fortschritt = $this->MengeFortschritt($id,$global_standardlager); + + $result = $this->MengeAnpassen($id,$menge_anpassen,$global_standardlager); + + if ($result == -1) { + $msg .= "
Ungültige Planmenge.
"; + } else { + $msg .= "
Planmenge angepasst.
"; + } + } + + $this->ProtokollSchreiben($id,"Menge angepasst auf ".$this->FormatMenge($menge_anpassen)); + + break; + case 'abschliessen': + $sql = "UPDATE produktion SET status = 'abgeschlossen' WHERE id=$id"; + $this->app->DB->Update($sql); + + $sql = "SELECT id, artikel, menge, geliefert_menge FROM produktion_position pp WHERE produktion=$id AND stuecklistestufe=0"; + $material = $this->app->DB->SelectArr($sql); + + foreach ($material as $material_position) { + // Remove reservation + $result = $this->ArtikelReservieren($material_position['artikel'],$global_standardlager,0,0,'produktion',$id,$material_position['id'],"Produktion $global_produktionsnummer"); + } + + $this->ProtokollSchreiben($id,'Produktion abgeschlossen'); + + break; + + } } // Load values again from database + // toDo: cleanup - $sql = "SELECT SQL_CALC_FOUND_ROWS p.id, p.datum, p.art, p.projekt, p.belegnr, p.internet, p.bearbeiter, p.angebot, p.freitext, p.internebemerkung, p.status, p.adresse, p.name, p.abteilung, p.unterabteilung, p.strasse, p.adresszusatz, p.ansprechpartner, p.plz, p.ort, p.land, p.ustid, p.ust_befreit, p.ust_inner, p.email, p.telefon, p.telefax, p.betreff, p.kundennummer, p.versandart, p.vertrieb, p.zahlungsweise, p.zahlungszieltage, p.zahlungszieltageskonto, p.zahlungszielskonto, p.bank_inhaber, p.bank_institut, p.bank_blz, p.bank_konto, p.kreditkarte_typ, p.kreditkarte_inhaber, p.kreditkarte_nummer, p.kreditkarte_pruefnummer, p.kreditkarte_monat, p.kreditkarte_jahr, p.firma, p.versendet, p.versendet_am, p.versendet_per, p.versendet_durch, p.autoversand, p.keinporto, p.keinestornomail, p.abweichendelieferadresse, p.liefername, p.lieferabteilung, p.lieferunterabteilung, p.lieferland, p.lieferstrasse, p.lieferort, p.lieferplz, p.lieferadresszusatz, p.lieferansprechpartner, p.packstation_inhaber, p.packstation_station, p.packstation_ident, p.packstation_plz, p.packstation_ort, p.autofreigabe, p.freigabe, p.nachbesserung, p.gesamtsumme, p.inbearbeitung, p.abgeschlossen, p.nachlieferung, p.lager_ok, p.porto_ok, p.ust_ok, p.check_ok, p.vorkasse_ok, p.nachnahme_ok, p.reserviert_ok, p.bestellt_ok, p.zeit_ok, p.versand_ok, p.partnerid, p.folgebestaetigung, p.zahlungsmail, p.stornogrund, p.stornosonstiges, p.stornorueckzahlung, p.stornobetrag, p.stornobankinhaber, p.stornobankkonto, p.stornobankblz, p.stornobankbank, p.stornogutschrift, p.stornogutschriftbeleg, p.stornowareerhalten, p.stornomanuellebearbeitung, p.stornokommentar, p.stornobezahlt, p.stornobezahltam, p.stornobezahltvon, p.stornoabgeschlossen, p.stornorueckzahlungper, p.stornowareerhaltenretour, p.partnerausgezahlt, p.partnerausgezahltam, p.kennen, p.logdatei, p.bezeichnung, p.datumproduktion, p.anschreiben, p.usereditid, p.useredittimestamp, p.steuersatz_normal, p.steuersatz_zwischen, p.steuersatz_ermaessigt, p.steuersatz_starkermaessigt, p.steuersatz_dienstleistung, p.waehrung, p.schreibschutz, p.pdfarchiviert, p.pdfarchiviertversion, p.typ, p.reservierart, p.auslagerart, p.projektfiliale, p.datumauslieferung, p.datumbereitstellung, p.unterlistenexplodieren, p.charge, p.arbeitsschrittetextanzeigen, p.einlagern_ok, p.auslagern_ok, p.mhd, p.auftragmengenanpassen, p.internebezeichnung, p.mengeoriginal, p.teilproduktionvon, p.teilproduktionnummer, p.parent, p.parentnummer, p.bearbeiterid, p.mengeausschuss, p.mengeerfolgreich, p.abschlussbemerkung, p.auftragid, p.funktionstest, p.seriennummer_erstellen, p.unterseriennummern_erfassen, p.datumproduktionende, p.standardlager, p.id FROM produktion p"." WHERE id=$id"; - - $result = $this->app->DB->SelectArr($sql); + $sql = "SELECT SQL_CALC_FOUND_ROWS + p.id, + (SELECT pp.bezeichnung FROM produktion_position pp WHERE pp.produktion = p.id AND pp.stuecklistestufe = 1 LIMIT 1) as artikelname, + p.datum, + p.art, + p.projekt, + p.belegnr, + p.internet, + p.bearbeiter, + p.angebot, + p.freitext, + p.internebemerkung, + p.status, + p.adresse, + p.name, + p.abteilung, + p.unterabteilung, + p.strasse, + p.adresszusatz, + p.ansprechpartner, + p.plz, + p.ort, + p.land, + p.ustid, + p.ust_befreit, + p.ust_inner, + p.email, + p.telefon, + p.telefax, + p.betreff, + p.kundennummer, + p.versandart, + p.vertrieb, + p.zahlungsweise, + p.zahlungszieltage, + p.zahlungszieltageskonto, + p.zahlungszielskonto, + p.bank_inhaber, + p.bank_institut, + p.bank_blz, + p.bank_konto, + p.kreditkarte_typ, + p.kreditkarte_inhaber, + p.kreditkarte_nummer, + p.kreditkarte_pruefnummer, + p.kreditkarte_monat, + p.kreditkarte_jahr, + p.firma, + p.versendet, + p.versendet_am, + p.versendet_per, + p.versendet_durch, + p.autoversand, + p.keinporto, + p.keinestornomail, + p.abweichendelieferadresse, + p.liefername, + p.lieferabteilung, + p.lieferunterabteilung, + p.lieferland, + p.lieferstrasse, + p.lieferort, + p.lieferplz, + p.lieferadresszusatz, + p.lieferansprechpartner, + p.packstation_inhaber, + p.packstation_station, + p.packstation_ident, + p.packstation_plz, + p.packstation_ort, + p.autofreigabe, + p.freigabe, + p.nachbesserung, + p.gesamtsumme, + p.inbearbeitung, + p.abgeschlossen, + p.nachlieferung, + p.lager_ok, + p.porto_ok, + p.ust_ok, + p.check_ok, + p.vorkasse_ok, + p.nachnahme_ok, + p.reserviert_ok, + p.bestellt_ok, + p.zeit_ok, + p.versand_ok, + p.partnerid, + p.folgebestaetigung, + p.zahlungsmail, + p.stornogrund, + p.stornosonstiges, + p.stornorueckzahlung, + p.stornobetrag, + p.stornobankinhaber, + p.stornobankkonto, + p.stornobankblz, + p.stornobankbank, + p.stornogutschrift, + p.stornogutschriftbeleg, + p.stornowareerhalten, + p.stornomanuellebearbeitung, + p.stornokommentar, + p.stornobezahlt, + p.stornobezahltam, + p.stornobezahltvon, + p.stornoabgeschlossen, + p.stornorueckzahlungper, + p.stornowareerhaltenretour, + p.partnerausgezahlt, + p.partnerausgezahltam, + p.kennen, + p.logdatei, + p.bezeichnung, + p.datumproduktion, + p.anschreiben, + p.usereditid, + p.useredittimestamp, + p.steuersatz_normal, + p.steuersatz_zwischen, + p.steuersatz_ermaessigt, + p.steuersatz_starkermaessigt, + p.steuersatz_dienstleistung, + p.waehrung, + p.schreibschutz, + p.pdfarchiviert, + p.pdfarchiviertversion, + p.typ, + p.reservierart, + p.auslagerart, + p.projektfiliale, + p.datumauslieferung, + p.datumbereitstellung, + p.unterlistenexplodieren, + p.charge, + p.arbeitsschrittetextanzeigen, + p.einlagern_ok, + p.auslagern_ok, + p.mhd, + p.auftragmengenanpassen, + p.internebezeichnung, + p.mengeoriginal, + p.teilproduktionvon, + p.teilproduktionnummer, + p.parent, + p.parentnummer, + p.bearbeiterid, + p.mengeausschuss, + p.mengeerfolgreich, + p.abschlussbemerkung, + p.auftragid, + p.funktionstest, + p.seriennummer_erstellen, + p.unterseriennummern_erfassen, + p.datumproduktionende, + p.standardlager, + p.id FROM produktion p"." WHERE id=$id"; - foreach ($result[0] as $key => $value) { - $this->app->Tpl->Set(strtoupper($key), $value); + $produktion_from_db = $this->app->DB->SelectArr($sql)[0]; + + foreach ($produktion_from_db as $key => $value) { + $this->app->Tpl->Set(strtoupper($key), $value); } /* * Add displayed items later - * + */ - $this->app->Tpl->Add('KURZUEBERSCHRIFT2', $email); - $this->app->Tpl->Add('EMAIL', $email); - $this->app->Tpl->Add('ANGEZEIGTERNAME', $angezeigtername); - */ + $this->StatusBerechnen((int)$id); -// $this->SetInput($input); + $sql = "SELECT " . $this->app->YUI->IconsSQL_produktion('p') . " AS `icons` FROM produktion p WHERE id=$id"; + $icons = $this->app->DB->SelectArr($sql); + $this->app->Tpl->Add('STATUSICONS', $icons[0]['icons']); + + if ($produktion_from_db['teilproduktionvon'] != 0) { + $sql = "SELECT belegnr FROM produktion WHERE id = ".$produktion_from_db['teilproduktionvon']; + $hauptproduktion_belegnr = $this->app->DB->SelectArr($sql)[0]['belegnr']; + $this->app->Tpl->Set('TEILPRODUKTIONINFO',"Teilproduktion von ".$hauptproduktion_belegnr); + } + + $sql = "SELECT belegnr FROM produktion WHERE teilproduktionvon = $id"; + $teilproduktionen = $this->app->DB->SelectArr($sql); + + if (!empty($teilproduktionen)) { + $this->app->Tpl->Set('TEILPRODUKTIONINFO',"Zu dieser Produktion gehören die Teilproduktionen: ".implode(', ',array_column($teilproduktionen,'belegnr'))); + } + + if($produktion_from_db['standardlager'] == 0) { + $msg .= "
Kein Materiallager ausgewählt.
"; + } + + $this->app->Tpl->Set('PROJEKT',$this->app->erp->ReplaceProjekt(false,$produktion_from_db['projekt'],false)); + + $this->app->YUI->AutoComplete("projekt", "projektname", 1); + $this->app->YUI->AutoComplete("kundennummer", "kunde", 1); + $this->app->YUI->AutoComplete("auftragid", "auftrag", 1); + + $this->app->YUI->AutoComplete("artikel_planen", "stuecklistenartikel"); + $this->app->YUI->AutoComplete("artikel_hinzu", "artikelnummer"); + + $this->app->YUI->AutoComplete("standardlager", "lagerplatz"); + $this->app->YUI->AutoComplete("ziellager", "lagerplatz"); + + $this->app->YUI->AutoComplete("artikel", "artikelnummer"); + + $this->app->Tpl->Set('STANDARDLAGER', $this->app->erp->ReplaceLagerPlatz(false,$produktion_from_db['standardlager'],false)); // Convert ID to form display + + $this->app->YUI->DatePicker("datum"); + $this->app->Tpl->Set('DATUM',$this->app->erp->ReplaceDatum(false,$produktion_from_db['datum'],true)); + + $this->app->YUI->DatePicker("datumauslieferung"); + $this->app->Tpl->Set('DATUMAUSLIEFERUNG',$this->app->erp->ReplaceDatum(false,$produktion_from_db['datumauslieferung'],false)); + + $this->app->YUI->DatePicker("datumbereitstellung"); + $this->app->Tpl->Set('DATUMBEREITSTELLUNG',$this->app->erp->ReplaceDatum(false,$produktion_from_db['datumbereitstellung'],false)); + + $this->app->YUI->DatePicker("datumproduktion"); + $this->app->Tpl->Set('DATUMPRODUKTION',$this->app->erp->ReplaceDatum(false,$produktion_from_db['datumproduktion'],false)); + + $this->app->YUI->DatePicker("datumproduktionende"); + $this->app->Tpl->Set('DATUMPRODUKTIONENDE',$this->app->erp->ReplaceDatum(false,$produktion_from_db['datumproduktionende'],false)); + + $this->app->YUI->CkEditor("freitext","internal", null, 'JQUERY'); + $this->app->YUI->CkEditor("internebemerkung","internal", null, 'JQUERY'); + + /* + UI Elements + + AKTION_SPEICHERN_DISABLED + AKTION_PLANEN_VISIBLE + AKTION_FREIGEBEN_VISIBLE + AKTION_RESERVIEREN_VISIBLE + AKTION_PRODUZIEREN_VISIBLE + AKTION_ABSCHLIESSEN_VISIBLE + POSITIONEN_TAB_VISIBLE + */ + + // Reparse positions + $sql = "SELECT id,artikel, menge, geliefert_menge FROM produktion_position pp WHERE produktion=$id AND stuecklistestufe=1"; + $produktionsartikel_position = $this->app->DB->SelectArr($sql)[0]; + + // Not planned + if (empty($produktionsartikel_position)) { + + $this->app->Tpl->Set('AKTION_FREIGEBEN_VISIBLE','hidden'); + $this->app->Tpl->Set('ARTIKEL_MENGE_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_PRODUZIEREN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_LEEREN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_RESERVIEREN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_TEILEN_VISIBLE','hidden'); + } else { + // Planned + + $fortschritt = $this->MengeFortschritt((int) $id, 0); + + if (!empty($fortschritt)) { + $this->app->Tpl->Set('MENGE_GEPLANT',$this->FormatMenge($fortschritt['geplant'])); + $this->app->Tpl->Set('MENGE_PRODUZIERT',$this->FormatMenge($fortschritt['produziert'])); + $this->app->Tpl->Set('MENGE_OFFEN',$this->FormatMenge($fortschritt['offen'])); + $this->app->Tpl->Set('MENGE_RESERVIERT',$this->FormatMenge($fortschritt['reserviert'])); + $this->app->Tpl->Set('MENGE_PRODUZIERBAR',$this->FormatMenge($fortschritt['produzierbar'])); + $this->app->Tpl->Set('MENGE_ERFOLGREICH',$this->FormatMenge($fortschritt['erfolgreich'])); + $this->app->Tpl->Set('MENGE_AUSSCHUSS',$this->FormatMenge($fortschritt['ausschuss'])); + } + + if ($fortschritt['produziert'] > $fortschritt['geplant']) { + $msg .= "
Planmenge überschritten.
"; + } + + $this->app->Tpl->Set('AKTION_PLANEN_VISIBLE','hidden'); + $this->app->YUI->TableSearch('PRODUKTION_POSITION_SOURCE_POSITION_TABELLE', 'produktion_position_source_list', "show", "", "", basename(__FILE__), __CLASS__); + $this->app->YUI->TableSearch('PRODUKTION_POSITION_SOURCE_TABELLE', 'produktion_source_list', "show", "", "", basename(__FILE__), __CLASS__); + $produktionsartikel_id = $produktionsartikel_position['artikel']; + + $sql = "SELECT name_de,nummer FROM artikel WHERE id=".$produktionsartikel_id; + $produktionsartikel = $this->app->DB->SelectArr($sql)[0]; + $produktionsartikel_name = $produktionsartikel['name_de']; + $produktionsartikel_nummer = $produktionsartikel['nummer']; + } + + if (empty($produktion_from_db['belegnr'])) { + $this->app->Tpl->SetText('KURZUEBERSCHRIFT2', 'ENTWURF - '.$produktionsartikel_name." (".$produktionsartikel_nummer.")"); + } else { + $this->app->Tpl->SetText('KURZUEBERSCHRIFT2', $produktion_from_db['belegnr']." ".$produktionsartikel_name." (".$produktionsartikel_nummer.")"); + } + + $this->app->Tpl->SetText('ARTIKELNAME', $produktionsartikel_name); + + // Action menu + switch ($produktion_from_db['status']) { + case 'angelegt': + $this->app->Tpl->Set('AKTION_RESERVIEREN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_PRODUZIEREN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_ABSCHLIESSEN_VISIBLE','hidden'); + break; + case 'freigegeben': + $this->app->Tpl->Set('AKTION_FREIGEBEN_VISIBLE','hidden'); + break; + case 'gestartet': + $this->app->Tpl->Set('AKTION_FREIGEBEN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_PLANEN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_LEEREN_VISIBLE','hidden'); + break; + case 'abgeschlossen': + case 'storniert': + $this->app->Tpl->Set('AKTION_SPEICHERN_DISABLED','disabled'); + $this->app->Tpl->Set('AKTION_PLANEN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_FREIGEBEN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_RESERVIEREN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_PRODUZIEREN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_TEILEN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_ABSCHLIESSEN_VISIBLE','hidden'); + $this->app->Tpl->Set('AKTION_LEEREN_VISIBLE','hidden'); + break; + default: // new item + $this->app->Tpl->Set('POSITIONEN_TAB_VISIBLE','hidden="hidden"'); + break; + } + + $this->app->Tpl->Set('PRODUKTION_ID',$id); + + $this->app->Tpl->Set('MESSAGE', $msg); + $this->produktion_minidetail('MINIDETAILINEDIT'); $this->app->Tpl->Parse('PAGE', "produktion_edit.tpl"); + } + /* + Create a copy as draft + */ + + function produktion_copy() { + $id = (int) $this->app->Secure->GetGET('id'); + if (empty($id)) { + return; + } + $result = $this->Copy($id,0); + if ($result <= 0) { + $msg .= "
Fehler beim Anlegen der Kopie.
"; + $this->app->Tpl->Set('MESSAGE', $msg); + $this->produktion_list(); + } + else { + $msg .= "
Kopie angelegt. $result new $id old
"; + $this->app->Tpl->Set('MESSAGE', $msg); + $this->produktion_edit((int) $result); + } + } + + public function produktion_minidetail($parsetarget='',$menu=true) { + + $id = $this->app->Secure->GetGET('id'); + + $fortschritt = $this->MengeFortschritt((int) $id, 0); + + if (!empty($fortschritt)) { + $this->app->Tpl->Set('MINI_MENGE_GEPLANT',$this->FormatMenge($fortschritt['geplant'])); + $this->app->Tpl->Set('MINI_MENGE_PRODUZIERT',$this->FormatMenge($fortschritt['produziert'])); + $this->app->Tpl->Set('MINI_MENGE_OFFEN',$this->FormatMenge($fortschritt['offen'])); + $this->app->Tpl->Set('MINI_MENGE_RESERVIERT',$this->FormatMenge($fortschritt['reserviert'])); + $this->app->Tpl->Set('MINI_MENGE_PRODUZIERBAR',$this->FormatMenge($fortschritt['produzierbar'])); + $this->app->Tpl->Set('MINI_MENGEERFOLGREICH',$this->FormatMenge($fortschritt['erfolgreich'])); + $this->app->Tpl->Set('MINI_MENGEAUSSCHUSS',$this->FormatMenge($fortschritt['ausschuss'])); + } + + $this->ProtokollTabelleErzeugen($id, 'PROTOKOLL'); + + if($parsetarget=='') + { + $this->app->Tpl->Output('produktion_minidetail.tpl'); + $this->app->ExitXentral(); + } + + $this->app->Tpl->Parse($parsetarget,'produktion_minidetail.tpl'); + } + + /** * Get all paramters from html form and save into $input */ public function GetInput(): array { $input = array(); - //$input['EMAIL'] = $this->app->Secure->GetPOST('email'); - + + $input['kundennummer'] = $this->app->Secure->GetPOST('kundennummer'); + $input['projekt'] = $this->app->Secure->GetPOST('projekt'); + $input['auftragid'] = $this->app->Secure->GetPOST('auftragid'); + $input['internebezeichnung'] = $this->app->Secure->GetPOST('internebezeichnung'); + $input['datum'] = $this->app->Secure->GetPOST('datum'); - $input['art'] = $this->app->Secure->GetPOST('art'); - $input['projekt'] = $this->app->Secure->GetPOST('projekt'); - $input['belegnr'] = $this->app->Secure->GetPOST('belegnr'); - $input['internet'] = $this->app->Secure->GetPOST('internet'); - $input['bearbeiter'] = $this->app->Secure->GetPOST('bearbeiter'); - $input['angebot'] = $this->app->Secure->GetPOST('angebot'); - $input['freitext'] = $this->app->Secure->GetPOST('freitext'); - $input['internebemerkung'] = $this->app->Secure->GetPOST('internebemerkung'); - $input['status'] = $this->app->Secure->GetPOST('status'); - $input['adresse'] = $this->app->Secure->GetPOST('adresse'); - $input['name'] = $this->app->Secure->GetPOST('name'); - $input['abteilung'] = $this->app->Secure->GetPOST('abteilung'); - $input['unterabteilung'] = $this->app->Secure->GetPOST('unterabteilung'); - $input['strasse'] = $this->app->Secure->GetPOST('strasse'); - $input['adresszusatz'] = $this->app->Secure->GetPOST('adresszusatz'); - $input['ansprechpartner'] = $this->app->Secure->GetPOST('ansprechpartner'); - $input['plz'] = $this->app->Secure->GetPOST('plz'); - $input['ort'] = $this->app->Secure->GetPOST('ort'); - $input['land'] = $this->app->Secure->GetPOST('land'); - $input['ustid'] = $this->app->Secure->GetPOST('ustid'); - $input['ust_befreit'] = $this->app->Secure->GetPOST('ust_befreit'); - $input['ust_inner'] = $this->app->Secure->GetPOST('ust_inner'); - $input['email'] = $this->app->Secure->GetPOST('email'); - $input['telefon'] = $this->app->Secure->GetPOST('telefon'); - $input['telefax'] = $this->app->Secure->GetPOST('telefax'); - $input['betreff'] = $this->app->Secure->GetPOST('betreff'); - $input['kundennummer'] = $this->app->Secure->GetPOST('kundennummer'); - $input['versandart'] = $this->app->Secure->GetPOST('versandart'); - $input['vertrieb'] = $this->app->Secure->GetPOST('vertrieb'); - $input['zahlungsweise'] = $this->app->Secure->GetPOST('zahlungsweise'); - $input['zahlungszieltage'] = $this->app->Secure->GetPOST('zahlungszieltage'); - $input['zahlungszieltageskonto'] = $this->app->Secure->GetPOST('zahlungszieltageskonto'); - $input['zahlungszielskonto'] = $this->app->Secure->GetPOST('zahlungszielskonto'); - $input['bank_inhaber'] = $this->app->Secure->GetPOST('bank_inhaber'); - $input['bank_institut'] = $this->app->Secure->GetPOST('bank_institut'); - $input['bank_blz'] = $this->app->Secure->GetPOST('bank_blz'); - $input['bank_konto'] = $this->app->Secure->GetPOST('bank_konto'); - $input['kreditkarte_typ'] = $this->app->Secure->GetPOST('kreditkarte_typ'); - $input['kreditkarte_inhaber'] = $this->app->Secure->GetPOST('kreditkarte_inhaber'); - $input['kreditkarte_nummer'] = $this->app->Secure->GetPOST('kreditkarte_nummer'); - $input['kreditkarte_pruefnummer'] = $this->app->Secure->GetPOST('kreditkarte_pruefnummer'); - $input['kreditkarte_monat'] = $this->app->Secure->GetPOST('kreditkarte_monat'); - $input['kreditkarte_jahr'] = $this->app->Secure->GetPOST('kreditkarte_jahr'); - $input['firma'] = $this->app->Secure->GetPOST('firma'); - $input['versendet'] = $this->app->Secure->GetPOST('versendet'); - $input['versendet_am'] = $this->app->Secure->GetPOST('versendet_am'); - $input['versendet_per'] = $this->app->Secure->GetPOST('versendet_per'); - $input['versendet_durch'] = $this->app->Secure->GetPOST('versendet_durch'); - $input['autoversand'] = $this->app->Secure->GetPOST('autoversand'); - $input['keinporto'] = $this->app->Secure->GetPOST('keinporto'); - $input['keinestornomail'] = $this->app->Secure->GetPOST('keinestornomail'); - $input['abweichendelieferadresse'] = $this->app->Secure->GetPOST('abweichendelieferadresse'); - $input['liefername'] = $this->app->Secure->GetPOST('liefername'); - $input['lieferabteilung'] = $this->app->Secure->GetPOST('lieferabteilung'); - $input['lieferunterabteilung'] = $this->app->Secure->GetPOST('lieferunterabteilung'); - $input['lieferland'] = $this->app->Secure->GetPOST('lieferland'); - $input['lieferstrasse'] = $this->app->Secure->GetPOST('lieferstrasse'); - $input['lieferort'] = $this->app->Secure->GetPOST('lieferort'); - $input['lieferplz'] = $this->app->Secure->GetPOST('lieferplz'); - $input['lieferadresszusatz'] = $this->app->Secure->GetPOST('lieferadresszusatz'); - $input['lieferansprechpartner'] = $this->app->Secure->GetPOST('lieferansprechpartner'); - $input['packstation_inhaber'] = $this->app->Secure->GetPOST('packstation_inhaber'); - $input['packstation_station'] = $this->app->Secure->GetPOST('packstation_station'); - $input['packstation_ident'] = $this->app->Secure->GetPOST('packstation_ident'); - $input['packstation_plz'] = $this->app->Secure->GetPOST('packstation_plz'); - $input['packstation_ort'] = $this->app->Secure->GetPOST('packstation_ort'); - $input['autofreigabe'] = $this->app->Secure->GetPOST('autofreigabe'); - $input['freigabe'] = $this->app->Secure->GetPOST('freigabe'); - $input['nachbesserung'] = $this->app->Secure->GetPOST('nachbesserung'); - $input['gesamtsumme'] = $this->app->Secure->GetPOST('gesamtsumme'); - $input['inbearbeitung'] = $this->app->Secure->GetPOST('inbearbeitung'); - $input['abgeschlossen'] = $this->app->Secure->GetPOST('abgeschlossen'); - $input['nachlieferung'] = $this->app->Secure->GetPOST('nachlieferung'); - $input['lager_ok'] = $this->app->Secure->GetPOST('lager_ok'); - $input['porto_ok'] = $this->app->Secure->GetPOST('porto_ok'); - $input['ust_ok'] = $this->app->Secure->GetPOST('ust_ok'); - $input['check_ok'] = $this->app->Secure->GetPOST('check_ok'); - $input['vorkasse_ok'] = $this->app->Secure->GetPOST('vorkasse_ok'); - $input['nachnahme_ok'] = $this->app->Secure->GetPOST('nachnahme_ok'); - $input['reserviert_ok'] = $this->app->Secure->GetPOST('reserviert_ok'); - $input['bestellt_ok'] = $this->app->Secure->GetPOST('bestellt_ok'); - $input['zeit_ok'] = $this->app->Secure->GetPOST('zeit_ok'); - $input['versand_ok'] = $this->app->Secure->GetPOST('versand_ok'); - $input['partnerid'] = $this->app->Secure->GetPOST('partnerid'); - $input['folgebestaetigung'] = $this->app->Secure->GetPOST('folgebestaetigung'); - $input['zahlungsmail'] = $this->app->Secure->GetPOST('zahlungsmail'); - $input['stornogrund'] = $this->app->Secure->GetPOST('stornogrund'); - $input['stornosonstiges'] = $this->app->Secure->GetPOST('stornosonstiges'); - $input['stornorueckzahlung'] = $this->app->Secure->GetPOST('stornorueckzahlung'); - $input['stornobetrag'] = $this->app->Secure->GetPOST('stornobetrag'); - $input['stornobankinhaber'] = $this->app->Secure->GetPOST('stornobankinhaber'); - $input['stornobankkonto'] = $this->app->Secure->GetPOST('stornobankkonto'); - $input['stornobankblz'] = $this->app->Secure->GetPOST('stornobankblz'); - $input['stornobankbank'] = $this->app->Secure->GetPOST('stornobankbank'); - $input['stornogutschrift'] = $this->app->Secure->GetPOST('stornogutschrift'); - $input['stornogutschriftbeleg'] = $this->app->Secure->GetPOST('stornogutschriftbeleg'); - $input['stornowareerhalten'] = $this->app->Secure->GetPOST('stornowareerhalten'); - $input['stornomanuellebearbeitung'] = $this->app->Secure->GetPOST('stornomanuellebearbeitung'); - $input['stornokommentar'] = $this->app->Secure->GetPOST('stornokommentar'); - $input['stornobezahlt'] = $this->app->Secure->GetPOST('stornobezahlt'); - $input['stornobezahltam'] = $this->app->Secure->GetPOST('stornobezahltam'); - $input['stornobezahltvon'] = $this->app->Secure->GetPOST('stornobezahltvon'); - $input['stornoabgeschlossen'] = $this->app->Secure->GetPOST('stornoabgeschlossen'); - $input['stornorueckzahlungper'] = $this->app->Secure->GetPOST('stornorueckzahlungper'); - $input['stornowareerhaltenretour'] = $this->app->Secure->GetPOST('stornowareerhaltenretour'); - $input['partnerausgezahlt'] = $this->app->Secure->GetPOST('partnerausgezahlt'); - $input['partnerausgezahltam'] = $this->app->Secure->GetPOST('partnerausgezahltam'); - $input['kennen'] = $this->app->Secure->GetPOST('kennen'); - $input['logdatei'] = $this->app->Secure->GetPOST('logdatei'); - $input['bezeichnung'] = $this->app->Secure->GetPOST('bezeichnung'); - $input['datumproduktion'] = $this->app->Secure->GetPOST('datumproduktion'); - $input['anschreiben'] = $this->app->Secure->GetPOST('anschreiben'); - $input['usereditid'] = $this->app->Secure->GetPOST('usereditid'); - $input['useredittimestamp'] = $this->app->Secure->GetPOST('useredittimestamp'); - $input['steuersatz_normal'] = $this->app->Secure->GetPOST('steuersatz_normal'); - $input['steuersatz_zwischen'] = $this->app->Secure->GetPOST('steuersatz_zwischen'); - $input['steuersatz_ermaessigt'] = $this->app->Secure->GetPOST('steuersatz_ermaessigt'); - $input['steuersatz_starkermaessigt'] = $this->app->Secure->GetPOST('steuersatz_starkermaessigt'); - $input['steuersatz_dienstleistung'] = $this->app->Secure->GetPOST('steuersatz_dienstleistung'); - $input['waehrung'] = $this->app->Secure->GetPOST('waehrung'); - $input['schreibschutz'] = $this->app->Secure->GetPOST('schreibschutz'); - $input['pdfarchiviert'] = $this->app->Secure->GetPOST('pdfarchiviert'); - $input['pdfarchiviertversion'] = $this->app->Secure->GetPOST('pdfarchiviertversion'); - $input['typ'] = $this->app->Secure->GetPOST('typ'); - $input['reservierart'] = $this->app->Secure->GetPOST('reservierart'); - $input['auslagerart'] = $this->app->Secure->GetPOST('auslagerart'); - $input['projektfiliale'] = $this->app->Secure->GetPOST('projektfiliale'); - $input['datumauslieferung'] = $this->app->Secure->GetPOST('datumauslieferung'); - $input['datumbereitstellung'] = $this->app->Secure->GetPOST('datumbereitstellung'); - $input['unterlistenexplodieren'] = $this->app->Secure->GetPOST('unterlistenexplodieren'); - $input['charge'] = $this->app->Secure->GetPOST('charge'); - $input['arbeitsschrittetextanzeigen'] = $this->app->Secure->GetPOST('arbeitsschrittetextanzeigen'); - $input['einlagern_ok'] = $this->app->Secure->GetPOST('einlagern_ok'); - $input['auslagern_ok'] = $this->app->Secure->GetPOST('auslagern_ok'); - $input['mhd'] = $this->app->Secure->GetPOST('mhd'); - $input['auftragmengenanpassen'] = $this->app->Secure->GetPOST('auftragmengenanpassen'); - $input['internebezeichnung'] = $this->app->Secure->GetPOST('internebezeichnung'); - $input['mengeoriginal'] = $this->app->Secure->GetPOST('mengeoriginal'); - $input['teilproduktionvon'] = $this->app->Secure->GetPOST('teilproduktionvon'); - $input['teilproduktionnummer'] = $this->app->Secure->GetPOST('teilproduktionnummer'); - $input['parent'] = $this->app->Secure->GetPOST('parent'); - $input['parentnummer'] = $this->app->Secure->GetPOST('parentnummer'); - $input['bearbeiterid'] = $this->app->Secure->GetPOST('bearbeiterid'); - $input['mengeausschuss'] = $this->app->Secure->GetPOST('mengeausschuss'); - $input['mengeerfolgreich'] = $this->app->Secure->GetPOST('mengeerfolgreich'); - $input['abschlussbemerkung'] = $this->app->Secure->GetPOST('abschlussbemerkung'); - $input['auftragid'] = $this->app->Secure->GetPOST('auftragid'); - $input['funktionstest'] = $this->app->Secure->GetPOST('funktionstest'); - $input['seriennummer_erstellen'] = $this->app->Secure->GetPOST('seriennummer_erstellen'); - $input['unterseriennummern_erfassen'] = $this->app->Secure->GetPOST('unterseriennummern_erfassen'); - $input['datumproduktionende'] = $this->app->Secure->GetPOST('datumproduktionende'); - $input['standardlager'] = $this->app->Secure->GetPOST('standardlager'); - + $input['standardlager'] = $this->app->Secure->GetPOST('standardlager'); + $input['standardlager'] = $this->app->erp->ReplaceLagerPlatz(true,$input['standardlager'],true); // Parameters: Target db?, value, from form? + + $input['reservierart'] = $this->app->Secure->GetPOST('reservierart'); + $input['auslagerart'] = $this->app->Secure->GetPOST('auslagerart'); + $input['unterlistenexplodieren'] = $this->app->Secure->GetPOST('unterlistenexplodieren'); + $input['funktionstest'] = $this->app->Secure->GetPOST('funktionstest'); + $input['arbeitsschrittetextanzeigen'] = $this->app->Secure->GetPOST('arbeitsschrittetextanzeigen'); + $input['seriennummer_erstellen'] = $this->app->Secure->GetPOST('seriennummer_erstellen'); + + $input['datumauslieferung'] = $this->app->Secure->GetPOST('datumauslieferung'); + $input['datumbereitstellung'] = $this->app->Secure->GetPOST('datumbereitstellung'); + $input['datumproduktion'] = $this->app->Secure->GetPOST('datumproduktion'); + $input['datumproduktionende'] = $this->app->Secure->GetPOST('datumproduktionende'); + + $input['freitext'] = $this->app->Secure->GetPOST('freitext'); + $input['internebemerkung'] = $this->app->Secure->GetPOST('internebemerkung'); return $input; } + // Check stock situation and reservation + // Return possible production quantity for all stock or just the reserved + function LagerCheckProduktion(int $produktion_id, int $lager, bool $only_reservations) : int { + + $menge_moeglich = PHP_INT_MAX; + + $sql = "SELECT pp.id, artikel, SUM(menge) as menge, geliefert_menge FROM produktion_position pp INNER JOIN artikel a ON pp.artikel = a.id WHERE pp.produktion=$produktion_id AND pp.stuecklistestufe=0 AND a.lagerartikel != 0 GROUP BY artikel"; + $materialbedarf_gesamt = $this->app->DB->SelectArr($sql); + + $sql = "SELECT id, artikel, SUM(menge) as menge, geliefert_menge as geliefert_menge FROM produktion_position pp WHERE produktion=$produktion_id AND stuecklistestufe=1 GROUP BY artikel"; + $result = $this->app->DB->SelectArr($sql)[0]; + $menge_plan_gesamt = $result['menge']; + + if ($menge_plan_gesamt == 0) { + return(0); + } + + $sql = "SELECT SUM(mengeerfolgreich) as menge FROM produktion WHERE id=$produktion_id"; + $result = $this->app->DB->SelectArr($sql)[0]; + $menge_geliefert_gesamt = $result['menge']; + + foreach ($materialbedarf_gesamt as $materialbedarf_artikel) { + + $artikel = $materialbedarf_artikel['artikel']; + $position = $materialbedarf_artikel['id']; + $menge_plan_artikel = $materialbedarf_artikel['menge']; + $menge_geliefert = $materialbedarf_artikel['menge_geliefert']; + + $sql = "SELECT SUM(menge) as menge FROM lager_reserviert r WHERE lager_platz=$lager AND artikel = $artikel AND r.objekt = 'produktion' AND r.parameter = $produktion_id"; + $menge_reserviert_diese = $this->app->DB->SelectArr($sql)[0]['menge']; + + if ($only_reservations) { + $menge_verfuegbar = $menge_reserviert_diese; + } else { + $sql = "SELECT SUM(menge) as menge FROM lager_platz_inhalt WHERE lager_platz=$lager AND artikel = $artikel"; + $menge_lager = $this->app->DB->SelectArr($sql)[0]['menge']; + + $sql = "SELECT SUM(menge) as menge FROM lager_reserviert r WHERE lager_platz=$lager AND artikel = $artikel"; + $menge_reserviert_lager = $this->app->DB->SelectArr($sql)[0]['menge']; + + $sql = "SELECT SUM(menge) as menge FROM lager_reserviert r WHERE artikel = $artikel"; + $menge_reserviert_gesamt = $this->app->DB->SelectArr($sql)[0]['menge']; + + $menge_verfuegbar = $menge_lager-$menge_reserviert_lager+$menge_reserviert_diese; + } + + $menge_moeglich_artikel = round($menge_verfuegbar / ($menge_plan_artikel/$menge_plan_gesamt), 0, PHP_ROUND_HALF_DOWN); + + if ($menge_moeglich_artikel < $menge_moeglich) { + $menge_moeglich = $menge_moeglich_artikel; + } + +// echo("------------------------Lager $lager a $artikel menge_plan_artikel $menge_plan_artikel menge_geliefert $menge_geliefert menge_lager $menge_lager menge_reserviert_diese $menge_reserviert_diese menge_reserviert_gesamt $menge_reserviert_gesamt menge_verfuegbar $menge_verfuegbar menge_moeglich_artikel $menge_moeglich_artikel menge_moeglich $menge_moeglich
"); + + } + + if ($menge_moeglich < 0) { + $menge_moeglich = 0; + } + + + return($menge_moeglich); + } + + // Modify or add reservation + // If quantity is negative, the existing reservation will be reduced + // If current quantity is higher as menge_reservieren_limit, current quantity will be reduced + // Returns amount that is reserved + function ArtikelReservieren(int $artikel, $lager, int $menge_reservieren, int $menge_reservieren_limit, string $objekt, int $objekt_id, int $position_id, string $text) : int { + + if($lager <= 0 || $artikel <= 0 || $position_id <= 0) { + return 0; + } + + $sql = "SELECT menge FROM lager_reserviert WHERE objekt='$objekt' AND parameter = $objekt_id AND artikel = $artikel AND lager_platz = $lager AND posid = $position_id"; + $menge_reserviert_diese = $this->app->DB->SelectArr($sql)[0]['menge']; + if ($menge_reserviert_diese == null) { + $menge_reserviert_diese = 0; + } + + $sql = "SELECT menge FROM lager_reserviert WHERE artikel = $artikel AND lager_platz = $lager"; + $menge_reserviert_lager_platz = $this->app->DB->SelectArr($sql)[0]['menge']; + if ($menge_reserviert_lager_platz == null) { + $menge_reserviert_lager_platz = 0; + } + + $sql = "SELECT menge FROM lager_platz_inhalt WHERE artikel = $artikel AND lager_platz = $lager"; + $menge_lager = $this->app->DB->SelectArr($sql)[0]['menge']; + if ($menge_lager == null) { + $menge_lager = 0; + } + + if ($menge_reservieren < 0) { // Relative reduction + $menge_reservieren = $menge_reserviert_diese+$menge_reservieren; + + if ($menge_reservieren < 0) { + $menge_reservieren = 0; + } + } + + if (($menge_reservieren == 0) && ($menge_reservieren_limit <= 0)) { + $sql = "DELETE FROM lager_reserviert WHERE objekt = '$objekt' AND parameter = $objekt_id AND artikel = $artikel AND posid = $position_id"; + $this->app->DB->Update($sql); + return(0); + } + + $menge_lager_reservierbar = $menge_lager - $menge_reserviert_lager_platz + $menge_reserviert_diese; + + if ($menge_reservieren_limit > 0) { + if ($menge_reserviert_diese > $menge_reservieren_limit) { + $menge_reservieren = $menge_reservieren_limit; + } else { + // Nothing to do + return($menge_reserviert_diese); + } + } + + if ($menge_lager_reservierbar > 0) { + if ($menge_reserviert_diese > 0) { + // Modify given entry + if ($menge_reservieren > $menge_lager_reservierbar) { + $menge_reservieren = $menge_lager_reservierbar; // Take all that is there + } + $sql = "UPDATE lager_reserviert SET menge = $menge_reservieren WHERE objekt = '$objekt' AND parameter = $objekt_id AND artikel = $artikel AND posid = $position_id"; + $this->app->DB->Update($sql); + } else { + // Create new entry + if ($menge_reservieren > $menge_lager_reservierbar) { + $menge_reservieren = $menge_lager_reservierbar; // Take all that is there + } + $sql = "INSERT INTO lager_reserviert (menge,objekt,parameter,artikel,posid,lager_platz,grund) VALUES (". + $menge_reservieren.",". + "'$objekt',". + $objekt_id.",". + $artikel.",". + $position_id.",". + $lager.",". + "'$text'". + ")"; + $this->app->DB->Update($sql); + } + } else { + $menge_reservieren = 0; + } + + return ($menge_reservieren); + + } + + /* - * Set all fields in the page corresponding to $input - */ - function SetInput($input) { - // $this->app->Tpl->Set('EMAIL', $input['email']); - - $this->app->Tpl->Set('DATUM', $input['datum']); - $this->app->Tpl->Set('ART', $input['art']); - $this->app->Tpl->Set('PROJEKT', $input['projekt']); - $this->app->Tpl->Set('BELEGNR', $input['belegnr']); - $this->app->Tpl->Set('INTERNET', $input['internet']); - $this->app->Tpl->Set('BEARBEITER', $input['bearbeiter']); - $this->app->Tpl->Set('ANGEBOT', $input['angebot']); - $this->app->Tpl->Set('FREITEXT', $input['freitext']); - $this->app->Tpl->Set('INTERNEBEMERKUNG', $input['internebemerkung']); - $this->app->Tpl->Set('STATUS', $input['status']); - $this->app->Tpl->Set('ADRESSE', $input['adresse']); - $this->app->Tpl->Set('NAME', $input['name']); - $this->app->Tpl->Set('ABTEILUNG', $input['abteilung']); - $this->app->Tpl->Set('UNTERABTEILUNG', $input['unterabteilung']); - $this->app->Tpl->Set('STRASSE', $input['strasse']); - $this->app->Tpl->Set('ADRESSZUSATZ', $input['adresszusatz']); - $this->app->Tpl->Set('ANSPRECHPARTNER', $input['ansprechpartner']); - $this->app->Tpl->Set('PLZ', $input['plz']); - $this->app->Tpl->Set('ORT', $input['ort']); - $this->app->Tpl->Set('LAND', $input['land']); - $this->app->Tpl->Set('USTID', $input['ustid']); - $this->app->Tpl->Set('UST_BEFREIT', $input['ust_befreit']); - $this->app->Tpl->Set('UST_INNER', $input['ust_inner']); - $this->app->Tpl->Set('EMAIL', $input['email']); - $this->app->Tpl->Set('TELEFON', $input['telefon']); - $this->app->Tpl->Set('TELEFAX', $input['telefax']); - $this->app->Tpl->Set('BETREFF', $input['betreff']); - $this->app->Tpl->Set('KUNDENNUMMER', $input['kundennummer']); - $this->app->Tpl->Set('VERSANDART', $input['versandart']); - $this->app->Tpl->Set('VERTRIEB', $input['vertrieb']); - $this->app->Tpl->Set('ZAHLUNGSWEISE', $input['zahlungsweise']); - $this->app->Tpl->Set('ZAHLUNGSZIELTAGE', $input['zahlungszieltage']); - $this->app->Tpl->Set('ZAHLUNGSZIELTAGESKONTO', $input['zahlungszieltageskonto']); - $this->app->Tpl->Set('ZAHLUNGSZIELSKONTO', $input['zahlungszielskonto']); - $this->app->Tpl->Set('BANK_INHABER', $input['bank_inhaber']); - $this->app->Tpl->Set('BANK_INSTITUT', $input['bank_institut']); - $this->app->Tpl->Set('BANK_BLZ', $input['bank_blz']); - $this->app->Tpl->Set('BANK_KONTO', $input['bank_konto']); - $this->app->Tpl->Set('KREDITKARTE_TYP', $input['kreditkarte_typ']); - $this->app->Tpl->Set('KREDITKARTE_INHABER', $input['kreditkarte_inhaber']); - $this->app->Tpl->Set('KREDITKARTE_NUMMER', $input['kreditkarte_nummer']); - $this->app->Tpl->Set('KREDITKARTE_PRUEFNUMMER', $input['kreditkarte_pruefnummer']); - $this->app->Tpl->Set('KREDITKARTE_MONAT', $input['kreditkarte_monat']); - $this->app->Tpl->Set('KREDITKARTE_JAHR', $input['kreditkarte_jahr']); - $this->app->Tpl->Set('FIRMA', $input['firma']); - $this->app->Tpl->Set('VERSENDET', $input['versendet']); - $this->app->Tpl->Set('VERSENDET_AM', $input['versendet_am']); - $this->app->Tpl->Set('VERSENDET_PER', $input['versendet_per']); - $this->app->Tpl->Set('VERSENDET_DURCH', $input['versendet_durch']); - $this->app->Tpl->Set('AUTOVERSAND', $input['autoversand']); - $this->app->Tpl->Set('KEINPORTO', $input['keinporto']); - $this->app->Tpl->Set('KEINESTORNOMAIL', $input['keinestornomail']); - $this->app->Tpl->Set('ABWEICHENDELIEFERADRESSE', $input['abweichendelieferadresse']); - $this->app->Tpl->Set('LIEFERNAME', $input['liefername']); - $this->app->Tpl->Set('LIEFERABTEILUNG', $input['lieferabteilung']); - $this->app->Tpl->Set('LIEFERUNTERABTEILUNG', $input['lieferunterabteilung']); - $this->app->Tpl->Set('LIEFERLAND', $input['lieferland']); - $this->app->Tpl->Set('LIEFERSTRASSE', $input['lieferstrasse']); - $this->app->Tpl->Set('LIEFERORT', $input['lieferort']); - $this->app->Tpl->Set('LIEFERPLZ', $input['lieferplz']); - $this->app->Tpl->Set('LIEFERADRESSZUSATZ', $input['lieferadresszusatz']); - $this->app->Tpl->Set('LIEFERANSPRECHPARTNER', $input['lieferansprechpartner']); - $this->app->Tpl->Set('PACKSTATION_INHABER', $input['packstation_inhaber']); - $this->app->Tpl->Set('PACKSTATION_STATION', $input['packstation_station']); - $this->app->Tpl->Set('PACKSTATION_IDENT', $input['packstation_ident']); - $this->app->Tpl->Set('PACKSTATION_PLZ', $input['packstation_plz']); - $this->app->Tpl->Set('PACKSTATION_ORT', $input['packstation_ort']); - $this->app->Tpl->Set('AUTOFREIGABE', $input['autofreigabe']); - $this->app->Tpl->Set('FREIGABE', $input['freigabe']); - $this->app->Tpl->Set('NACHBESSERUNG', $input['nachbesserung']); - $this->app->Tpl->Set('GESAMTSUMME', $input['gesamtsumme']); - $this->app->Tpl->Set('INBEARBEITUNG', $input['inbearbeitung']); - $this->app->Tpl->Set('ABGESCHLOSSEN', $input['abgeschlossen']); - $this->app->Tpl->Set('NACHLIEFERUNG', $input['nachlieferung']); - $this->app->Tpl->Set('LAGER_OK', $input['lager_ok']); - $this->app->Tpl->Set('PORTO_OK', $input['porto_ok']); - $this->app->Tpl->Set('UST_OK', $input['ust_ok']); - $this->app->Tpl->Set('CHECK_OK', $input['check_ok']); - $this->app->Tpl->Set('VORKASSE_OK', $input['vorkasse_ok']); - $this->app->Tpl->Set('NACHNAHME_OK', $input['nachnahme_ok']); - $this->app->Tpl->Set('RESERVIERT_OK', $input['reserviert_ok']); - $this->app->Tpl->Set('BESTELLT_OK', $input['bestellt_ok']); - $this->app->Tpl->Set('ZEIT_OK', $input['zeit_ok']); - $this->app->Tpl->Set('VERSAND_OK', $input['versand_ok']); - $this->app->Tpl->Set('PARTNERID', $input['partnerid']); - $this->app->Tpl->Set('FOLGEBESTAETIGUNG', $input['folgebestaetigung']); - $this->app->Tpl->Set('ZAHLUNGSMAIL', $input['zahlungsmail']); - $this->app->Tpl->Set('STORNOGRUND', $input['stornogrund']); - $this->app->Tpl->Set('STORNOSONSTIGES', $input['stornosonstiges']); - $this->app->Tpl->Set('STORNORUECKZAHLUNG', $input['stornorueckzahlung']); - $this->app->Tpl->Set('STORNOBETRAG', $input['stornobetrag']); - $this->app->Tpl->Set('STORNOBANKINHABER', $input['stornobankinhaber']); - $this->app->Tpl->Set('STORNOBANKKONTO', $input['stornobankkonto']); - $this->app->Tpl->Set('STORNOBANKBLZ', $input['stornobankblz']); - $this->app->Tpl->Set('STORNOBANKBANK', $input['stornobankbank']); - $this->app->Tpl->Set('STORNOGUTSCHRIFT', $input['stornogutschrift']); - $this->app->Tpl->Set('STORNOGUTSCHRIFTBELEG', $input['stornogutschriftbeleg']); - $this->app->Tpl->Set('STORNOWAREERHALTEN', $input['stornowareerhalten']); - $this->app->Tpl->Set('STORNOMANUELLEBEARBEITUNG', $input['stornomanuellebearbeitung']); - $this->app->Tpl->Set('STORNOKOMMENTAR', $input['stornokommentar']); - $this->app->Tpl->Set('STORNOBEZAHLT', $input['stornobezahlt']); - $this->app->Tpl->Set('STORNOBEZAHLTAM', $input['stornobezahltam']); - $this->app->Tpl->Set('STORNOBEZAHLTVON', $input['stornobezahltvon']); - $this->app->Tpl->Set('STORNOABGESCHLOSSEN', $input['stornoabgeschlossen']); - $this->app->Tpl->Set('STORNORUECKZAHLUNGPER', $input['stornorueckzahlungper']); - $this->app->Tpl->Set('STORNOWAREERHALTENRETOUR', $input['stornowareerhaltenretour']); - $this->app->Tpl->Set('PARTNERAUSGEZAHLT', $input['partnerausgezahlt']); - $this->app->Tpl->Set('PARTNERAUSGEZAHLTAM', $input['partnerausgezahltam']); - $this->app->Tpl->Set('KENNEN', $input['kennen']); - $this->app->Tpl->Set('LOGDATEI', $input['logdatei']); - $this->app->Tpl->Set('BEZEICHNUNG', $input['bezeichnung']); - $this->app->Tpl->Set('DATUMPRODUKTION', $input['datumproduktion']); - $this->app->Tpl->Set('ANSCHREIBEN', $input['anschreiben']); - $this->app->Tpl->Set('USEREDITID', $input['usereditid']); - $this->app->Tpl->Set('USEREDITTIMESTAMP', $input['useredittimestamp']); - $this->app->Tpl->Set('STEUERSATZ_NORMAL', $input['steuersatz_normal']); - $this->app->Tpl->Set('STEUERSATZ_ZWISCHEN', $input['steuersatz_zwischen']); - $this->app->Tpl->Set('STEUERSATZ_ERMAESSIGT', $input['steuersatz_ermaessigt']); - $this->app->Tpl->Set('STEUERSATZ_STARKERMAESSIGT', $input['steuersatz_starkermaessigt']); - $this->app->Tpl->Set('STEUERSATZ_DIENSTLEISTUNG', $input['steuersatz_dienstleistung']); - $this->app->Tpl->Set('WAEHRUNG', $input['waehrung']); - $this->app->Tpl->Set('SCHREIBSCHUTZ', $input['schreibschutz']); - $this->app->Tpl->Set('PDFARCHIVIERT', $input['pdfarchiviert']); - $this->app->Tpl->Set('PDFARCHIVIERTVERSION', $input['pdfarchiviertversion']); - $this->app->Tpl->Set('TYP', $input['typ']); - $this->app->Tpl->Set('RESERVIERART', $input['reservierart']); - $this->app->Tpl->Set('AUSLAGERART', $input['auslagerart']); - $this->app->Tpl->Set('PROJEKTFILIALE', $input['projektfiliale']); - $this->app->Tpl->Set('DATUMAUSLIEFERUNG', $input['datumauslieferung']); - $this->app->Tpl->Set('DATUMBEREITSTELLUNG', $input['datumbereitstellung']); - $this->app->Tpl->Set('UNTERLISTENEXPLODIEREN', $input['unterlistenexplodieren']); - $this->app->Tpl->Set('CHARGE', $input['charge']); - $this->app->Tpl->Set('ARBEITSSCHRITTETEXTANZEIGEN', $input['arbeitsschrittetextanzeigen']); - $this->app->Tpl->Set('EINLAGERN_OK', $input['einlagern_ok']); - $this->app->Tpl->Set('AUSLAGERN_OK', $input['auslagern_ok']); - $this->app->Tpl->Set('MHD', $input['mhd']); - $this->app->Tpl->Set('AUFTRAGMENGENANPASSEN', $input['auftragmengenanpassen']); - $this->app->Tpl->Set('INTERNEBEZEICHNUNG', $input['internebezeichnung']); - $this->app->Tpl->Set('MENGEORIGINAL', $input['mengeoriginal']); - $this->app->Tpl->Set('TEILPRODUKTIONVON', $input['teilproduktionvon']); - $this->app->Tpl->Set('TEILPRODUKTIONNUMMER', $input['teilproduktionnummer']); - $this->app->Tpl->Set('PARENT', $input['parent']); - $this->app->Tpl->Set('PARENTNUMMER', $input['parentnummer']); - $this->app->Tpl->Set('BEARBEITERID', $input['bearbeiterid']); - $this->app->Tpl->Set('MENGEAUSSCHUSS', $input['mengeausschuss']); - $this->app->Tpl->Set('MENGEERFOLGREICH', $input['mengeerfolgreich']); - $this->app->Tpl->Set('ABSCHLUSSBEMERKUNG', $input['abschlussbemerkung']); - $this->app->Tpl->Set('AUFTRAGID', $input['auftragid']); - $this->app->Tpl->Set('FUNKTIONSTEST', $input['funktionstest']); - $this->app->Tpl->Set('SERIENNUMMER_ERSTELLEN', $input['seriennummer_erstellen']); - $this->app->Tpl->Set('UNTERSERIENNUMMERN_ERFASSEN', $input['unterseriennummern_erfassen']); - $this->app->Tpl->Set('DATUMPRODUKTIONENDE', $input['datumproduktionende']); - $this->app->Tpl->Set('STANDARDLAGER', $input['standardlager']); - + Adjust the planned quantity of a produktion + Lower limit is the already produced quantity + Return -1 if not possible, else 1 + */ + function MengeAnpassen(int $produktion_id, int $menge_neu, int $lager) : int { + + $fortschritt = $this->MengeFortschritt($produktion_id,$lager); + + $sql = "SELECT menge,geliefert_menge FROM produktion_position WHERE produktion = $produktion_id AND stuecklistestufe = 1"; + $produktionsmengen_alt = $this->app->DB->SelectArr($sql)[0]; + + if (empty($produktionsmengen_alt)) { + return(-1); + } + if ($menge_neu < $produktionsmengen_alt['geliefert_menge']) { + return(-1); + } + + $sql = "SELECT * from produktion WHERE id = $produktion_id"; + $produktion_alt = $this->app->DB->SelectArr($sql)[0]; + + // Process positions + $sql = "SELECT * FROM produktion_position WHERE produktion = $produktion_id"; + $positionen = $this->app->DB->SelectArr($sql); + + foreach ($positionen as $position) { + $menge_pro_stueck = $position['menge']/$produktionsmengen_alt['menge']; + $position_menge_neu = $menge_neu*$menge_pro_stueck; + $sql = "UPDATE produktion_position SET menge=".$position_menge_neu." WHERE id =".$position['id']; + $this->app->DB->Update($sql); + + // Free surplus reservations + $restreservierung = $menge_pro_stueck * ($menge_neu+$fortschritt['ausschuss']-$fortschritt['produziert']); + + $result = $this->ArtikelReservieren($position['artikel'],$lager,0,$restreservierung,'produktion',$produktion_id,$position['id'],"Produktion ".$produktion_alt['belegnr']); + } + return(1); } + /* + Output progress information + ['geplant'] + ['produziert'] + ['erfolgreich'] + ['ausschuss'] + ['offen'] + ['reserviert'] + ['produzierbar'] + + If lager <= 0 -> use lager from database + + */ + function MengeFortschritt(int $produktion_id, int $lager) : array { + $result = array(); + + if ($lager <= 0) { + $sql = "SELECT standardlager FROM produktion WHERE id = $produktion_id"; + $lager = $this->app->DB->SelectArr($sql)[0]['standardlager']; + } + + $sql = "SELECT menge as geplant, geliefert_menge as produziert FROM produktion_position WHERE produktion = $produktion_id AND stuecklistestufe = 1"; + $position_values = $this->app->DB->SelectArr($sql)[0]; + + if (empty($position_values)) { + return($result); + } + + $sql = "SELECT mengeerfolgreich as erfolgreich, mengeausschuss as ausschuss FROM produktion WHERE id = $produktion_id"; + $produktion_values = $this->app->DB->SelectArr($sql)[0]; + + if (empty($produktion_values)) { + return($result); + } + + $result['geplant'] = $position_values['geplant']; + $result['produziert'] = $position_values['produziert']; + + $result['erfolgreich'] = $produktion_values['erfolgreich']; + $result['ausschuss'] = $produktion_values['ausschuss']; + + $result['offen'] = $result['geplant']-$result['erfolgreich']; + + if (empty($lager)) { + $result['reserviert'] = 0; + $result['produzierbar'] = 0; + } else { + $result['reserviert'] = $this->LagerCheckProduktion($produktion_id, $lager, true); + $result['produzierbar'] = $this->LagerCheckProduktion($produktion_id, $lager, false); + } + + return($result); + } + + // Do calculations for the status icon display + // id = 0 for all open ones + function StatusBerechnen(int $produktion_id) { + + $where = "WHERE status IN ('freigegeben','gestartet') "; + + if ($produktion_id > 0) { + $where .= "AND id = $produktion_id"; + } + + $sql = "SELECT id, lager_ok, reserviert_ok, auslagern_ok, einlagern_ok, zeit_ok, versand_ok FROM produktion ".$where; + $produktionen = $this->app->DB->SelectArr($sql); + + foreach ($produktionen as $produktion) { + + $produktion_id = $produktion['id']; + + $fortschritt = $this->MengeFortschritt($produktion_id,-1); + + if (empty($fortschritt)) { + continue; + } + + // lager_ok + if ($fortschritt['produzierbar'] >= $fortschritt['offen']) { + $values['lager_ok'] = 1; + // } else if ($fortschritt['produzierbar'] > 0) { + // $values['lager_ok'] = 2; + } else { + $values['lager_ok'] = 0; + } + + // reserviert_ok + if ($fortschritt['reserviert'] >= $fortschritt['offen']) { + $values['reserviert_ok'] = 1; + // } else if ($fortschritt['reserviert'] > 0) { + // $values['reserviert_ok'] = 2; + } else { + $values['reserviert_ok'] = 0; + } + + // auslagern_ok + if ($fortschritt['produziert'] >= $fortschritt['geplant']) { + $values['auslagern_ok'] = 1; + // } else if ($fortschritt['produziert'] > 0) { + // $values['auslagern_ok'] = 2; + } else { + $values['auslagern_ok'] = 0; + } + + // einlagern_ok + if ($fortschritt['erfolgreich'] >= $fortschritt['geplant']) { + $values['einlagern_ok'] = 1; + // } else if ($fortschritt['erfolgreich'] > 0) { + // $values['einlagern_ok'] = 2; + } else { + $values['einlagern_ok'] = 0; + } + + // reserviert_ok + if ($fortschritt['produziert'] >= $fortschritt['geplant']) { + $values['auslagern_ok'] = 1; + // } else if ($fortschritt['produziert'] > 0) { + // $values['auslagern_ok'] = 2; + } else { + $values['auslagern_ok'] = 0; + } + + $fix = ""; + $update = ""; + foreach ($values as $key => $value) { + $update = $update.$fix.$key." = '".($value)."'"; + $fix = ", "; + } + + $sql = "UPDATE produktion SET $update WHERE id = $produktion_id"; + $this->app->DB->Update($sql); + } + } + + // Copy an existing produktion as draft, with option to adjust the quantity + // return id on sucess, else negative number + + function Copy($produktion_id, $menge_abteilen) : int { + + if (empty($produktion_id)) { + return(-1); + } + + $fortschritt = $this->MengeFortschritt($produktion_id,0); + if (empty($fortschritt)) { + return(-2); + } + + if ($menge_abteilen < 1) { + $menge_abteilen = $fortschritt['geplant']; + } + + $sql = "SELECT * from produktion WHERE id = $produktion_id"; + $produktion_alt = $this->app->DB->SelectArr($sql)[0]; + + if (empty($produktion_alt)) { + return (-3); + } + + $menge_pro_stueck = $menge_abteilen/$fortschritt['geplant']; + + $produktion_neu = array(); + $produktion_neu['status'] = 'angelegt'; + $produktion_neu['datum'] = date("Y-m-d"); + $produktion_neu['art'] = $produktion_alt['art']; + $produktion_neu['projekt'] = $produktion_alt['projekt']; + $produktion_neu['angebot'] = $produktion_alt['angebot']; + $produktion_neu['kundennummer'] = $produktion_alt['kundennummer']; + $produktion_neu['auftragid'] = $produktion_alt['auftragid']; + $produktion_neu['freitext'] = $produktion_alt['freitext']; + $produktion_neu['internebemerkung'] = $produktion_alt['internebemerkung']; + $produktion_neu['adresse'] = $produktion_alt['adresse']; + + if ($produktion_alt['belegnr'] != '') { + $produktion_neu['internebezeichnung '] = "Kopie von ".$produktion_alt['belegnr']." ".$produktion_alt['internebezeichnung']; + } else { + $produktion_neu['internebezeichnung '] = $produktion_alt['internebezeichnung']; + } + + $produktion_neu['standardlager'] = $produktion_alt['standardlager']; + + + $columns = ""; + $values = ""; + $update = ""; + + $fix = ""; + + foreach ($produktion_neu as $key => $value) { + $columns = $columns.$fix.$key; + $values = $values.$fix."'".$value."'"; + $update = $update.$fix.$key." = '$value'"; + $fix = ", "; + } + + $sql = "INSERT INTO produktion (".$columns.") VALUES (".$values.")"; + $this->app->DB->Update($sql); + $produktion_neu_id = $this->app->DB->GetInsertID(); + + // Now add the positions + $sql = "SELECT * FROM produktion_position WHERE produktion = $produktion_id"; + $positionen = $this->app->DB->SelectArr($sql); + + foreach ($positionen as $position) { + + $columns = ""; + + // For the new positions + $position['id'] = 'NULL'; + $position['geliefert_menge'] = 0; + + $position['menge'] = $menge_abteilen*$menge_pro_stueck; + $position['produktion'] = $produktion_neu_id; + + $values = ""; + $fix = ""; + foreach ($position as $key => $value) { + $columns = $columns.$fix.$key; + $values = $values.$fix."'".$value."'"; + $fix = ", "; + } + $sql = "INSERT INTO produktion_position (".$columns.") VALUES (".$values.")"; + $this->app->DB->Update($sql); + + } + + return($produktion_neu_id); + } + + /* + Write something into the log + */ + function ProtokollSchreiben(int $produktion_id, string $text) { + $sql = "INSERT INTO produktion_protokoll (produktion, zeit, bearbeiter, grund) VALUES ($produktion_id, NOW(), '".$this->app->DB->real_escape_string($this->app->User->GetName())."','".$this->app->DB->real_escape_string($text)."')"; + $this->app->DB->Insert($sql); + } + + function ProtokollTabelleErzeugen($produktion_id, $parsetarget) + { + $tmp = new EasyTable($this->app); + $tmp->Query("SELECT zeit,bearbeiter,grund FROM produktion_protokoll WHERE produktion='$produktion_id' ORDER by zeit DESC"); + $tmp->DisplayNew($parsetarget,'Protokoll','noAction'); + } + + } + diff --git a/www/pages/produktion_position.php b/www/pages/produktion_position.php new file mode 100644 index 00000000..91de8f31 --- /dev/null +++ b/www/pages/produktion_position.php @@ -0,0 +1,258 @@ +app = $app; + if ($intern) + return; + + $this->app->ActionHandlerInit($this); + $this->app->ActionHandler("list", "produktion_position_list"); + $this->app->ActionHandler("create", "produktion_position_edit"); // This automatically adds a "New" button + $this->app->ActionHandler("edit", "produktion_position_edit"); + $this->app->ActionHandler("delete", "produktion_position_delete"); + $this->app->DefaultActionHandler("list"); + $this->app->ActionHandlerListen($app); + } + + public function Install() { + /* Fill out manually later */ + } + + static function TableSearch(&$app, $name, $erlaubtevars) { + switch ($name) { + case "produktion_position_list": + $allowed['produktion_position_list'] = array('list'); + $heading = array('','','produktion', 'artikel', 'projekt', 'bezeichnung', 'beschreibung', 'internerkommentar', 'nummer', 'menge', 'preis', 'waehrung', 'lieferdatum', 'vpe', 'sort', 'status', 'umsatzsteuer', 'bemerkung', 'geliefert', 'geliefert_menge', 'explodiert', 'explodiert_parent', 'logdatei', 'nachbestelltexternereinkauf', 'beistellung', 'externeproduktion', 'einheit', 'steuersatz', 'steuertext', 'erloese', 'erloesefestschreiben', 'freifeld1', 'freifeld2', 'freifeld3', 'freifeld4', 'freifeld5', 'freifeld6', 'freifeld7', 'freifeld8', 'freifeld9', 'freifeld10', 'freifeld11', 'freifeld12', 'freifeld13', 'freifeld14', 'freifeld15', 'freifeld16', 'freifeld17', 'freifeld18', 'freifeld19', 'freifeld20', 'freifeld21', 'freifeld22', 'freifeld23', 'freifeld24', 'freifeld25', 'freifeld26', 'freifeld27', 'freifeld28', 'freifeld29', 'freifeld30', 'freifeld31', 'freifeld32', 'freifeld33', 'freifeld34', 'freifeld35', 'freifeld36', 'freifeld37', 'freifeld38', 'freifeld39', 'freifeld40', 'stuecklistestufe', 'teilprojekt', 'Menü'); + $width = array('1%','1%','10%'); // Fill out manually later + + $findcols = array('p.produktion', 'p.artikel', 'p.projekt', 'p.bezeichnung', 'p.beschreibung', 'p.internerkommentar', 'p.nummer', 'p.menge', 'p.preis', 'p.waehrung', 'p.lieferdatum', 'p.vpe', 'p.sort', 'p.status', 'p.umsatzsteuer', 'p.bemerkung', 'p.geliefert', 'p.geliefert_menge', 'p.explodiert', 'p.explodiert_parent', 'p.logdatei', 'p.nachbestelltexternereinkauf', 'p.beistellung', 'p.externeproduktion', 'p.einheit', 'p.steuersatz', 'p.steuertext', 'p.erloese', 'p.erloesefestschreiben', 'p.freifeld1', 'p.freifeld2', 'p.freifeld3', 'p.freifeld4', 'p.freifeld5', 'p.freifeld6', 'p.freifeld7', 'p.freifeld8', 'p.freifeld9', 'p.freifeld10', 'p.freifeld11', 'p.freifeld12', 'p.freifeld13', 'p.freifeld14', 'p.freifeld15', 'p.freifeld16', 'p.freifeld17', 'p.freifeld18', 'p.freifeld19', 'p.freifeld20', 'p.freifeld21', 'p.freifeld22', 'p.freifeld23', 'p.freifeld24', 'p.freifeld25', 'p.freifeld26', 'p.freifeld27', 'p.freifeld28', 'p.freifeld29', 'p.freifeld30', 'p.freifeld31', 'p.freifeld32', 'p.freifeld33', 'p.freifeld34', 'p.freifeld35', 'p.freifeld36', 'p.freifeld37', 'p.freifeld38', 'p.freifeld39', 'p.freifeld40', 'p.stuecklistestufe', 'p.teilprojekt'); + $searchsql = array('p.produktion', 'p.artikel', 'p.projekt', 'p.bezeichnung', 'p.beschreibung', 'p.internerkommentar', 'p.nummer', 'p.menge', 'p.preis', 'p.waehrung', 'p.lieferdatum', 'p.vpe', 'p.sort', 'p.status', 'p.umsatzsteuer', 'p.bemerkung', 'p.geliefert', 'p.geliefert_menge', 'p.explodiert', 'p.explodiert_parent', 'p.logdatei', 'p.nachbestelltexternereinkauf', 'p.beistellung', 'p.externeproduktion', 'p.einheit', 'p.steuersatz', 'p.steuertext', 'p.erloese', 'p.erloesefestschreiben', 'p.freifeld1', 'p.freifeld2', 'p.freifeld3', 'p.freifeld4', 'p.freifeld5', 'p.freifeld6', 'p.freifeld7', 'p.freifeld8', 'p.freifeld9', 'p.freifeld10', 'p.freifeld11', 'p.freifeld12', 'p.freifeld13', 'p.freifeld14', 'p.freifeld15', 'p.freifeld16', 'p.freifeld17', 'p.freifeld18', 'p.freifeld19', 'p.freifeld20', 'p.freifeld21', 'p.freifeld22', 'p.freifeld23', 'p.freifeld24', 'p.freifeld25', 'p.freifeld26', 'p.freifeld27', 'p.freifeld28', 'p.freifeld29', 'p.freifeld30', 'p.freifeld31', 'p.freifeld32', 'p.freifeld33', 'p.freifeld34', 'p.freifeld35', 'p.freifeld36', 'p.freifeld37', 'p.freifeld38', 'p.freifeld39', 'p.freifeld40', 'p.stuecklistestufe', 'p.teilprojekt'); + + $defaultorder = 1; + $defaultorderdesc = 0; + + $dropnbox = "'' AS `open`, CONCAT('') AS `auswahl`"; + + $menu = "
" . "Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"> " . "Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\">" . "
"; + + $sql = "SELECT SQL_CALC_FOUND_ROWS p.id, $dropnbox, p.produktion, p.artikel, p.projekt, p.bezeichnung, p.beschreibung, p.internerkommentar, p.nummer, p.menge, p.preis, p.waehrung, p.lieferdatum, p.vpe, p.sort, p.status, p.umsatzsteuer, p.bemerkung, p.geliefert, p.geliefert_menge, p.explodiert, p.explodiert_parent, p.logdatei, p.nachbestelltexternereinkauf, p.beistellung, p.externeproduktion, p.einheit, p.steuersatz, p.steuertext, p.erloese, p.erloesefestschreiben, p.freifeld1, p.freifeld2, p.freifeld3, p.freifeld4, p.freifeld5, p.freifeld6, p.freifeld7, p.freifeld8, p.freifeld9, p.freifeld10, p.freifeld11, p.freifeld12, p.freifeld13, p.freifeld14, p.freifeld15, p.freifeld16, p.freifeld17, p.freifeld18, p.freifeld19, p.freifeld20, p.freifeld21, p.freifeld22, p.freifeld23, p.freifeld24, p.freifeld25, p.freifeld26, p.freifeld27, p.freifeld28, p.freifeld29, p.freifeld30, p.freifeld31, p.freifeld32, p.freifeld33, p.freifeld34, p.freifeld35, p.freifeld36, p.freifeld37, p.freifeld38, p.freifeld39, p.freifeld40, p.stuecklistestufe, p.teilprojekt, p.id FROM produktion_position p"; + + $where = "1"; + $count = "SELECT count(DISTINCT id) FROM produktion_position WHERE $where"; +// $groupby = ""; + + break; + } + + $erg = false; + + foreach ($erlaubtevars as $k => $v) { + if (isset($$v)) { + $erg[$v] = $$v; + } + } + return $erg; + } + + function produktion_position_list() { +/* $this->app->erp->MenuEintrag("index.php?module=produktion_position&action=list", "Übersicht"); + $this->app->erp->MenuEintrag("index.php?module=produktion_position&action=create", "Neu anlegen"); + + $this->app->erp->MenuEintrag("index.php", "Zurück"); + + $this->app->YUI->TableSearch('TAB1', 'produktion_position_list', "show", "", "", basename(__FILE__), __CLASS__); + $this->app->Tpl->Parse('PAGE', "produktion_position_list.tpl");*/ + + header("Location: index.php?module=produktion&action=list"); + } + + + // End edit process and return to previous page + // Give pid in case of delete because position.id is already gone + function produktion_position_edit_end(string $msg, bool $error, bool $go_to_production, int $pid = 0) { + + if ($error) { + $msg = $this->app->erp->base64_url_encode("
".$msg."
"); + } else { + $msg = $this->app->erp->base64_url_encode("
".$msg."
"); + } + + if ($go_to_production) { + if ($pid == 0) { + $id = (int) $this->app->Secure->GetGET('id'); + $sql = "SELECT p.status, p.id from produktion p INNER JOIN produktion_position pp ON pp.produktion = p.id WHERE pp.id = $id"; + $result = $this->app->DB->SelectArr($sql)[0]; + $pid = $result['id']; + } + header("Location: index.php?module=produktion&action=edit&id=$pid&msg=$msg#tabs-3"); + } else { + header("Location: index.php?module=produktion_position&action=list&msg=$msg"); + } + exit(); + } + + + public function produktion_position_delete() { + $id = (int) $this->app->Secure->GetGET('id'); + + $sql = "SELECT p.status, p.id from produktion p INNER JOIN produktion_position pp ON pp.produktion = p.id WHERE pp.id = $id"; + $result = $this->app->DB->SelectArr($sql)[0]; + $status = $result['status']; + $pid = $result['id']; + if (!in_array($status,array('angelegt','freigegeben'))) { + $this->produktion_position_edit_end("Bearbeiten nicht möglich, Produktionsstatus ist '$status'",true, true); + } + + $this->app->DB->Delete("DELETE FROM `produktion_position` WHERE `id` = '{$id}'"); + + // Remove reserved items + + $this->produktion_position_edit_end("Der Eintrag wurde gelöscht.", true, true, $pid); + } + + /* + * Edit produktion_position item + * If id is empty, create a new one + */ + + function produktion_position_edit() { + $id = $this->app->Secure->GetGET('id'); + + $this->app->Tpl->Set('ID', $id); + + $this->app->erp->MenuEintrag("index.php?module=produktion_position&action=edit&id=$id", "Details"); + $this->app->erp->MenuEintrag("index.php?module=produktion&action=edit%id=$pid", "Zurück zur Übersicht"); + $id = $this->app->Secure->GetGET('id'); + $input = $this->GetInput(); + $submit = $this->app->Secure->GetPOST('submit'); + + if (empty($id)) { + // New item + $id = 'NULL'; + $produktion_id = $this->app->Secure->GetGET('produktion'); + $sql = "SELECT p.status from produktion p WHERE p.id = $produktion_id"; + $result = $this->app->DB->SelectArr($sql)[0]; + $status = $result['status']; + } else { + $sql = "SELECT p.status, p.id from produktion p INNER JOIN produktion_position pp ON pp.produktion = p.id WHERE pp.id = $id"; + $result = $this->app->DB->SelectArr($sql)[0]; + $status = $result['status']; + $produktion_id = $result['id']; + } + + $input['produktion'] = $produktion_id; + + $sql = "SELECT FORMAT(menge,0) as menge FROM produktion_position WHERE produktion = $produktion_id AND stuecklistestufe = 1"; + $result = $this->app->DB->SelectArr($sql)[0]; + $planmenge = $result['menge']; + + if ($planmenge == 0) { + $this->produktion_position_edit_end("Keine Planung vorhanden.",true, true, $produktion_id); + } + + if ($submit != '') + { + + // Write to database + + // Add checks here + $input['artikel'] = $this->app->erp->ReplaceArtikel(true, $input['artikel'],true); // Convert from form to db + + // Only allowed when produktion is 'freigegeben or angelegt' + if (!in_array($status,array('angelegt','freigegeben'))) { + $this->produktion_position_edit_end("Bearbeiten nicht möglich, Produktionsstatus ist '$status'",true, true); + } + + if ($input['menge'] < 0) { + $this->produktion_position_edit_end("Ungültige Menge.",true, true); + } + + // Only allow quantities that are a multiple of the target quantity + if ($input['menge'] % $planmenge != 0) { + $this->produktion_position_edit_end("Positionsmenge muss Vielfaches von $planmenge sein.",true, true, $produktion_id); + } + + $columns = "id, "; + $values = "$id, "; + $update = ""; + + $fix = ""; + + foreach ($input as $key => $value) { + $columns = $columns.$fix.$key; + $values = $values.$fix."'".$value."'"; + $update = $update.$fix.$key." = '$value'"; + + $fix = ", "; + } + +// echo($columns."
"); +// echo($values."
"); +// echo($update."
"); + + $sql = "INSERT INTO produktion_position (".$columns.") VALUES (".$values.") ON DUPLICATE KEY UPDATE ".$update; + +// echo($sql); + + $this->app->DB->Update($sql); + + if ($id == 'NULL') { + $msg = "Das Element wurde erfolgreich angelegt."; + } else { + $msg = "Die Einstellungen wurden erfolgreich übernommen."; + } + $this->produktion_position_edit_end($msg,false,true,$produktion_id); + + } + + + // Load values again from database + + $result = $this->app->DB->SelectArr("SELECT SQL_CALC_FOUND_ROWS pp.id, pp.produktion, p.belegnr, pp.artikel, FORMAT(pp.menge,0) as menge, pp.id FROM produktion_position pp INNER JOIN produktion p ON pp.produktion = p.id "." WHERE pp.id=$id"); + + foreach ($result[0] as $key => $value) { + $this->app->Tpl->Set(strtoupper($key), $value); + } + + /* + * Add displayed items later + * + + $this->app->Tpl->Add('KURZUEBERSCHRIFT2', $email); + $this->app->Tpl->Add('EMAIL', $email); + $this->app->Tpl->Add('ANGEZEIGTERNAME', $angezeigtername); + */ + + $this->app->YUI->AutoComplete("artikel", "artikelnummer"); + //$this->app->YUI->AutoComplete("artikel", "lagerartikelnummer"); + $this->app->Tpl->Set('ARTIKEL',$this->app->erp->ReplaceArtikel(false, $result[0]['artikel'], false)); // Convert from form to db + + $this->app->Tpl->Set('PRODUKTIONID',$result[0]['produktion']); + $this->app->Tpl->Set('PRODUKTIONBELEGNR',$result[0]['belegnr']); + + $this->app->Tpl->Add('MESSAGE',"
Positionsmenge muss Vielfaches von $planmenge sein.
"); + + $this->app->Tpl->Parse('PAGE', "produktion_position_edit.tpl"); + } + + /** + * Get all paramters from html form and save into $input + */ + public function GetInput(): array { + $input = array(); + + $input['artikel'] = $this->app->Secure->GetPOST('artikel'); + $input['menge'] = $this->app->Secure->GetPOST('menge'); + + return($input); + } + +} diff --git a/www/pages/shopimporter_shopware6.php b/www/pages/shopimporter_shopware6.php index 3189b694..87f8ed0c 100644 --- a/www/pages/shopimporter_shopware6.php +++ b/www/pages/shopimporter_shopware6.php @@ -1,3820 +1,3820 @@ -app = $app; - $this->intern = true; - if ($intern) { - return; - } - $this->app->ActionHandlerInit($this); - - $this->app->ActionHandler('list', 'Shopimporter_Shopware6List'); - $this->app->ActionHandler('auth', 'ImportAuth'); - $this->app->ActionHandler('sendlistlager', 'ImportSendListLager'); - $this->app->ActionHandler('getauftraegeanzahl', 'ImportGetAuftraegeAnzahl'); - $this->app->ActionHandler('getauftrag', 'ImportGetAuftrag'); - $this->app->ActionHandler('deleteauftrag', 'ImportDeleteAuftrag'); - $this->app->ActionHandler('updateauftrag', 'ImportUpdateAuftrag'); - $this->app->ActionHandler('storniereauftrag','ImportStorniereAuftrag'); - $this->app->ActionHandler('getarticle','ImportGetArticle'); - $this->app->ActionHandler('getarticlelist','ImportGetArticleList'); - $this->app->ActionHandler("updatezahlungsstatus","ImportUpdateZahlungsstatus"); - $this->app->DefaultActionHandler('list'); - - $this->app->ActionHandlerListen($app); - } - - /** - * @param string $productId - * - * @return mixed - */ - public function addSyncCustomFieldToProduct(string $productId) - { - $customField = [ - 'customFields' => [ - 'wawision_shopimporter_syncstate' => 1 - ] - ]; - - return $this->shopwareRequest('PATCH', "product/{$productId}", $customField); - } - - /** - * @param string $orderId - * - * @return mixed - */ - public function addCustomFieldToOrder(string $orderId) - { - $customField = [ - 'customFields' => [ - 'wawision_shopimporter_syncstate' => 1 - ] - ]; - - return $this->shopwareRequest('PATCH', "order/{$orderId}", $customField); - } - - public function ImportGetArticleList() - { - $page = 1; - $limit = 500; - - do { - $productIdsToAdd = []; - $searchdata = [ - 'limit' => $limit, - 'page' => $page, - 'filter' => [ - [ - 'field' => 'product.parentId', - 'type' => 'equals', - 'value' => null - ] - ] - ]; - - $productsInShop = $this->shopwareRequest('POST', 'search/product', $searchdata); - if (!empty($productsInShop['data'])) { - foreach ($productsInShop['data'] as $productInShop) { - $productIdsToAdd[] = $productInShop['id']; - } - } - - foreach ($productIdsToAdd as $productId) { - $this->app->DB->Insert("INSERT INTO shopexport_getarticles (shop, nummer) VALUES ('$this->shopid', '" . $this->app->DB->real_escape_string($productId) . "')"); - } - $page++; - } while (count($productsInShop['data']) === $limit); - - - $anzahl = $this->app->DB->Select("SELECT COUNT(id) FROM shopexport_getarticles WHERE shop=$this->shopid"); - $this->app->erp->SetKonfigurationValue('artikelimportanzahl_' . $this->shopid, $anzahl); - - } - - /** - * @param string $method - * @param string $endpoint - * @param string $data - * - * @param array $headerInformation - * @return mixed - */ - public function shopwareRequest($method, $endpoint, $data = '', $headerInformation = []) - { - $accessToken = $this->shopwareToken(); - $url = $this->ShopUrl; - $url .= 'v2/' . $endpoint; - - $ch = curl_init(); - $headerInformation[] = 'Content-Type:application/json'; - $headerInformation[] = 'Authorization:Bearer ' . $accessToken['token']; - curl_setopt($ch, CURLOPT_URL, $url); - if (!empty($data)) { - curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); - } - curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); - curl_setopt($ch, CURLOPT_HTTPHEADER, $headerInformation); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - $response = curl_exec($ch); - if (curl_error($ch)) { - $this->error[] = curl_error($ch); - } - curl_close($ch); - - return json_decode($response, true); - } - - /** - * @return array - */ - protected function shopwareToken() - { - $result = []; - - $result['success'] = true; - $result['token'] = $this->accessToken; - $result['message'] = 'Keine Antwort von API erhalten.'; - - if (!empty($result['token'])) { - return $result; - } - - $result['success'] = false; - - $data = [ - 'username' => $this->UserName, - 'password' => $this->Password, - 'grant_type' => 'password', - 'scopes' => 'write', - 'client_id' => 'administration', - ]; - - $ch = curl_init($this->ShopUrl . 'oauth/token'); - curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); - curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_HTTPHEADER, [ - 'Accept: application/json', - 'Content-Type: application/json', - 'Cache-Control: no-cache', - ] - ); - $response = json_decode(curl_exec($ch), true); - - if (!empty((string)$response['title'])) { - $result['message'] = $response['title']; - } - - if (!empty($response['access_token'])) { - $result['success'] = true; - $this->accessToken = $response['access_token']; - $result['token'] = $response['access_token']; - } - - return $result; - } - - public function ImportGetArticle() - { - $tmp = $this->CatchRemoteCommand('data'); - - if (isset($tmp['nummerintern'])) { - $nummer = $tmp['nummerintern']; - $response = $this->shopwareRequest('GET', 'product/' . $nummer); - if (empty($response['data'])) { - $this->error[] = 'Artikel in der Shop Datenbank nicht gefunden!'; - return; - } - $nummer = $response['data']['attributes']['productNumber']; - } else { - $nummer = $tmp['nummer']; - } - $articleInfo = $this->shopwareRequest('GET', 'product?filter[product.productNumber]=' . $nummer . - '&associations[manufacturer][]&associations[properties][]'); - if (empty($articleInfo['data'][0])) { - $this->error[] = 'Artikel in der Shop Datenbank nicht gefunden!'; - return; - } - $articleIdInShop = $articleInfo['data'][0]['id']; - if(empty($articleInfo['data'][0]['customFields']) - || empty($articleInfo['data'][0]['customFields']['wawision_shopimporter_syncstate'])){ - $this->addSyncCustomFieldToProduct((string)$articleIdInShop); - } - - $articleInfo = $this->shopwareRequest('GET', 'product?filter[product.productNumber]=' . $nummer . - '&associations[manufacturer][]&associations[properties][]'); - $associatedInformation = []; - $properties = []; - foreach ($articleInfo['included'] as $includedInformation) { - if ($includedInformation['type'] === 'property_group_option') { - $properties[$includedInformation['id']] = $includedInformation['attributes']; - } else { - $associatedInformation[$includedInformation['id']] = $includedInformation['attributes']; - } - } - $groups = []; - if (!empty($properties)) { - $groupsInShop = $this->shopwareRequest('GET', 'property-group'); - foreach ($groupsInShop['data'] as $groupInShop) { - $groups[$groupInShop['id']] = $groupInShop['attributes']['name']; - } - } - $media = $this->shopwareRequest('GET', 'product/' . $articleIdInShop . '/media'); - $imagesToAdd = []; - if (!empty($media['included'])) { - foreach ($media['included'] as $mediaInfo) { - if ($mediaInfo['type'] === 'media') { - $imagesToAdd[] = [ - 'content' => base64_encode(@file_get_contents($mediaInfo['attributes']['url'])), - 'path' => $mediaInfo['attributes']['url'], - 'id' => $mediaInfo['id'] - ]; - } - } - } - $articleInfo = $articleInfo['data'][0]['attributes']; - - $data = []; - $data['name'] = $articleInfo['name']; - if (isset($tmp['nummerintern'])) { - $data['nummer'] = $articleInfo['productNumber']; - } - - - $data['artikelnummerausshop'] = $articleInfo['productNumber']; - $data['restmenge'] = $articleInfo['stock']; - $data['uebersicht_de'] = $articleInfo['description']; - $data['preis_netto'] = $articleInfo['price'][0]['net']; - if (!empty($articleInfo['price'][0]['listPrice'])) { - $data['pseudopreis'] = $articleInfo['price'][0]['listPrice']; - } - $data['aktiv'] = $articleInfo['active']; - if (!empty($articleInfo['weight'])) { - $data['gewicht'] = $articleInfo['weight']; - } - if (!empty($articleInfo['manufacturerNumber'])) { - $data['herstellernummer'] = $articleInfo['manufacturerNumber']; - } - if (!empty($articleInfo['ean'])) { - $data['ean'] = $articleInfo['ean']; - } - if (!empty($articleInfo['manufacturerId'])) { - $data['hersteller'] = $associatedInformation[$articleInfo['manufacturerId']]['name']; - } - if (!empty($articleInfo['taxId'])) { - $data['umsatzsteuer'] = $associatedInformation[$articleInfo['taxId']]['taxRate']; - } - if (!empty($properties)) { - foreach ($properties as $property) { - if ($this->propertyOption === 'toProperties') { - $data['eigenschaften'][] = [ - 'name' => $groups[$property['groupId']], - 'values' => $property['name'], - ]; - } - if ($this->propertyOption === 'toCustomFields') { - $data['freifeld_' . $groups[$property['groupId']]] = $property['name']; - } - } - } - if (!empty($articleInfo['customFields'])) { - foreach ($articleInfo['customFields'] as $customFieldName => $customFieldValue) { - if ($this->freeFieldOption === 'toProperties') { - $data['eigenschaften'][] = [ - 'name' => $customFieldName, - 'values' => $customFieldValue - ]; - } - if ($this->freeFieldOption === 'toCustomFields') { - $data['freifeld_' . $customFieldName] = $customFieldValue; - } - } - } - if (!empty($imagesToAdd)) { - $data['bilder'] = $imagesToAdd; - } - - - if ($articleInfo['childCount'] > 0) { - $data = [$data]; - - $limit = 50; - $page = 1; - $optionInfo = []; - $optionGroupInfo = []; - do { - - $searchdata = [ - 'limit' => $limit, - 'page' => $page, - 'filter' => [ - [ - 'field' => 'product.parentId', - 'type' => 'equals', - 'value' => $articleIdInShop - ] - ], - 'sort' => [ - [ - 'field' => 'product.options.groupId', - 'naturalSorting' => false, - 'order' => 'ASC' - ], - [ - 'field' => 'product.options.id', - 'naturalSorting' => false, - 'order' => 'ASC' - ] - ], - 'associations' => [ - 'options' => [ - 'sort' => [ - [ - 'field' => 'groupId', - 'naturalSorting' => false, - 'order' => 'ASC' - ], - [ - 'field' => 'id', - 'naturalSorting' => false, - 'order' => 'ASC' - ] - ] - ] - ] - ]; - $variantsInShop = $this->shopwareRequest('POST', 'search/product', $searchdata); - foreach ($variantsInShop['included'] as $includedInfo) { - if ($includedInfo['type'] === 'property_group_option') { - $optionInfo[$includedInfo['id']] = $includedInfo['attributes']; - if (empty($optionGroupInfo[$includedInfo['attributes']['groupId']])) { - $optionGroupInfo[$includedInfo['attributes']['groupId']] = (!empty($optionGroupInfo)?count($optionGroupInfo):0) + 1; - } - } - } - - foreach ($variantsInShop['data'] as $variantInShop) { - $variantData = []; - $variantName = $data[0]['name']; - foreach ($variantInShop['attributes']['optionIds'] as $optionId) { - $variantData['matrixprodukt_wert' . $optionGroupInfo[$optionInfo[$optionId]['groupId']]] = - $optionInfo[$optionId]['name']; - $variantName .= ' - ' . $optionInfo[$optionId]['name']; - } - - $variantData['name'] = $variantName; - $variantData['nummer'] = $variantInShop['attributes']['productNumber']; - $variantData['artikelnummerausshop'] = $variantInShop['attributes']['productNumber']; - $variantData['restmenge'] = $variantInShop['attributes']['stock']; - $variantData['uebersicht_de'] = $variantInShop['attributes']['description']; - if (empty($variantInShop['attributes']['price'][0]['net'])) { - $variantData['preis_netto'] = $data[0]['preis_netto']; - } else { - $variantData['preis_netto'] = $variantInShop['attributes']['price'][0]['net']; - } - if (!empty($variantInShop['attributes']['price'][0]['listPrice'])) { - $variantData['pseudopreis'] = $variantInShop['attributes']['price'][0]['listPrice']; - } - $variantData['aktiv'] = $variantInShop['attributes']['active']; - if (!empty($variantInShop['attributes']['weight'])) { - $variantData['gewicht'] = $variantInShop['attributes']['weight']; - } - if (!empty($variantInShop['attributes']['manufacturerNumber'])) { - $variantData['herstellernummer'] = $variantInShop['attributes']['manufacturerNumber']; - } - if (!empty($variantInShop['attributes']['ean'])) { - $variantData['ean'] = $variantInShop['attributes']['ean']; - } - if (!empty($data[0]['umsatzsteuer'])) { - $variantData['umsatzsteuer'] = $data[0]['umsatzsteuer']; - } - - $data[] = $variantData; - } - - $page++; - } while (count($variantsInShop['data']) > $limit); - - foreach ($optionGroupInfo as $groupId => $sorting) { - $data[0]['matrixprodukt_gruppe' . $sorting] = $groups[$groupId]; - } - foreach ($optionInfo as $optionData) { - $data[0]['matrixprodukt_optionen' . $optionGroupInfo[$optionData['groupId']]][] = $optionData['name']; - } - } - - //TODO Staffelpreise - //TODO Kategorien - //TODO Freifelder - //TODO Crossselling - - return $data; - } - - /** - * @param array $data - * - * @return array - */ - public function checkApiApp($data) - { - foreach (['shopwareUserName', 'shopwarePassword', 'shopwareUrl'] as $field) { - if (empty($data['data'][$field])) { - return ['success' => false, 'error' => sprintf('%s is empty', $field)]; - } - } - - $shops = $this->app->DB->SelectArr( - sprintf( - "SELECT `einstellungen_json`, `bezeichnung`,`id` - FROM `shopexport` - WHERE `modulename` = 'shopimporter_shopware6' - AND `einstellungen_json` IS NOT NULL AND `einstellungen_json` <> ''" - ) - ); - if (empty($shops)) { - return [ - 'info' => [ - 'Shop' => 'Shopware', - 'info' => 'Url ' . $data['data']['shopwareUrl'], - ] - ]; - } - foreach ($shops as $shop) { - if (empty($shop['einstellungen_json'])) { - continue; - } - $json = @json_decode($shop['einstellungen_json'], true); - if (empty($json['felder']) || empty($json['felder']['shopwareUrl'])) { - continue; - } - if ($json['felder']['shopwareUrl'] === $data['data']['shopwareUrl']) { - return [ - 'success' => false, - 'error' => sprintf('Shop with url %s allready exists', $data['data']['shopwareUrl']) - ]; - } - } - - return [ - 'info' => [ - 'Shop' => 'Shopware', - 'info' => 'Url ' . $data['data']['shopwareUrl'], - ] - ]; - } - - /** - * - */ - public function Shopimporter_Shopware6List() - { - $msg = $this->app->erp->base64_url_encode('
Sie können hier die Shops einstellen
'); - header('Location: index.php?module=onlineshops&action=list&msg=' . $msg); - exit; - } - - /** - * @param $shopid - * @param $data - */ - public function getKonfig($shopid, $data) - { - $this->shopid = $shopid; - $this->data = $data; - $importerSettings = $this->app->DB->SelectArr("SELECT `einstellungen_json`, `kategorienuebertragen` FROM `shopexport` WHERE `id` = '$shopid' LIMIT 1"); - $importerSettings = reset($importerSettings); - - $this->exportCategories = (bool) $importerSettings['kategorienuebertragen']; - - $einstellungen = []; - if (!empty($importerSettings['einstellungen_json'])) { - $einstellungen = json_decode($importerSettings['einstellungen_json'], true); - } - $this->protocol = $einstellungen['felder']['protocol']; - $this->UserName = $einstellungen['felder']['shopwareUserName']; - $this->Password = $einstellungen['felder']['shopwarePassword']; - $this->ShopUrl = rtrim($einstellungen['felder']['shopwareUrl'], '/') . '/'; - $this->createManufacturerAllowed = false; - if ($einstellungen['felder']['shopwareAllowCreateManufacturer'] === '1') { - $this->createManufacturerAllowed = true; - } - $this->defaultManufacturer = $einstellungen['felder']['shopwareDefaultManufacturer']; - $this->defaultRuleName = $einstellungen['felder']['shopwareDefaultRuleName']; - $this->statesToFetch = $einstellungen['felder']['statesToFetch']; - $this->deliveryStatesToFetch = $einstellungen['felder']['deliveryStatesToFetch']; - $this->transactionStatesToFetch = $einstellungen['felder']['transactionStatesToFetch']; - $this->salesChannelToFetch = $einstellungen['felder']['salesChannelToFetch']; - $this->orderSearchLimit = $einstellungen['felder']['orderSearchLimit']; - $this->freeFieldOption = $einstellungen['felder']['shopwareFreeFieldOption']; - $this->propertyOption = $einstellungen['felder']['shopwarePropertyOption']; - $this->shopwareDefaultSalesChannel = $einstellungen['felder']['shopwareDefaultSalesChannel']; - $this->shopwareMediaFolder = $einstellungen['felder']['shopwareMediaFolder']; - $query = sprintf('SELECT `steuerfreilieferlandexport` FROM `shopexport` WHERE `id` = %d', $this->shopid); - $this->taxationByDestinationCountry = !empty($this->app->DB->Select($query)); - - $this->client = $this->app->Container->get('Shopware6Client'); - $this->client->setCredentials( - $this->UserName, - $this->Password, - $this->ShopUrl - ); - } - - /** - * @return array - */ - public function EinstellungenStruktur() - { - return - [ - 'ausblenden' => ['abholmodus' => ['ab_nummer']], - 'functions' => ['exportartikelbaum','getarticlelist','updatezahlungsstatus'], - 'felder' => [ - 'protocol' => [ - 'typ' => 'checkbox', - 'bezeichnung' => '{|Protokollierung im Logfile|}:', - ], - 'shopwareUserName' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Benutzername|}:', - 'size' => 40, - ], - 'shopwarePassword' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Passwort|}:', - 'size' => 40, - ], - 'shopwareUrl' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Shop API URL|}:', - 'size' => 40, - ], - 'shopwareDefaultManufacturer' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Standard Hersteller|}:', - 'size' => 40, - 'default' => 'Keine Herstellerinformation', - ], - 'shopwareAllowCreateManufacturer' => [ - 'typ' => 'checkbox', - 'bezeichnung' => '{|Bei Artikelexport Hersteller anlegen|}:', - ], - 'shopwareDefaultRuleName' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Name der Standardpreisgruppe|}:', - 'size' => 40, - 'default' => 'All customers', - ], - 'shopwarePropertyOption' => [ - 'heading' => '{|Eigenschaften / Freifeld Zuordnung|}', - 'typ' => 'select', - 'bezeichnung' => '{|Xentral Artikel Eigenschaften|}:', - 'size' => 40, - 'default' => 'toProperties', - 'optionen' => ['toProperties' => '{|Shopware Eigenschaften|}', 'toCustomFields' => '{|Shopware Zusatzfelder|}', 'doNotExport' => '{|Nicht übertragen|}'] - ], - 'shopwareFreeFieldOption' => [ - 'typ' => 'select', - 'bezeichnung' => '{|Xentral Artikel Freifelder|}:', - 'size' => 40, - 'default' => 'toCustomFields', - 'optionen' => ['toProperties' => '{|Shopware Eigenschaften|}', 'toCustomFields' => '{|Shopware Zusatzfelder|}', 'doNotExport' => '{|Nicht übertragen|}'] - ], - 'shopwareDefaultSalesChannel' => [ - 'heading' => '{|Artikelexport Standardeinstellungen|}', - 'typ' => 'text', - 'bezeichnung' => '{|Standard Sichtbarkeit|}:', - 'size' => 40 - ], - 'shopwareMediaFolder' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Media Folder für Artikelbilder|}:', - 'size' => 40, - 'default' => 'Product Media' - ], - 'statesToFetch' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Abzuholender Bestellstatus|}:', - 'size' => 40, - 'default' => 'open', - 'col' => 2, - 'info' => '
Erlaubte Werte: open;in_progress;completed;cancelled' - ], - 'deliveryStatesToFetch' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Eingrenzen auf Lieferstatus|}:', - 'size' => 40, - 'default' => '', - 'col' => 2, - 'info' => '
Erlaubte Werte: open;shipped_partially;shipped;returned;returned_partially;cancelled' - ], - 'transactionStatesToFetch' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Eingrenzen auf Bezahlstatus|}:', - 'size' => 40, - 'default' => '', - 'col' => 2, - 'info' => '
Erlaubte Werte: open;paid;authorized;paid_partially;refunded;refunded_partially;reminded;cancelled' - ], - 'salesChannelToFetch' => [ - 'typ' => 'text', - 'bezeichnung' => '{|Eingrenzen auf Sales Channel|}:', - 'size' => 40, - 'default' => '', - 'col' => 2, - 'info' => '
Klicke auf "Verbindung prüfen" um die verfügbaren Channels (bitte die Id verwenden) anzuzeigen.' - ], - 'orderSearchLimit' => [ - 'typ' => 'select', - 'bezeichnung' => '{|Anzahl Aufträge abholen|}:', - 'optionen' => [ - '25' => '25', - '50' => '50', - '75' => '75', - '100' => '100', - ], - 'default' => '25', - 'col' => 2 - ], - ], - ]; - } - - public function ImportUpdateZahlungsstatus() - { - $tmp = $this->CatchRemoteCommand('data'); - $auftrag = $tmp['auftrag']; - - $transactions = $this->shopwareRequest('GET', 'order/'.$auftrag.'/transactions'); - $transactionId = $transactions['data'][0]['id']; - - if(empty($transactionId)){ - return; - } - - $response = $this->shopwareRequest('POST', '_action/order_transaction/'.$transactionId.'/state/paid'); - if (!empty($response['id'])) { - return 'ok'; - } - } - - public function ImportSendArtikelbaum(){ - $xentralCategoryTree = []; - $this->app->erp->GetKategorienbaum($xentralCategoryTree, 0, 0, $this->shopid); - - $xentralCategoryIdToParentId = []; - foreach ($xentralCategoryTree as $key => $value) { - $xentralCategoryTree[$key]['erledigt'] = false; - $xentralCategoryTree[$key]['shopid'] = ''; - $xentralCategoryTree[$key]['aktiv'] = false; - $xentralCategoryIdToParentId[$value['id']] = $key; - } - - $parentCategoryId = null; - foreach ($xentralCategoryTree as $index => $categoryData) { - $this->createCategoryTree($index, $xentralCategoryTree, $xentralCategoryIdToParentId, $parentCategoryId); - } - } - - protected function createCategoryTree($id, &$xentralCategoryTree, $xentralCategoryIdToParentId, $parentCategoryId) - { - $parentId = $parentCategoryId; - if ($xentralCategoryTree[$id]['parent']) { - $parentId = $xentralCategoryTree[$xentralCategoryIdToParentId[$xentralCategoryTree[$id]['parent']]]['shopid']; - } - if ($xentralCategoryTree[$id]['parent'] && !$xentralCategoryTree[$xentralCategoryIdToParentId[$xentralCategoryTree[$id]['parent']]]['erledigt']) { - $this->createCategoryTree($xentralCategoryIdToParentId[$xentralCategoryTree[$id]['parent']], $xentralCategoryTree, $xentralCategoryIdToParentId, $parentCategoryId); - } - $xentralCategoryTree[$id]['erledigt'] = true; - - $categoryName = $xentralCategoryTree[$id]['bezeichnung']; - $searchdata = [ - 'limit' => 25, - 'filter' => [ - [ - 'field' => 'category.name', - 'type' => 'equals', - 'value' => $categoryName - ], - [ - 'field' => 'category.parentId', - 'type' => 'equals', - 'value' => $parentId - ] - ] - ]; - - $categoriesInShop = $this->shopwareRequest('POST', 'search/category', $searchdata); - - $categoryId = ''; - if (!empty($categoriesInShop['data'])) { - $categoryId = $categoriesInShop['data'][0]['id']; - } - - if (!$categoryId) { - $categoryData = [ - 'parentId' => $parentId, - 'name' => $categoryName - ]; - $result = $this->shopwareRequest('POST', 'category?_response=true', $categoryData); - if ($result['data']['id']) { - $categoryId = $result['data']['id']; - } - } - - if ($categoryId) { - $xentralCategoryTree[$id]['shopid'] = $categoryId; - } - } - - /** - * @return int - */ - public function ImportSendListLager() - { - $tmp = $this->CatchRemoteCommand('data'); - - $count = 0; - foreach ($tmp as $article) { - $artikel = $article['artikel']; - if ($artikel === 'ignore') { - continue; - } - $nummer = $article['nummer']; - $fremdnummer = $article['fremdnummer']; - if (!empty($fremdnummer)) { - $nummer = $fremdnummer; - } - $articleInfo = $this->shopwareRequest('GET', 'product?filter[product.productNumber]=' . $nummer); - - if (empty($articleInfo['data'][0]['id'])) { - $this->Shopware6Log('Artikel wurde nicht im Shop gefunden: ' . $nummer, $articleInfo); - continue; - } - if(empty($articleInfo['data'][0]['customFields']) - || empty($articleInfo['data'][0]['customFields']['wawision_shopimporter_syncstate'])){ - $this->addSyncCustomFieldToProduct((string)$articleInfo['data'][0]['id']); - } - - $active = true; - if ($article['inaktiv']) { - $active = false; - } - - $stock = $article['anzahl_lager']; - if (!empty($article['pseudolager'])) { - $stock = $article['pseudolager']; - } - $stock = $this->getCorrectedStockFromAvailable($active, (int)$stock, $articleInfo); - $data = [ - 'stock' => $stock, - 'active' => $active, - ]; - $response = $this->shopwareRequest('PATCH', 'product/' . $articleInfo['data'][0]['id'], $data); - $this->Shopware6Log('Lagerbestand konnte nicht uebertragen werden fuer Artikel: ' . $nummer, $response); - $count++; - } - - return $count; - } - - /** - * @param bool $isStockActive - * @param int $stock - * @param array|null $articleInfo - * - * @return int - */ - public function getCorrectedStockFromAvailable(bool $isStockActive, int $stock, ?array $articleInfo): int - { - if(!$isStockActive) { - return $stock; - } - if(empty($articleInfo)) { - return $stock; - } - if(!isset($articleInfo['data'][0]['attributes']['availableStock'])) { - return $stock; - } - if(!isset($articleInfo['data'][0]['attributes']['availableStock'])) { - return $stock; - } - $reserved = (int)$articleInfo['data'][0]['attributes']['stock'] - - (int)$articleInfo['data'][0]['attributes']['availableStock']; - if($reserved <= 0) { - return $stock; - } - - return $stock + $reserved; - } - - /** - * @param string $message - * @param mixed $dump - */ - public function Shopware6Log($message, $dump = '') - { - if ($this->protocol) { - $this->app->erp->Logfile($message, print_r($dump, true)); - } - } - - /** - * @return int - */ - public function ImportSendList() - { - $articleList = $this->CatchRemoteCommand('data'); - - $successCounter = 0; - foreach ($articleList as $article) { - $number = $article['nummer']; - $articleInfo = $this->shopwareRequest( - 'GET', - sprintf('product?filter[product.productNumber]=%s', $number) - ); - $articleIdShopware = ''; - if (!empty($articleInfo['data'][0]['id'])) { - $articleIdShopware = $articleInfo['data'][0]['id']; - } - - $quantity = $article['anzahl_lager']; - if (!empty($article['pseudolager'])) { - $quantity = $article['pseudolager']; - } - $inaktiv = $article['inaktiv']; - $active = true; - if (!empty($inaktiv)) { - $active = false; - } - $quantity = $this->getCorrectedStockFromAvailable($active, (int)$quantity, $articleInfo); - $taxRate = (float)$article['steuersatz']; - - $taxId = $this->getTaxIdByRate($taxRate); - - $mediaToAdd = $this->mediaToExport($article, $articleIdShopware); - - $categoriesToAdd = []; - if($this->exportCategories){ - $categoriesToAdd = $this->categoriesToExport($article, $articleIdShopware); - } - - $propertiesToAdd = $this->propertiesToExport($article, $articleIdShopware); - - $crosselingToAdd = $this->crosssellingToExport($article, $articleIdShopware); - - $systemFieldsToAdd = $this->systemFieldsToExport($article, $articleIdShopware); - - $deliveryTimeId = null; - if(!empty($article['lieferzeitmanuell'])){ - $deliveryTimeId = $this->getDeliveryTimeId($article['lieferzeitmanuell']); - } - - if (empty($systemFieldsToAdd['visibilities']) && !empty($this->shopwareDefaultSalesChannel)) { - $systemFieldsToAdd['visibilities'] = $this->modifySalesChannel(explode(',', $this->shopwareDefaultSalesChannel), $articleIdShopware); - } - - if(empty($systemFieldsToAdd['unitId']) && !empty($article['einheit']) ){ - $systemFieldsToAdd['unitId'] = $this->unitToAdd($article['einheit']); - } - - - //Hersteller in Shopware suchen bzw. Anlegen - $manufacturerName = $article['hersteller']; - $manufacturerId = $this->getManufacturerIdByName($manufacturerName); - - if ($manufacturerId === null && $this->createManufacturerAllowed === true) { - $manufacturerId = $this->createManufacturer($manufacturerName); - } - - if (empty($manufacturerId)) { - return 'error: Für den Artikelexport ist die Herstellerinformation zwingend erforderlich'; - } - - $isCloseOut = false; - if(!empty($article['restmenge'])){ - $isCloseOut = true; - } - - $description = $this->prepareDescription($article['uebersicht_de']); - $ean = $article['ean']; - $metaTitle = $article['metatitle_de']; - $metaDescription = $article['metadescription_de']; - $metaKeywords = $article['metakeywords_de']; - - $manufacturerNumber = $article['herstellernummer']; - if (empty($manufacturerNumber)) { - $manufacturerNumber = ''; - } - - $weight = (float)$article['gewicht']; - $length = (float)$article['laenge'] * 10; - $height = (float)$article['hoehe'] * 10; - $width = (float)$article['breite'] * 10; - - $purchasePrice = (float)$article['einkaufspreis']; - - $currencyId = $this->findCurrencyId($article['waehrung']); - $price = [ - 'net' => $article['preis'], - 'gross' => $article['bruttopreis'], - 'currencyId' => $currencyId, - 'linked' => true]; - - if (!empty($article['pseudopreis'])) { - $price['listPrice'] = [ - 'currencyId' => $currencyId, - 'gross' => $article['pseudopreis'], - 'linked' => true, - 'net' => $article['pseudopreis']/(1+$taxRate/100) - ]; - } - - $data = [ - 'name' => $article['name_de'], - 'isCloseout' => $isCloseOut, - 'productNumber' => $number, - 'manufacturerId' => $manufacturerId, - 'stock' => (int)$quantity, - 'taxId' => $taxId, - 'active' => $active, - 'description' => $description, - 'ean' => $ean, - 'metaTitle' => $metaTitle, - 'metaDescription' => $metaDescription, - 'keywords' => $metaKeywords, - 'manufacturerNumber' => $manufacturerNumber, - 'length' => $length, - 'width' => $width, - 'height' => $height, - 'weight' => $weight, - 'purchasePrice' => $purchasePrice, - 'price' => [$price], - 'categories' => $categoriesToAdd, - 'properties' => $propertiesToAdd, - 'crossSellings' => $crosselingToAdd, - 'media' => $mediaToAdd, - 'deliveryTimeId' => $deliveryTimeId - ]; - - $data = array_merge($data, $systemFieldsToAdd); - if(empty($data['customFields']) - || empty($data['customFields']['wawision_shopimporter_syncstate'])){ - $data['customFields']['wawision_shopimporter_syncstate'] = 1; - } - - if (empty($articleIdShopware)) { - $result = $this->shopwareRequest('POST', - 'product?_response=true', $data); - if (!empty($result['data']['id'])) { - $articleIdShopware = $result['data']['id']; - $articleInfo['data'][0] = $result['data']; - } - } else { - $headerInformation = []; - $languageId = $this->getLanguageIdByCountryIso('DE'); - if (!empty($languageId)) { - $headerInformation[] = 'sw-language-id: ' . $languageId; - } - $result = $this->shopwareRequest('PATCH', - sprintf('product/%s?_response=true', $articleIdShopware), $data, $headerInformation); - } - - if(!empty($articleIdShopware)){ - $this->exportTranslationsForArticle($article, $articleIdShopware); - } - - $this->addCoverImage($article, $articleIdShopware); - - if (empty($result['data']) || is_array($result['errors'])) { - $this->Shopware6Log('Artikelexport fehlgeschlagen', ['data:' => $data, 'response' => $result]); - continue; - } - - $this->exportSeoUrls($article, $articleIdShopware); - - $this->exportVariants($article, $articleIdShopware, $currencyId); - - if (empty($result['data']) || is_array($result['errors'])) { - $this->Shopware6Log('Artikelexport bei Bildübertragung fehlgeschlagen', ['data:' => $data, 'response' => $result]); - continue; - } - - $defaultPrices = $this->getPricesFromArray($article['staffelpreise_standard'] ?? []); - $groupPrices = $this->getPricesFromArray($article['staffelpreise_gruppen'] ?? []); - - if (!empty($defaultPrices) || !empty($groupPrices)) { - $this->deleteOldBulkPrices($articleIdShopware); - } - if (!empty($defaultPrices)) { - foreach ($defaultPrices as $priceData) { - $this->exportBulkPriceForGroup($articleIdShopware, $this->defaultRuleName, $priceData); - } - } - if (!empty($groupPrices)) { - foreach ($groupPrices as $priceData) { - $this->exportBulkPriceForGroup($articleIdShopware, $priceData->getGroupName(), $priceData); - } - } - - $successCounter++; - } - - return $successCounter; - } - - protected function exportBulkPriceForGroup(string $productId, string $groupName, PriceData $priceData): void - { - $currencyId = $this->findCurrencyId($priceData->getCurrency()); - - $groupRuleId = $this->client->getGroupRuleId($groupName); - if (empty($groupRuleId)) { - $this->Shopware6Log("Fehler: Gruppe {$groupName} konnte im Shop nicht gefunden werden"); - return; - } - - $result = $this->client->saveBulkPrice($productId, $groupRuleId, $currencyId, $priceData); - if (empty($result['data'])) { - $this->Shopware6Log("Fehler: Staffelpreis für Gruppe {$groupName} konnte nicht exportiert werden", $result); - } - } - - /** - * @param string $deliveryTimeText - * - * @return string|null - */ - protected function getDeliveryTimeId(string $deliveryTimeText): ?string - { - $searchCommand = [ - 'limit' => 5, - 'filter' => [ - [ - 'field' => 'name', - 'type' => 'equals', - 'value' => $deliveryTimeText - ] - ] - ]; - $result = $this->shopwareRequest('POST', 'search/delivery-time', $searchCommand); - - if (empty($result['data'][0]['id'])) { - return null; - } - - return $result['data'][0]['id']; - } - - /** - * @param string $description - * @return string - */ - protected function prepareDescription($description): string - { - $markupSubstitute = [ - '/"/' => '"', - '/<([^&]+)>/' => '<\1>', - '/\\/' => '', - '/\\<\/strong>/' => '', - '/\\/' => '', - '/\\<\/em>/' => '', - '/&/' => '&', - ]; - - return (string)preg_replace(array_keys($markupSubstitute), array_values($markupSubstitute), $description); - } - - /** - * @param array $article - * @param string $articleIdShopware - */ - protected function exportTranslationsForArticle(array $article, string $articleIdShopware): void - { - $customFieldsToAdd = $this->customFieldsToExport($article, $articleIdShopware); - - $preparedTranslations = []; - $preparedTranslations['DE'] = [ - 'name' => $article['name_de'], - 'description' => $this->prepareDescription($article['uebersicht_de']), - 'metaTitle' => $article['metatitle_de'], - 'metaDescription' => $article['metadescription_de'], - 'keywords' => $article['metakeywords_de'], - 'customFields' => [] - ]; - if(!empty($customFieldsToAdd['DE'])){ - $preparedTranslations['DE']['customFields'] = $customFieldsToAdd['DE']; - } - $preparedTranslations['GB'] = [ - 'name' => $article['name_en'], - 'description' => $this->prepareDescription($article['uebersicht_en']), - 'metaTitle' => $article['metatitle_en'], - 'metaDescription' => $article['metadescription_en'], - 'keywords' => $article['metakeywords_en'], - 'customFields' => [], - ]; - if(!empty($customFieldsToAdd['GB'])){ - $preparedTranslations['GB']['customFields'] = $customFieldsToAdd['GB']; - } - foreach ($article['texte'] as $translation) { - if ($translation['sprache'] === 'EN') { - $translation['sprache'] = 'GB'; - } - $preparedTranslations[$translation['sprache']] = [ - 'name' => $translation['name'], - 'description' => $this->prepareDescription($translation['beschreibung_online']), - 'metaTitle' => $translation['meta_title'], - 'metaDescription' => $translation['meta_description'], - 'keywords' => $translation['meta_keywords'], - ]; - if(!empty($customFieldsToAdd[$translation['sprache']])){ - $preparedTranslations[$translation['sprache']]['customFields'] = $customFieldsToAdd[$translation['sprache']]; - } - } - - foreach ($preparedTranslations as $countryIsoCode => $translation) { - $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); - if (empty($languageId)) { - $this->Shopware6Log('Language Id not found for country: ' . $countryIsoCode); - continue; - } - - $headerInformation = ['sw-language-id: ' . $languageId]; - $this->shopwareRequest( - 'PATCH', - sprintf('product/%s', $articleIdShopware), - $translation, $headerInformation - ); - } - } - - /** - * @param string $countryIso - * - * @return string|null - */ - protected function getLanguageIdByCountryIso(string $countryIso): ?string - { - if(array_key_exists($countryIso, $this->knownShopLanguageIds)){ - return $this->knownShopLanguageIds[$countryIso]; - } - - $searchCommand = [ - 'limit' => 5, - 'filter' => [ - [ - 'field' => 'country.iso', - 'type' => 'equals', - 'value' => $countryIso - ] - ] - ]; - $countryInformation = $this->shopwareRequest('POST', 'search/country', $searchCommand); - - foreach ($countryInformation['data'] as $country){ - $searchCommand = [ - 'limit' => 5, - 'filter' => [ - [ - 'field' => 'locale.territory', - 'type' => 'equals', - 'value' => $country['attributes']['name'] - ] - ] - ]; - $localeInformation = $this->shopwareRequest('POST', 'search/locale', $searchCommand); - foreach ($localeInformation['data'] as $locale) { - $searchCommand = [ - 'limit' => 5, - 'filter' => [ - [ - 'field' => 'language.localeId', - 'type' => 'equals', - 'value' => $locale['id'] - ] - ] - ]; - $languageInformation = $this->shopwareRequest('POST', 'search/language', $searchCommand); - if (!empty($languageInformation['data'][0]['id'])) { - $this->knownShopLanguageIds[$countryIso] = $languageInformation['data'][0]['id']; - return $languageInformation['data'][0]['id']; - } - } - } - $this->knownShopLanguageIds[$countryIso] = null; - - return null; - } - - /** - * @param string $manufacturerName - * - * @return null|string - */ - protected function createManufacturer(string $manufacturerName): ?string - { - $data = ['name' => $manufacturerName]; - $response = $this->shopwareRequest('POST', 'product-manufacturer?_response=true', $data); - - $manufacturerId = null; - if(!empty($response['data']['id'])){ - $manufacturerId = $response['data']['id']; - $this->knownManufacturerIds[$manufacturerName] = $manufacturerId; - } - - return $manufacturerId; - } - - /** - * @param string $manufacturerName - * - * @return null|string - */ - protected function getManufacturerIdByName(string $manufacturerName): ?string - { - if (!empty($this->knownManufacturerIds[$manufacturerName])) { - return $this->knownManufacturerIds[$manufacturerName]; - } - - $manufacturerId = null; - if (empty($manufacturerName)) { - $manufacturerName = $this->defaultManufacturer; - } - $manufacturer = $this->shopwareRequest( - 'GET', - 'product-manufacturer?filter[product_manufacturer.name]=' . urlencode($manufacturerName) - ); - $manufacturerId = $manufacturer['data'][0]['id']; - $this->knownManufacturerIds[$manufacturerName] = $manufacturerId; - - return $manufacturerId; - } - - /** - * @param float $taxRate - * - * @return string - */ - protected function getTaxIdByRate(float $taxRate): string{ - if(empty($this->taxesInShop)){ - $this->taxesInShop = $this->shopwareRequest('GET', 'tax'); - } - foreach ($this->taxesInShop['data'] as $taxData) { - if (abs(($taxData['attributes']['taxRate']-$taxRate)) < 0.0001 ) { - return $taxData['id']; - } - } - - return $this->taxesInShop['data'][0]['id']; - } - - /** - * @param array $internalArticleData - * @param string $articleIdShopware - * - * @return array - */ - protected function mediaToExport($internalArticleData, $articleIdShopware) - { - $mediaToAdd = [ - ]; - - if (empty($internalArticleData['Dateien'])) { - return $mediaToAdd; - } - $internalMediaIds = []; - - $searchdata = [ - 'limit' => 1, - 'filter' => [ - [ - 'field' => 'name', - 'type' => 'equals', - 'value' => $this->shopwareMediaFolder - ] - ] - ]; - $mediaFolderData = $this->shopwareRequest('POST', 'search/media-folder', $searchdata); - if(empty($mediaFolderData['data'][0]['id'])){ - $this->Shopware6ErrorLog('Kein Media Folder gefunden für: ', $this->shopwareMediaFolder); - return []; - } - - $mediaFolderId = $mediaFolderData['data'][0]['id']; - - foreach ($internalArticleData['Dateien'] as $internalFile) { - $filename = explode('.', $internalFile['filename']); - unset($filename[(!empty($filename)?count($filename):0) - 1]); - $filename = $internalFile['id'].'_'.implode($filename); - $extension = $internalFile['extension']; - $imageTitle = (string)$internalFile['titel']; - $imageAltText = (string)$internalFile['beschreibung']; - $accessToken = $this->shopwareToken(); - - $searchdata = [ - 'limit' => 5, - 'filter' => [ - [ - 'field' => 'media.fileName', - 'type' => 'equals', - 'value' => $filename - ] - ] - ]; - $mediaData = $this->shopwareRequest('POST', 'search/media', $searchdata); - if (!empty($mediaData['data'][0]['id'])) { - $internalMediaIds[] = $mediaData['data'][0]['id']; - if($mediaData['data'][0]['attributes']['title'] !== $imageTitle - || $mediaData['data'][0]['attributes']['alt'] !== $imageAltText){ - $this->setMediaTitleAndAltText($mediaData['data'][0]['id'], $imageTitle, $imageAltText); - } - continue; - } - - $mediaData = $this->shopwareRequest('POST', 'media?_response=true', []); - if(empty($mediaData['data']['id'])){ - $this->Shopware6Log('Error when creating media for sku: ' . $internalArticleData['nummer'], - ['mediaData' => $mediaData, 'title' => $imageTitle, 'text' => $imageAltText]); - continue; - } - $mediaId = $mediaData['data']['id']; - $this->setMediaTitleAndAltText($mediaId, $imageTitle, $imageAltText); - - $mediaAssociationData = [ - [ - 'action' => 'upsert', - 'entity' => 'media', - 'payload' => [ - [ - 'id' => $mediaId, - 'mediaFolderId' => $mediaFolderId - ] - ] - ] - ]; - $this->shopwareRequest('POST', '_action/sync?_response=true', $mediaAssociationData); - - $url = $this->ShopUrl . 'v2/_action/media/' . $mediaId . '/upload?extension=' . $extension . '&fileName=' . $filename; - $ch = curl_init(); - $setHeaders = [ - 'Content-Type:image/' . $extension, - 'Authorization:Bearer ' . $accessToken['token'] - ]; - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_POSTFIELDS, base64_decode($internalFile['datei'])); - curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); - curl_setopt($ch, CURLOPT_HTTPHEADER, $setHeaders); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_exec($ch); - - $internalMediaIds[] = $mediaId; - } - - $existingMediaConnection = []; - if (!empty($articleIdShopware)) { - $existingMediaConnection = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/media?limit=100'); - foreach ($existingMediaConnection['data'] as $existingConnection) { - if (!in_array($existingConnection['attributes']['mediaId'], $internalMediaIds, false)) { - $this->shopwareRequest('DELETE', 'product/' . $articleIdShopware . '/media/' . $existingConnection['id']); - } - } - } - - $alreadyAddedMediaIDs = []; - if (!empty($existingMediaConnection)) { - foreach ($existingMediaConnection['data'] as $existingConnection) { - $alreadyAddedMediaIDs[$existingConnection['attributes']['mediaId']] = $existingConnection['id']; - } - } - $position = 0; - foreach ($internalMediaIds as $mediaId) { - $mediaDataSet = [ - 'mediaId' => $mediaId, - 'position' => $position - ]; - if (array_key_exists($mediaId, $alreadyAddedMediaIDs)) { - $mediaDataSet['id'] = $alreadyAddedMediaIDs[$mediaId]; - } - $mediaToAdd[] = $mediaDataSet; - $position++; - } - - return $mediaToAdd; - } - - /** - * @param string $mediaId - * @param string $title - * @param string $altText - */ - protected function setMediaTitleAndAltText(string $mediaId, string $title, string $altText): void - { - $this->shopwareRequest('PATCH', 'media/' . $mediaId, - ['title' => $title, - 'alt' => $altText - ] - ); - } - - /** - * @param array $articleInXentral - * @param string $articleIdShopware - */ - protected function addCoverImage($articleInXentral, $articleIdShopware){ - if(empty($articleIdShopware)){ - return; - } - if(empty($articleInXentral['Dateien'])){ - return; - } - $existingMediaConnection = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/media?limit=100'); - if(empty($existingMediaConnection['data'])){ - return; - } - foreach ($articleInXentral['Dateien'] as $xentralFile) { - $filename = explode('.', $xentralFile['filename']); - unset($filename[(!empty($filename)?count($filename):0) - 1]); - $filename = $xentralFile['id'].'_'.implode($filename); - - $searchdata = [ - 'limit' => 5, - 'filter' => [ - [ - 'field' => 'media.fileName', - 'type' => 'equals', - 'value' => $filename - ] - ] - ]; - $mediaData = $this->shopwareRequest('POST', 'search/media', $searchdata); - $mediaId = $mediaData['data'][0]['id']; - - foreach ($existingMediaConnection['data'] as $mediaConnection){ - if($mediaId === $mediaConnection['attributes']['mediaId']){ - - $this->shopwareRequest('PATCH', - sprintf('product/%s?_response=true', $articleIdShopware),['coverId' => $mediaConnection['id']]); - return; - } - } - } - } - - /** - * @param array $articleInXentral - * @param string $articleIdShopware - * @return array - */ - protected function categoriesToExport($articleInXentral, $articleIdShopware) - { - $categoryName = $articleInXentral['kategoriename']; - $categoryTree = $articleInXentral['kategorien']; - - $categoriesToAdd = []; - if (empty($categoryName) && empty($categoryTree)) { - return $categoriesToAdd; - } - - $categoriesInXentral = []; - if (!empty($categoryTree)) { - $rootcategory = null; - $categoryTreeid = []; - foreach ($categoryTree as $categoryData) { - $categoryData['shopwareparent'] = 0; - if (!$categoryData['parent']) { - $categoryData['shopwareid'] = $rootcategory; - } - $categoryTreeid[$categoryData['id']] = $categoryData; - } - - foreach ($categoryTree as $categoryData) { - $parentid = $rootcategory; - if (!empty($categoryData['parent'])) { - $parentid = $this->getCategoryParentId($categoryData, $categoryTreeid); - } - - $searchdata = [ - 'limit' => 25, - 'filter' => [ - [ - 'field' => 'category.name', - 'type' => 'equals', - 'value' => $categoryData['name'] - ] - ] - ]; - if (!empty($parentid)) { - $searchdata['filter'][] = [ - 'field' => 'category.parentId', - 'type' => 'equals', - 'value' => $parentid - ]; - } - $result = $this->shopwareRequest('POST', 'search/category', $searchdata); - - - if (!empty($result['data'][0]['id'])) { - $categoryTreeid[$categoryData['id']]['shopwareid'] = $result['data'][0]['id']; - $categoriesInXentral[] = $result['data'][0]['id']; - } - } - } else if (!empty($categoryName)) { - $searchdata = [ - 'limit' => 25, - 'filter' => [ - [ - 'field' => 'category.name', - 'type' => 'equals', - 'value' => $categoryName - ] - ] - ]; - - $result = $this->shopwareRequest('POST', 'search/category', $searchdata); - - if (!empty($result['data'][0]['id'])) { - $categoriesInXentral[] = $result['data'][0]['id']; - } - } - - if (!empty($articleIdShopware)) { - $existingCategories = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/categories?limit=50'); - foreach ($existingCategories['data'] as $existingCategory) { - if (!in_array($existingCategory['id'], $categoriesInXentral, false)) { - $this->shopwareRequest('DELETE', 'product/' . $articleIdShopware . '/categories/' . $existingCategory['id']); - } - } - } - foreach ($categoriesInXentral as $categoryId) { - $categoriesToAdd[] = ['id' => $categoryId]; - } - - - return $categoriesToAdd; - } - - /** - * @param $categoryData - * @param $categoryTreeId - * @return string|null - */ - protected function getCategoryParentId($categoryData, &$categoryTreeId) - { - $parentId = $categoryTreeId[$categoryData['parent']]['shopwareid']; - if (!empty($parentId)) { - return $parentId; - } - - $parentCategoryData = $this->app->DB->SelectRow("SELECT id,parent,bezeichnung AS name FROM artikelkategorien WHERE id<>'' AND id<>'0' AND id='" . $categoryData['parent'] . "' LIMIT 1"); - if (empty($parentCategoryData)) { - return null; - } - - $searchData = [ - 'limit' => 25, - 'filter' => [ - [ - 'field' => 'category.name', - 'type' => 'equals', - 'value' => $parentCategoryData['name'] - ] - ] - ]; - $result = $this->shopwareRequest('POST', 'search/category', $searchData); - - if (count($result['data']) < 1) { - return null; - } - - if (count($result['data']) === 1) { - $parentCategoryData['shopwareid'] = $result['data'][0]['id']; - $categoryTreeId[$parentCategoryData['id']] = $parentCategoryData; - return $result['data'][0]['id']; - } - - $grandparentId = $this->getCategoryParentId($parentCategoryData, $categoryTreeId); - - $searchData = [ - 'limit' => 25, - 'filter' => [ - [ - 'field' => 'category.name', - 'type' => 'equals', - 'value' => $parentCategoryData['name'] - ], - [ - 'field' => 'category.parentId', - 'type' => 'equals', - 'value' => $grandparentId - ] - ] - ]; - $result = $this->shopwareRequest('POST', 'search/category', $searchData); - - - if (count($result['data']) === 1) { - $parentCategoryData['shopwareid'] = $result['data'][0]['id']; - $categoryTreeId[$parentCategoryData['id']] = $parentCategoryData; - return $result['data'][0]['id']; - } - return null; - } - - /** - * @param string $propertyName - * - * @return string|null - */ - protected function getPropertyGroupId($propertyName): ?string - { - if(array_key_exists($propertyName, $this->knownPropertyGroupIds)){ - return $this->knownPropertyGroupIds[$propertyName]; - } - - $searchData = [ - 'limit' => 25, - 'filter' => [ - [ - 'field' => 'property_group.name', - 'type' => 'equals', - 'value' => $propertyName - ] - ] - ]; - - $germanLanguageId = $this->getLanguageIdByCountryIso('DE'); - $headerInformation = ['sw-language-id: ' . $germanLanguageId]; - $propertyData = $this->shopwareRequest( - 'POST', - 'search/property-group', - $searchData, - $headerInformation); - if (empty($propertyData['data'][0]['id'])) { - return null; - } - - $this->knownPropertyGroupIds[$propertyName] = $propertyData['data'][0]['id']; - - return $propertyData['data'][0]['id']; - } - - /** - * @param string $propertyName - * @return null|string - */ - protected function createPropertyGroup($propertyName): ?string - { - $propertyGroupData = [ - 'displayType' => 'text', - 'name' => $propertyName, - 'sortingType' => 'alphanumeric' - ]; - $propertyGroup = $this->shopwareRequest( - 'POST', - 'property-group?_response=true', - $propertyGroupData); - - $this->knownPropertyGroupIds[$propertyName] = $propertyGroup['data']['id']; - - if (empty($propertyGroup['data']['id'])) { - return null; - } - - return $propertyGroup['data']['id']; - } - - /** - * @param string $propertyGroupId - * @param string $propertyName - * @param string $countryIsoCode - */ - protected function createTranslationForPropertyGroup($propertyGroupId, $propertyName, $countryIsoCode): void - { - $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); - if (empty($languageId)) { - return; - } - - $headerInformation = ['sw-language-id: ' . $languageId]; - - $translation = [ - 'name' => $propertyName, - ]; - - $this->shopwareRequest( - 'PATCH', - sprintf('property-group/%s', $propertyGroupId), - $translation, - $headerInformation); - } - - /** - * @param string $propertyGroupId - * @param string $propertyOptionName - * @param string $countryIsoCode - * @return mixed|null - */ - protected function getPropertyOptionId($propertyGroupId, $propertyOptionName, $countryIsoCode = 'DE'): ?string - { - $searchData = [ - 'limit' => 25, - 'filter' => [ - [ - 'field' => 'property_group_option.name', - 'type' => 'equals', - 'value' => $propertyOptionName - ] - ] - ]; - $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); - $headerInformation = ['sw-language-id: ' . $languageId]; - $optionData = $this->shopwareRequest( - 'POST', - 'search/property-group/' . $propertyGroupId . '/options', - $searchData, - $headerInformation); - - if (empty($optionData['data'][0]['id'])) { - return null; - } - - return $optionData['data'][0]['id']; - } - - /** - * @param string $propertyGroupId - * @param string $propertyOptionName - * @return null|string - */ - protected function createPropertyOption($propertyGroupId, $propertyOptionName): ?string - { - $propertyOptionData = [ - 'id' => '', - 'name' => $propertyOptionName - ]; - $createdPropertyOption = $this->shopwareRequest( - 'POST', - 'property-group/' . $propertyGroupId . '/options?_response=true', - $propertyOptionData); - - if (empty($createdPropertyOption['data']['id'])) { - return null; - } - - return $createdPropertyOption['data']['id']; - } - - /** - * @param string $optionId - * @param string $optionName - * @param string $countryIsoCode - */ - protected function createTranslationForPropertyOption($optionId, $optionName, $countryIsoCode): void - { - $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); - if (empty($languageId)) { - return; - } - $headerInformation = ['sw-language-id: ' . $languageId]; - $translation = [ - 'name' => $optionName, - ]; - - $this->shopwareRequest( - 'PATCH', - sprintf('property-group-option/%s', $optionId), - $translation, - $headerInformation); - } - - /** - * @param array $internalArticle - * @param string $articleIdShopware - * @return array - */ - protected function propertiesToExport($internalArticle, $articleIdShopware): array - { - $propertiesToAdd = $this->getPropertiesFromArticle($internalArticle); - if (empty($propertiesToAdd)) { - return []; - } - $assignedProperties = []; - - foreach ($propertiesToAdd as $propertyDefaultName => $countryIsoToPropertyTranslation) { - if (empty($countryIsoToPropertyTranslation['DE'])) { - continue; - } - $propertyGroupId = ''; - if (array_key_exists($propertyDefaultName, $this->knownPropertyGroupIds)) { - $propertyGroupId = $this->knownPropertyGroupIds[$propertyDefaultName]; - } - if (empty($propertyGroupId)) { - $propertyGroupId = $this->getPropertyGroupId($propertyDefaultName); - } - if (empty($propertyGroupId)) { - $propertyGroupId = $this->createPropertyGroup($propertyDefaultName); - } - if (empty($propertyGroupId)) { - $this->Shopware6Log('PropertyGroup kann nicht erstellt werden: ' . $propertyDefaultName); - continue; - } - - foreach ($countryIsoToPropertyTranslation as $countryIsoCode => $translation) { - $this->createTranslationForPropertyGroup($propertyGroupId, $translation['name'], $countryIsoCode); - } - - - $optionId = $this->getPropertyOptionId($propertyGroupId, $countryIsoToPropertyTranslation['DE']['value'], 'DE'); - if (empty($optionId)) { - $optionId = $this->createPropertyOption($propertyGroupId, $countryIsoToPropertyTranslation['DE']['value']); - } - if (empty($optionId)) { - $this->Shopware6Log('Option kann nicht erstellt werden: ' . $countryIsoToPropertyTranslation['DE']['value']); - continue; - } - - $assignedProperties[] = $optionId; - - foreach ($countryIsoToPropertyTranslation as $countryIsoCode => $translation) { - $this->createTranslationForPropertyOption($optionId, $translation['value'], $countryIsoCode); - } - } - - if (!empty($articleIdShopware)) { - $existingProperties = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/properties?limit=100'); - foreach ($existingProperties['data'] as $existingProperty) { - if (!in_array($existingProperty['id'], $assignedProperties, false)) { - $this->shopwareRequest('DELETE', 'product/' . $articleIdShopware . '/properties/' . $existingProperty['id']); - } - } - } - - $propertiesToAdd = []; - foreach ($assignedProperties as $propertyOptionId) { - $propertiesToAdd[] = ['id' => $propertyOptionId]; - } - - return $propertiesToAdd; - } - - /** - * @param string $name - * @param string $value - * @return bool - */ - protected function propertyMustBeIgnored(string $name, string $value): bool - { - return empty($value) || - strpos($name, 'customField_') === 0 || - stripos($name, 'shopware6_') !== false; - } - - /** - * @param array $internalArticleData - * @return array - */ - protected function getPropertiesFromArticle($internalArticleData): array - { - //'Farbe' => [['DE' => ['name' => 'Farbe, 'value' => 'Gelb']], - // ['EN' => ['name' => 'Colour, 'value' => 'Yellow']]] - $propertiesToAdd = []; - if (!empty($internalArticleData['eigenschaften'])) { - foreach ($internalArticleData['eigenschaften'] as $property) { - if ($this->propertyMustBeIgnored($property['name'], $property['values'])) { - continue; - } - if (strpos($property['name'], 'property_') === 0) { - $propertyName = substr($property['name'], 9); - $propertiesToAdd[$propertyName]['DE'] = [ - 'name' => $propertyName, - 'value' => $property['values']]; - continue; - } - if ($this->propertyOption === 'toProperties') { - $propertiesToAdd[$property['name']]['DE'] = [ - 'name' => $property['name'], - 'value' => $property['values']]; - } - } - } - - if (!empty($internalArticleData['eigenschaftenuebersetzungen'])) { - foreach ($internalArticleData['eigenschaftenuebersetzungen'] as $translatedProperty) { - if ($translatedProperty['language_to'] === 'EN') { - $translatedProperty['language_to'] = 'GB'; - } - if ($this->propertyMustBeIgnored($translatedProperty['property_to'], $translatedProperty['property_value_to'])) { - continue; - } - if (strpos($translatedProperty['property_to'], 'property_') === 0) { - $propertiesToAdd[$translatedProperty['property_from']][$translatedProperty['language_to']] = [ - 'name' => substr($translatedProperty['property_to'], 9), - 'value' => $translatedProperty['property_value_to']]; - continue; - } - if ($this->propertyOption === 'toProperties') { - $propertiesToAdd[$translatedProperty['property_from']][$translatedProperty['language_to']] = [ - 'name' => $translatedProperty['property_to'], - 'value' => $translatedProperty['property_value_to']]; - } - } - } - - if (!empty($internalArticleData['freifelder'])) { - foreach ($internalArticleData['freifelder']['DE'] as $freeFieldKey => $freeFieldValue) { - if ($this->propertyMustBeIgnored($freeFieldKey, $freeFieldValue)) { - continue; - } - if (strpos($freeFieldKey, 'property_') === 0) { - $propertyName = substr($freeFieldKey, 9); - $propertiesToAdd[$propertyName]['DE'] = [ - 'name' => $propertyName, - 'value' => $freeFieldValue - ]; - continue; - } - if ($this->freeFieldOption === 'toProperties') { - $propertiesToAdd[$freeFieldKey]['DE'] = [ - 'name' => $freeFieldKey, - 'value' => $freeFieldValue - ]; - } - } - - foreach ($internalArticleData['freifelder'] as $languageIso => $freeFields) { - if ($languageIso === 'DE') { - continue; - } - if ($languageIso === 'EN') { - $languageIso = 'GB'; - } - foreach ($freeFields as $freeFieldData) { - if ($this->propertyMustBeIgnored($freeFieldData['mapping'], $freeFieldData['wert'])) { - continue; - } - if (strpos($freeFieldData['mapping'], 'property_') === 0) { - $propertyName = substr($freeFieldData['mapping'], 9); - $propertiesToAdd[$propertyName][$languageIso] = [ - 'name' => $propertyName, - 'value' => $freeFieldData['wert'] - ]; - continue; - } - if ($this->freeFieldOption === 'toProperties') { - $propertiesToAdd[$freeFieldData['mapping']][$languageIso] = [ - 'name' => $freeFieldData['mapping'], - 'value' => $freeFieldData['wert'] - ]; - } - } - } - } - - return $propertiesToAdd; - } - - /** - * @param array $articleInXentral - * @param string $articleIdShopware - * - * @return array - */ - protected function customFieldsToExport($articleInXentral, $articleIdShopware): array - { - $customFieldsToAdd = $this->getCustomFieldsFromArticle($articleInXentral); - if (empty($customFieldsToAdd)) { - return []; - } - $languageId = $this->getLanguageIdByCountryIso('DE'); - $headerInformation = ['sw-language-id: ' . $languageId]; - - $customFields = []; - if (!empty($articleIdShopware)) { - $articleInfo = $this->shopwareRequest( - 'GET', 'product/' . $articleIdShopware, - [], - $headerInformation); - $customFields['DE'] = $articleInfo['data'][0]['attributes']['customFields']; - if ($customFields === null) { - $customFields = []; - } - } - - foreach ($customFieldsToAdd as $defaultFieldName => $countryIsoCodeToCustomFieldData) { - $customFieldDefinition = $this->shopwareRequest( - 'GET', - sprintf('custom-field?filter[custom_field.name]=%s', $defaultFieldName), - [], - $headerInformation - ); - if (empty($customFieldDefinition)) { - $this->Shopware6Log('Freifeld entspricht keinem shopware Freifeld', $defaultFieldName); - continue; - } - - foreach ($countryIsoCodeToCustomFieldData as $countryIsoCode => $customFieldData) { - $name = $customFieldData['name']; - $value = $customFieldData['value']; - if ($value === '') { - continue; - } - if($countryIsoCode === 'EN'){ - $countryIsoCode = 'GB'; - } - $fieldType = $customFieldDefinition['data'][0]['attributes']['type']; - $controlType = $customFieldDefinition['data'][0]['attributes']['config']['componentName']; - - switch ($fieldType) { - case 'text': - case 'html': - if ($controlType === 'sw-media-field') { - $this->Shopware6Log( - 'Warnung: Freifelder vom Type "medium" werden nicht unterstützt.' - ); - } else { - $customFields[$countryIsoCode][$name] = (string)$value; - } - break; - case 'bool': - $customFields[$countryIsoCode][$name] = filter_var($value, FILTER_VALIDATE_BOOLEAN); - break; - case 'int': - $customFields[$countryIsoCode][$name] = (int)$value; - break; - case 'float': - $customFields[$countryIsoCode][$name] = (float)$value; - break; - case 'select': - $options = $customFieldDefinition['data'][0]['attributes']['config']['options']; - $allowedValues = []; - foreach ($options as $option) { - $allowedValues[] = $option['value']; - } - if ($controlType === 'sw-single-select') { - if (in_array($value, $allowedValues, true)) { - $customFields[$countryIsoCode][$name] = $value; - } else { - $this->Shopware6Log( - sprintf('Warnung: Freifeld "%s"="%s"; ungültiger Wert', $name, $value), - ['allowed values' => $allowedValues] - ); - } - } - if ($controlType === 'sw-multi-select') { - $value = explode(',', $value); - foreach ($value as &$item) { - $item = trim($item); - } - unset($item); - if (array_intersect($value, $allowedValues) === $value) { - $customFields[$countryIsoCode][$name] = $value; - } else { - $this->Shopware6Log( - sprintf('Warnung: Freifeld "%s"; ungültiger Wert', $name), - ['values' => $value, 'allowed values' => $allowedValues] - ); - } - } - break; - default: - $this->Shopware6Log( - 'Warnung: Freifeld enthält falschen Typ.', - ['freifeld' => $name, 'wert' => $value] - ); - continue 2; - } - } - } - - - return $customFields; - } - - /** - * @param string $name - * @param string $value - * @return bool - */ - protected function customFieldMustBeIgnored(string $name, string $value): bool - { - return empty($value) || - strpos($name, 'property_') === 0 || - stripos($name, 'shopware6_') !== false; - } - - /** - * @param array $articleInXentral - * @return array - */ - protected function getCustomFieldsFromArticle($articleInXentral): array - { - $customFieldsToAdd = []; - if (!empty($articleInXentral['eigenschaften'])) { - foreach ($articleInXentral['eigenschaften'] as $propertyInXentral) { - if ($this->customFieldMustBeIgnored($propertyInXentral['name'], $propertyInXentral['values'])) { - continue; - } - if (strpos($propertyInXentral['name'], 'customField_') === 0) { - $customFieldName = substr($propertyInXentral['name'], 12); - $customFieldsToAdd[$customFieldName]['DE'] = [ - 'name' => $customFieldName, - 'value' => $propertyInXentral['values'] - ]; - continue; - } - if ($this->propertyOption === 'toCustomFields') { - $customFieldsToAdd[$propertyInXentral['name']]['DE'] = [ - 'name' => $propertyInXentral['name'], - 'value' => $propertyInXentral['values'] - ]; - } - } - } - if (!empty($articleInXentral['eigenschaftenuebersetzungen'])) { - foreach ($articleInXentral['eigenschaftenuebersetzungen'] as $translatedProperty) { - if ($this->customFieldMustBeIgnored($translatedProperty['property_to'], $translatedProperty['property_value_to'])) { - continue; - } - if (strpos($translatedProperty['property_to'], 'customField_') === 0) { - $customFieldName = substr($translatedProperty['property_to'], 12); - $customFieldsToAdd[$customFieldName][$translatedProperty['language_to']] = [ - 'name' => $customFieldName, - 'value' => $translatedProperty['property_value_to'] - ]; - continue; - } - if ($this->propertyOption === 'toCustomFields') { - $customFieldsToAdd[$translatedProperty['property_to']][$translatedProperty['language_to']] = [ - 'name' => $translatedProperty['property_to'], - 'value' => $translatedProperty['property_value_to'] - ]; - } - } - } - - if (!empty($articleInXentral['freifelder'])) { - foreach ($articleInXentral['freifelder']['DE'] as $freeFieldKey => $freeFieldValue) { - if ($this->customFieldMustBeIgnored($freeFieldKey, $freeFieldValue)) { - continue; - } - if (strpos($freeFieldKey, 'customField_') === 0) { - $customFieldName = substr($freeFieldKey, 12); - $customFieldsToAdd[$customFieldName]['DE'] = [ - 'name' => $customFieldName, - 'value' => $freeFieldValue - ]; - continue; - } - if ($this->freeFieldOption === 'toCustomFields') { - $customFieldsToAdd[$freeFieldKey]['DE'] = [ - 'name' => $freeFieldKey, - 'value' => $freeFieldValue - ]; - } - } - - foreach ($articleInXentral['freifelder'] as $countryIsoCode => $freeFieldTranslations) { - if ($countryIsoCode === 'DE') { - continue; - } - foreach ($freeFieldTranslations as $freeFieldTranslation){ - if ($this->customFieldMustBeIgnored($freeFieldTranslation['mapping'], $freeFieldTranslation['wert'])) { - continue; - } - if ($countryIsoCode === 'EN') { - $countryIsoCode = 'GB'; - } - if (strpos($freeFieldTranslation['mapping'], 'customField_') === 0) { - $customFieldName = substr($freeFieldTranslation['mapping'], 12); - $customFieldsToAdd[$customFieldName][$countryIsoCode] = [ - 'name' => $customFieldName, - 'value' => $freeFieldTranslation['wert'] - ]; - continue; - } - if ($this->freeFieldOption === 'toCustomFields') { - $customFieldsToAdd[$freeFieldTranslation['mapping']][$countryIsoCode] = [ - 'name' => $freeFieldTranslation['mapping'], - 'value' => $freeFieldTranslation['wert'] - ]; - } - } - } - } - - return $customFieldsToAdd; - } - - /** - * @param array $articleInXentral - * @param int $articleIdShopware - * - * @return array - */ - protected function crosssellingToExport($articleInXentral, $articleIdShopware){ - if (empty($articleInXentral['crosssellingartikel'])) { - return []; - } - - $crosssellingArticles = []; - foreach ($articleInXentral['crosssellingartikel'] as $crosssellingArticle){ - $type = 'Ähnlich'; - if($crosssellingArticle['art'] == 2){ - $type = 'Zubehör'; - } - $crosssellingArticles[$type][] = $crosssellingArticle['nummer']; - } - $crossselingInformation = []; - foreach ($crosssellingArticles as $type => $articles){ - if(!empty($articleIdShopware)){ - $existingCrossSellings = $this->shopwareRequest('GET', sprintf('product/%s/cross-sellings/', - $articleIdShopware)); - if(!empty($existingCrossSellings['data'])){ - foreach ($existingCrossSellings['data'] as $existingCrossSelling){ - if($existingCrossSelling['attributes']['name'] === $type){ - $this->shopwareRequest('DELETE', sprintf('product/%s/cross-sellings/%s/', - $articleIdShopware, $existingCrossSelling['id'])); - } - } - } - } - - $crosselingToAdd = []; - foreach ($articles as $articleNumber) { - $articleInfo = $this->shopwareRequest( - 'GET', - sprintf('product?filter[product.productNumber]=%s', $articleNumber) - ); - - if(empty($articleInfo['data'][0]['id'])){ - continue; - } - $crosselingToAdd[] = $articleInfo['data'][0]['id']; - } - if(empty($crosselingToAdd)){ - continue; - } - $crossselingInformationForType = [ - 'active' => true, - 'name' => $type, - 'assignedProducts' => [], - 'type' => 'productList', - 'sortBy' => 'name', - 'limit' => 24, - 'position' => 1 - ]; - $position = 1; - foreach ($crosselingToAdd as $articleId){ - $crossselingInformationForType['assignedProducts'][] = [ - 'productId' => $articleId, - 'position' => $position, - ]; - $position++; - } - $crossselingInformation[] = $crossselingInformationForType; - } - - - return $crossselingInformation; - } - - /** - * @param string $unitShortCode - * - * @return string - */ - protected function unitToAdd(string $unitShortCode): string{ - $searchData = [ - 'limit' => 25, - 'source' => [ - 'id' - ], - 'filter' => [ - [ - 'field' => 'unit.shortCode', - 'type' => 'equals', - 'value' => $unitShortCode - ] - ] - ]; - $unitInShopware = $this->shopwareRequest( - 'POST', - 'search/unit', - $searchData); - - if(!empty($unitInShopware['data'][0]['id'])){ - return $unitInShopware['data'][0]['id']; - } - - $query = sprintf("SELECT `internebemerkung` FROM `artikeleinheit` WHERE `einheit_de` = '%s' LIMIT 1", - $unitShortCode); - $unitName = $this->app->DB->Select($query); - if(empty($unitName)){ - $unitName = $unitShortCode; - } - - $unitInformation = [ - 'name' => $unitName, - 'shortCode' => $unitShortCode - ]; - $result = $this->shopwareRequest('POST', 'unit?_response=true', $unitInformation); - - if(empty($result['data']['id'])){ - return ''; - } - - return $result['data']['id']; - } - - /** - * @param array $internArticle - * @param int $articleIdShopware - * - * @return array - */ - protected function systemFieldsToExport($internArticle, $articleIdShopware): array - { - $internalSpecialFields = []; - foreach ($internArticle['freifelder']['DE'] as $freeFieldName => $freeFieldValue) { - if (stripos($freeFieldName, 'shopware6_') !== false) { - $internalSpecialFields[$freeFieldName] = $freeFieldValue; - } - } - foreach ($internArticle['eigenschaften'] as $property) { - if (stripos($property['name'], 'shopware6_') !== false) { - $internalSpecialFields[$property['name']] = $property['values']; - } - } - - $systemFields = []; - foreach ($internalSpecialFields as $fieldName => $fieldValue) { - switch (strtolower($fieldName)) { - case 'shopware6_sales_channel': - $systemFields['visibilities'] = $this->modifySalesChannel(explode(',', $fieldValue), $articleIdShopware); - break; - case 'shopware6_purchase_unit': - $systemFields['purchaseUnit'] = (float)str_replace(',', '.', $fieldValue); - break; - case 'shopware6_reference_unit': - $systemFields['referenceUnit'] = (float)str_replace(',', '.', $fieldValue); - break; - case 'shopware6_unit': - $systemFields['unitId'] = $this->unitToAdd($fieldValue); - break; - case 'shopware6_pack_unit': - $systemFields['packUnit'] = (string)$fieldValue; - break; - case 'shopware6_restock_time': - $systemFields['restockTime'] = (int)$fieldValue; - break; - case 'shopware6_pack_unit_plural': - $systemFields['packUnitPlural'] = (string)$fieldValue; - break; - } - } - - return $systemFields; - } - - /** - * @param array $salesChannelNames - * @param string $articleIdInShopware - * - * @return array - */ - protected function modifySalesChannel($salesChannelNames, $articleIdInShopware) - { - $salesChannelInXentralIds = []; - foreach ($salesChannelNames as $salesChannelName) { - $salesChannelInfo = $this->shopwareRequest('GET', - sprintf('sales-channel?filter[sales_channel.name]=%s', urlencode(trim($salesChannelName))) - ); - if (!empty($salesChannelInfo['data'][0]['id'])) { - $salesChannelInXentralIds[] = $salesChannelInfo['data'][0]['id']; - } - } - - $existingVisibilities = $this->shopwareRequest( - 'GET', - sprintf('product/%s/visibilities', $articleIdInShopware) - ); - - $existingSalesChannelIds = []; - if (!empty($existingVisibilities['data'])) { - foreach ($existingVisibilities['data'] as $visibility) { - $existingSalesChannelIds[$visibility['id']] = $visibility['attributes']['salesChannelId']; - } - } - - foreach ($existingSalesChannelIds as $associationId => $existingSalesChannelId){ - if (!in_array($existingSalesChannelId, $salesChannelInXentralIds,true)) { - $this->shopwareRequest('DELETE', sprintf('product/%s/visibilities/%s/', - $articleIdInShopware, $associationId)); - } - } - - $salesChannelsToAdd = []; - foreach ($salesChannelInXentralIds as $salesChannelInXentralId){ - if (!in_array($salesChannelInXentralId, $existingSalesChannelIds,true)) { - $salesChannelsToAdd[] = $salesChannelInXentralId; - } - } - - $visibilities = []; - foreach ($salesChannelsToAdd as $salesChannelIdToAdd) { - $visibilities[] = [ - 'salesChannelId' => $salesChannelIdToAdd, - 'visibility' => 30 - ]; - } - - return $visibilities; - } - - /** - * @param string $isoCode - * - * @return string - */ - protected function findCurrencyId($isoCode) - { - - $this->requestCurrencyMappingLazy(); - if (isset($this->currencyMapping[strtoupper($isoCode)])) { - return $this->currencyMapping[strtoupper($isoCode)]; - } - $this->Shopware6Log( - sprintf('Warnung: Kein Mapping für Waehrung "%s" gefunden.', $isoCode), - $this->currencyMapping - ); - - return null; - } - - /** - * request currency mapping only once - */ - protected function requestCurrencyMappingLazy() - { - - if ($this->currencyMapping !== null) { - return; - } - $currencies = $this->shopwareRequest('GET', 'currency'); - if (!isset($currencies['data'])) { - $this->Shopware6Log('Kann Währungsmapping nicht abrufen', $currencies); - } - foreach ($currencies['data'] as $currency) { - $isoCode = strtoupper($currency['attributes']['isoCode']); - $this->currencyMapping[$isoCode] = $currency['id']; - } - } - - /** - * @param array $internalArticleData - * @param string $articleIdInShopware - * @return bool - */ - public function exportSeoUrls(array $internalArticleData, string $articleIdInShopware): bool - { - if (empty($articleIdInShopware)) { - return false; - } - - $preparedSeoInformation = []; - foreach ($internalArticleData['freifelder'] as $countryIsoCode => $freeFieldInformation) { - if($countryIsoCode === 'EN'){ - $countryIsoCode = 'GB'; - } - if($countryIsoCode === 'DE'){ - foreach ($freeFieldInformation as $freeFieldName => $freeFieldValue) { - if (stripos($freeFieldName, 'shopware6_seo_url') !== false) { - $preparedSeoInformation[$countryIsoCode][$freeFieldName] = $freeFieldValue; - } - } - }else{ - foreach ($freeFieldInformation as $freeFieldData) { - if (stripos($freeFieldData['mapping'], 'shopware6_seo_url') !== false) { - $preparedSeoInformation[$countryIsoCode][$freeFieldData['mapping']] = $freeFieldData['wert']; - } - } - } - } - foreach ($internalArticleData['eigenschaften'] as $property) { - if (stripos($property['name'], 'shopware6_seo_url') !== false) { - $preparedSeoInformation['DE'][$property['name']] = $property['values']; - } - } - foreach ($internalArticleData['eigenschaftenuebersetzungen'] as $propertyTranslation) { - if($propertyTranslation['language_to'] === 'EN'){ - $propertyTranslation['language_to'] = 'GB'; - } - if (stripos($propertyTranslation['property_to'], 'shopware6_seo_url') !== false) { - $preparedSeoInformation[$propertyTranslation['language_to']][$propertyTranslation['property_to']] = $propertyTranslation['property_value_to']; - } - } - - $specificSalesChannelSeoUrls = []; - $defaultSeoUrls = []; - foreach ($preparedSeoInformation as $countryIsoCode => $channelAssociations) { - foreach ($channelAssociations as $fieldName => $fieldValue){ - if(strtolower($fieldName) === 'shopware6_seo_url'){ - $defaultSeoUrls[$countryIsoCode] = $fieldValue; - }else{ - $seoInformation = explode('|', $fieldName); - $specificSalesChannelSeoUrls[$countryIsoCode][array_pop($seoInformation)] = $fieldValue; - } - } - } - - if (empty($specificSalesChannelSeoUrls) && empty($defaultSeoUrls)) { - return false; - } - - $salesChannelsIdToName = []; - $salesChannels = $this->shopwareRequest('GET','sales-channel'); - foreach ($salesChannels['data'] as $salesChannel) { - $salesChannelsIdToName[$salesChannel['id']] = $salesChannel['attributes']['name']; - } - - foreach ($preparedSeoInformation as $countryIsoCode => $x){ - $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); - if (empty($languageId)) { - $this->Shopware6Log('Language Id not found for country: ' . $countryIsoCode); - continue; - } - - $headerInformation = ['sw-language-id: ' . $languageId]; - foreach ($salesChannelsIdToName as $salesChannelId => $salesChannelName) { - $seoUrlToUse = $defaultSeoUrls[$countryIsoCode]; - if (!empty($specificSalesChannelSeoUrls[$countryIsoCode][$salesChannelName])) { - $seoUrlToUse = $specificSalesChannelSeoUrls[$countryIsoCode][$salesChannelsIdToName[$salesChannelName]]; - } - if (empty($seoUrlToUse)) { - continue; - } - $seoDataToSend = [ - 'seoPathInfo' => $seoUrlToUse, - '_isNew' => true, - 'isModified' => true, - 'isCanonical' => true, - 'isDeleted' => false, - 'routeName' => 'frontend.detail.page', - 'foreignKey' => $articleIdInShopware, - 'pathInfo' => '/detail/'.$articleIdInShopware, - 'languageId' => $languageId, - 'salesChannelId' => $salesChannelId]; - $this->shopwareRequest('PATCH', '_action/seo-url/canonical', $seoDataToSend, $headerInformation); - } - } - - return true; - } - - /** - * @param array $article - * @param string $articleIdShopware - * @param string $currencyId - * - * @return bool - */ - protected function exportVariants($article, $articleIdShopware, $currencyId): bool - { - $languageId = $this->getLanguageIdByCountryIso('DE'); - if (empty($languageId)) { - return false; - } - if (empty($article['matrix_varianten']) || empty($articleIdShopware)) { - return false; - } - $internalGroupPropertiesToShopwareId = []; - foreach ($article['matrix_varianten']['gruppen'] as $propertyGroupName => $internalPropertyGroupValues) { - $propertyGroupId = ''; - if (array_key_exists($propertyGroupName, $this->knownPropertyGroupIds)) { - $propertyGroupId = $this->knownPropertyGroupIds[$propertyGroupName]; - } - if (empty($propertyGroupId)) { - $propertyGroupId = $this->getPropertyGroupId($propertyGroupName); - } - if (empty($propertyGroupId)) { - $propertyGroupId = $this->createPropertyGroup($propertyGroupName); - } - if (empty($propertyGroupId)) { - $this->Shopware6Log('PropertyGroup kann nicht erstellt werden: ' . $propertyGroupName); - return false; - } - - if (!empty($article['matrix_varianten']['texte'])) { - $this->createTranslationForPropertyGroup($propertyGroupId, $propertyGroupName, 'DE'); - - foreach ($article['matrix_varianten']['texte']['gruppen'] as $countryIsoCode => $matrixGroupTranslation) { - if ($countryIsoCode === 'EN') { - $countryIsoCode = 'GB'; - } - - $this->createTranslationForPropertyGroup($propertyGroupId, $matrixGroupTranslation[$propertyGroupName], $countryIsoCode); - } - } - - $languageId = $this->getLanguageIdByCountryIso('DE'); - $headerInformation = ['sw-language-id: ' . $languageId]; - $shopwarePropertyGroupOptions = $this->shopwareRequest( - 'GET', - 'property-group/' . $propertyGroupId . '/options?limit=100', - $headerInformation); - foreach ($shopwarePropertyGroupOptions['data'] as $shopwarePropertyGroupOption) { - $propertyValue = $shopwarePropertyGroupOption['attributes']['name']; - $internalGroupPropertiesToShopwareId[$propertyGroupName][$propertyValue] = $shopwarePropertyGroupOption['id']; - } - - foreach ($internalPropertyGroupValues as $internalPropertyGroupValue => $valueNotNeeded) { - if (!array_key_exists($internalPropertyGroupValue, $internalGroupPropertiesToShopwareId[$propertyGroupName])) { - $newOptionData = [ - 'name' => (string)$internalPropertyGroupValue - ]; - $optionData = $this->shopwareRequest( - 'POST', - 'property-group/' . $propertyGroupId . '/options?_response=true', - $newOptionData); - $internalGroupPropertiesToShopwareId[$propertyGroupName][$internalPropertyGroupValue] = $optionData['data']['id']; - } - } - - if (!empty($article['matrix_varianten']['texte'])) { - foreach ($internalPropertyGroupValues as $optionValue => $valueNotNeeded) { - $optionId = $internalGroupPropertiesToShopwareId[$propertyGroupName][$optionValue]; - $this->createTranslationForPropertyOption( - $optionId, - $optionValue, - 'DE'); - foreach ($article['matrix_varianten']['texte']['werte'] as $countryIsoCode => $matrixOptionTranslations) { - if ($countryIsoCode === 'EN') { - $countryIsoCode = 'GB'; - } - if (array_key_exists($optionValue, $matrixOptionTranslations)) { - $this->createTranslationForPropertyOption( - $optionId, - $matrixOptionTranslations[$optionValue], - $countryIsoCode); - } - } - } - } - } - - $existingCombinations = $this->shopwareRequest( - 'GET', - '_action/product/' . $articleIdShopware . '/combinations'); - $existingCombinationsByNumber = []; - - foreach ($existingCombinations as $combinationId => $combinationInfo) { - $existingCombinationsByNumber[$combinationInfo['productNumber']] = [ - 'id' => $combinationId, - 'options' => [], - ]; - foreach ($combinationInfo['options'] as $combinationOption) { - $existingCombinationsByNumber[$combinationInfo['productNumber']]['options'][$combinationOption] = $combinationOption; - } - } - - - foreach ($article['artikel_varianten'] as $variant) { - $internalVariantMatrixData = $article['matrix_varianten']['artikel'][$variant['artikel']]; - $productNumber = $internalVariantMatrixData[0]['nummer']; - $name = $variant['name_de']; - $stock = $variant['lag']; - $ean = $variant['ean']; - $weight = (float)$variant['gewicht']; - $pseudoPrice = $variant['pseudopreis']; - if (empty($pseudoPrice)) { - $pseudoPrice = 0; - } - if (!empty($variant['pseudolager'])) { - $stock = $variant['pseudolager']; - } - $active = true; - if (!empty($variant['inaktiv'])) { - $active = false; - } - $isCloseOut = false; - if (!empty($variant['restmenge'])) { - $isCloseOut = true; - } - - $variantProductData = [ - 'active' => $active, - 'isCloseout' => $isCloseOut, - 'name' => $name, - 'description' => null, - 'weight' => null, - 'price' => [ - [ - 'currencyId' => $currencyId, - 'gross' => $variant['bruttopreis'], - 'net' => $variant['preis'], - 'linked' => true, - 'listPrice' => [ - 'currencyId' => $currencyId, - 'gross' => $pseudoPrice, - 'linked' => true, - 'net' => $pseudoPrice / (1 + $variant['steuersatz'] / 100) - ] - ] - ], - 'stock' => (int)$stock, - 'ean' => null, - 'taxId' => $this->getTaxIdByRate($variant['steuersatz']), - ]; - if(!empty($weight)){ - $variantProductData['weight'] = $weight; - } - if(!empty($ean)){ - $variantProductData['ean'] = $ean; - } - if (!empty($variant['uebersicht_de'])) { - $variantProductData['description'] = $variant['uebersicht_de']; - } - - $renewVariant = false; - $options = []; - foreach ($internalVariantMatrixData as $expression) { - if (!in_array( - $internalGroupPropertiesToShopwareId[$expression['name']][$expression['values']], - $existingCombinationsByNumber[$productNumber]['options'], - false)) { - $renewVariant = true; - } else { - unset($existingCombinationsByNumber[$productNumber]['options'][$internalGroupPropertiesToShopwareId[$expression['name']][$expression['values']]]); - } - $options[] = ['id' => $internalGroupPropertiesToShopwareId[$expression['name']][$expression['values']]]; - } - - if (!empty($existingCombinationsByNumber[$productNumber]['options'])) { - $renewVariant = true; - } - - $variantImageData = [ - 'Dateien' => [] - ]; - $variantProductId = ''; - if (!empty($existingCombinationsByNumber[$productNumber]['id']) && !$renewVariant) { - $variantProductId = $existingCombinationsByNumber[$productNumber]['id']; - } - if (!empty($variant['Dateien']['id'])) { - foreach ($variant['Dateien']['id'] as $index => $fileId) { - $variantImageData['Dateien'][] = [ - 'filename' => $variant['Dateien']['filename'][$index], - 'extension' => $variant['Dateien']['extension'][$index], - 'datei' => $variant['Dateien']['datei'][$index], - 'beschreibung' => $variant['Dateien']['beschreibung'][$index], - 'titel' => $variant['Dateien']['titel'][$index], - 'id' => $fileId, - ]; - } - } - $mediaToAdd = $this->mediaToExport($variantImageData, $variantProductId); - $variantProductData['media'] = $mediaToAdd; - - if ($renewVariant) { - if (!empty($existingCombinationsByNumber[$productNumber]['id'])) { - $this->shopwareRequest('DELETE', 'product/' . $existingCombinationsByNumber[$productNumber]['id']); - } - $variantProductData['productNumber'] = $productNumber; - $variantProductData['parentId'] = $articleIdShopware; - $variantProductData['options'] = $options; - - $result = $this->shopwareRequest('POST', 'product?_response=true', $variantProductData); - $variantProductId = $result['data']['id']; - } else { - $variantProductId = $existingCombinationsByNumber[$productNumber]['id']; - $this->shopwareRequest('PATCH', 'product/' . $variantProductId, $variantProductData); - } - - $defaultPrices = $this->getPricesFromArray($variant['staffelpreise_standard'] ?? []); - $groupPrices = $this->getPricesFromArray($variant['staffelpreise_gruppen'] ?? []); - - $this->deleteOldBulkPrices($variantProductId); - if (!empty($defaultPrices)) { - foreach ($defaultPrices as $priceData) { - $this->exportBulkPriceForGroup($variantProductId, $this->defaultRuleName, $priceData); - } - } - if (!empty($groupPrices)) { - foreach ($groupPrices as $priceData) { - $this->exportBulkPriceForGroup($variantProductId, $priceData->getGroupName(), $priceData); - } - } - - $this->addCoverImage($variantImageData, $variantProductId); - } - - $existingConfigurations = $this->shopwareRequest( - 'GET', 'product/' . $articleIdShopware . '/configuratorSettings'); - $optionIdsToAdd = []; - foreach ($article['artikel_varianten'] as $variant) { - foreach ($article['matrix_varianten']['artikel'][$variant['artikel']] as $matrixInfo) { - $configurationExists = false; - foreach ($existingConfigurations['data'] as $configuration) { - if ($configuration['attributes']['optionId'] === $internalGroupPropertiesToShopwareId[$matrixInfo['name']][$matrixInfo['values']]) { - $configurationExists = true; - break; - } - } - if (!$configurationExists) { - $optionIdsToAdd[] = $internalGroupPropertiesToShopwareId[$matrixInfo['name']][$matrixInfo['values']]; - } - } - } - if (!empty($optionIdsToAdd)) { - $optionIdsToAdd = array_flip(array_flip($optionIdsToAdd)); - $configurationData = [ - 'configuratorSettings' => [] - ]; - foreach ($optionIdsToAdd as $id) { - $configurationData['configuratorSettings'][] = ['optionId' => $id]; - } - - $this->shopwareRequest( - 'PATCH', - sprintf('product/%s', $articleIdShopware), - $configurationData - ); - - $existingConfigurations = $this->shopwareRequest( - 'GET', 'product/' . $articleIdShopware . '/configuratorSettings'); - $optionsToSort = []; - foreach ($article['artikel_varianten'] as $variant) { - foreach ($article['matrix_varianten']['artikel'][$variant['artikel']] as $matrixInfo) { - foreach ($existingConfigurations['data'] as $configuration) { - if ($configuration['attributes']['optionId'] === $internalGroupPropertiesToShopwareId[$matrixInfo['name']][$matrixInfo['values']]) { - $optionsToSort[] = $configuration['id']; - break; - } - } - } - } - if (!empty($optionsToSort)) { - $optionsToSort = array_flip(array_flip($optionsToSort)); - $configurationData = [ - 'configuratorSettings' => [] - ]; - $position = 1; - - foreach ($optionsToSort as $id) { - $configurationData['configuratorSettings'][] = [ - 'id' => $id, - 'position' => $position]; - $position++; - } - - $this->shopwareRequest( - 'PATCH', - sprintf('product/%s', $articleIdShopware), - $configurationData - ); - } - } - - return true; - } - - /** - * @param $priceArray - * @return PriceData[] - */ - protected function getPricesFromArray($priceArray): array{ - return array_map(static function($price){ - return new PriceData( - (int)$price['ab_menge'], - (float)$price['preis'], - (float)$price['bruttopreis'], - $price['waehrung'], - $price['gruppeextern'] ?? '') ; - },$priceArray); - } - - /** - * delete all old price entries for a product - * - * @param string $productId - */ - protected function deleteOldBulkPrices($productId) - { - //TODO Instead of deleting all old prices we should rather check first whether they are still in order - $oldPrices = $this->shopwareRequest( - 'GET', - sprintf('product-price?filter[product_price.productId]=%s', $productId) - ); - if (is_array($oldPrices)) { - foreach ($oldPrices['data'] as $deletePrice) { - $this->shopwareRequest('DELETE', 'product-price/' . $deletePrice['id']); - } - } else { - $this->Shopware6Log('Fehler: Alte Preise wurden nicht gelöscht', $productId); - } - } - - /** - * @return int - */ - public function getOrderSearchLimit(): int - { - if(in_array($this->orderSearchLimit, ['50', '75', '100'])) { - return (int)$this->orderSearchLimit; - } - - return 25; - } - - /** - * @return int - */ - public function ImportGetAuftraegeAnzahl() - { - $order = null; - $dataToGet = $this->CatchRemoteCommand('data'); - - if (empty($this->statesToFetch)) { - return false; - } - - $ordersToProcess = $this->getOrdersToProcess($this->getOrderSearchLimit()); - - return count($ordersToProcess['data']); - } - - /** - * @param string $parameter1 - * @param string $parameter2 - */ - public function Shopware6ErrorLog($parameter1, $parameter2 = '') - { - $this->app->DB->Insert( - sprintf( - "INSERT INTO `shopexport_log` - (shopid, typ, parameter1, parameter2, bearbeiter, zeitstempel) - VALUES (%d, 'fehler', '%s','%s','%s',NOW())", - $this->shopid, - $this->app->DB->real_escape_string($parameter1), - $this->app->DB->real_escape_string($parameter2), - $this->app->DB->real_escape_string($this->app->User->GetName()) - ) - ); - } - - /** - * @param array $stateMachinesIds - * @return array - */ - protected function getTransactionStateIdsToFetch($stateMachinesIds): array - { - $transactionStateIdsToFetch = []; - if (!empty($this->transactionStatesToFetch)) { - $transactionStatesToFetch = explode(';', $this->transactionStatesToFetch); - foreach ($transactionStatesToFetch as $transactionStateToFetch) { - $stateInformation = $this->shopwareRequest('GET', 'state-machine-state?filter[technicalName]=' . - trim($transactionStateToFetch) . '&filter[stateMachineId]=' . $stateMachinesIds['order_transaction.state']); - if (empty($stateInformation['data'])) { - $this->Shopware6ErrorLog('Zahlungsstatus für Abholung nicht gefunden', $transactionStateToFetch); - return false; - } - foreach ($stateInformation['data'] as $state) { - $transactionStateIdsToFetch[] = $state['id']; - } - } - } - - return $transactionStateIdsToFetch; - } - - /** - * @param int $limit - * - * @return mixed - */ - protected function getOrdersToProcess(int $limit) - { - $searchData = [ - 'limit' => $limit, - 'includes' => [ - 'order' => ['id'] - ], - 'sort' => [ - [ - 'field' => 'order.createdAt', - 'direction' => 'DESC' - ] - ], - 'filter' => [] - ]; - - $searchData['filter'][] = [ - 'field' => 'stateMachineState.technicalName', - 'type' => 'equalsAny', - 'value' => explode(';', $this->statesToFetch) - ]; - - if (!empty($this->deliveryStatesToFetch)) { - $searchData['filter'][] = [ - 'field' => 'deliveries.stateMachineState.technicalName', - 'type' => 'equalsAny', - 'value' => explode(';', $this->deliveryStatesToFetch) - ]; - } - if (!empty($this->transactionStatesToFetch)) { - $searchData['filter'][] = [ - 'field' => 'transactions.stateMachineState.technicalName', - 'type' => 'equalsAny', - 'value' => explode(';', $this->transactionStatesToFetch) - ]; - } - - if (!empty($this->salesChannelToFetch)) { - $searchData['filter'][] = [ - 'field' => 'order.salesChannelId', - 'type' => 'equals', - 'value' => $this->salesChannelToFetch - ]; - } - - return $this->shopwareRequest('POST', 'search/order', $searchData); - } - - /** - * @return int|mixed - */ - public function ImportGetAuftrag() - { - $voucherArticleId = $this->app->DB->Select("SELECT s.artikelrabatt FROM `shopexport` AS `s` WHERE s.id='$this->shopid' LIMIT 1"); - $voucherArticleNumber = $this->app->DB->Select("SELECT a.nummer FROM `artikel` AS `a` WHERE a.id='$voucherArticleId' LIMIT 1"); - - $dataToGet = $this->CatchRemoteCommand('data'); - if (empty($this->statesToFetch)) { - return false; - } - $expectOrderArray = !empty($dataToGet['anzgleichzeitig']) && (int)$dataToGet['anzgleichzeitig'] > 1; - $expectNumber = !empty($dataToGet['nummer']); - $order = null; - if($expectNumber) { - $order = $this->shopwareRequest('GET', 'order/' . $dataToGet['nummer'] . '?associations[currency][]'); - if(empty($order['data'])) { - return false; - } - $ordersToProcess = ['data' => [ ['id' => $dataToGet['nummer']] ]]; - $orderIncludedData = $order['included']; - $order = $order['data']; - } - elseif(!$expectOrderArray) { - $ordersToProcess = $this->getOrdersToProcess(1); - } - elseif(!$expectNumber) { - $ordersToProcess = $this->getOrdersToProcess($this->getOrderSearchLimit()); - } - if (empty($ordersToProcess['data'])) { - return false; - } - - $fetchedOrders = []; - if (isset($ordersToFetch['data']['id']) && !isset($ordersToFetch['data'][0])) { - $ordersToFetch['data'] = [$ordersToFetch['data']]; - } - foreach ($ordersToProcess['data'] as $currentlyOpenOrder) { - $orderIdToFetch = $currentlyOpenOrder['id']; - - if (empty($dataToGet['nummer']) || empty($order)) { - $order = $this->shopwareRequest('GET', 'order/' . $orderIdToFetch.'?associations[currency][]'); - $orderIncludedData = $order['included']; - $order = $order['data']; - } - $cart = []; - try { - $timestamp = date_create_from_format('Y-m-d\TH:i:s+', $order['attributes']['createdAt']); - $cart['zeitstempel'] = $timestamp->format('Y-m-d H:i:s'); - } catch (Exception $ex) { - - } - $cart['auftrag'] = $order['id']; - $cart['subshop'] = $order['attributes']['salesChannelId']; - $cart['order'] = $order; - $cart['onlinebestellnummer'] = $order['attributes']['orderNumber']; - $cart['gesamtsumme'] = $order['attributes']['amountTotal']; - $cart['versandkostenbrutto'] = $order['attributes']['shippingTotal']; - $cart['bestelldatum'] = substr($order['attributes']['orderDate'], 0, 10); - if (!empty($order['attributes']['customerComment'])) { - $cart['freitext'] = $order['attributes']['customerComment']; - } - - foreach ($orderIncludedData as $includedDataSet){ - if($includedDataSet['type'] === 'currency'){ - $cart['waehrung'] = $includedDataSet['attributes']['isoCode']; - } - } - - $deliveryInfo = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/deliveries'); - $shippingMethod = $this->shopwareRequest('GET', - 'order-delivery/' . $deliveryInfo['data'][0]['id'] . '/shipping-method'); - $order['shippingMethod'] = $shippingMethod; - $cart['lieferung'] = $shippingMethod['data'][0]['attributes']['name']; - - $customer = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/order-customer'); - $order['customer'] = $customer; - $cart['email'] = $customer['data']['0']['attributes']['email']; - - $addresses = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/addresses?associations[salutation][]&associations[country][]'); - $order['addresses'] = $addresses; - $deliveryCountryId = ''; - $billingCountryId = ''; - $billingSalutationId = ''; - foreach ($addresses['data'] as $address) { - if ($address['id'] === $order['attributes']['billingAddressId']) { - if (!empty($address['attributes']['vatId'])) { - $cart['ustid'] = $address['attributes']['vatId']; - } - $cart['name'] = $address['attributes']['firstName'] . ' ' . $address['attributes']['lastName']; - if (!empty($address['attributes']['company'])) { - $cart['ansprechpartner'] = $cart['name']; - $cart['name'] = $address['attributes']['company']; - } - $cart['strasse'] = $address['attributes']['street']; - $cart['abteilung'] = $address['attributes']['department']; - $cart['adresszusatz'] = trim($address['attributes']['additionalAddressLine1'].' '. - $address['attributes']['additionalAddressLine2']); - $cart['telefon'] = $address['attributes']['phoneNumber']; - $cart['plz'] = $address['attributes']['zipcode']; - $cart['ort'] = $address['attributes']['city']; - $billingCountryId = $address['attributes']['countryId']; - $billingSalutationId = $address['attributes']['salutationId']; - } - if ($address['id'] !== $order['attributes']['billingAddressId']) { - $cart['abweichendelieferadresse'] = 1; - if (!empty($address['attributes']['vatId'])) { - $cart['lieferadresse_ustid'] = $address['attributes']['vatId']; - } - $cart['lieferadresse_name'] = $address['attributes']['firstName'] . ' ' . $address['attributes']['lastName']; - if (!empty($address['attributes']['company'])) { - $cart['lieferadresse_ansprechpartner'] = $cart['lieferadresse_name']; - $cart['lieferadresse_name'] = $address['attributes']['company']; - } - $cart['lieferadresse_strasse'] = $address['attributes']['street']; - $cart['lieferadresse_abteilung'] = $address['attributes']['department']; - $cart['lieferadresse_adresszusatz'] = trim($address['attributes']['additionalAddressLine1'].' '. - $address['attributes']['additionalAddressLine2']); - $cart['lieferadresse_plz'] = $address['attributes']['zipcode']; - $cart['lieferadresse_ort'] = $address['attributes']['city']; - $deliveryCountryId = $address['attributes']['countryId']; - } - } - - $anrede = 'herr'; - $land = 'DE'; - $lieferadresseLand = 'DE'; - foreach ($addresses['included'] as $includedInfo) { - if ($includedInfo['id'] === $billingCountryId) { - $land = $includedInfo['attributes']['iso']; - } - if ($includedInfo['id'] === $deliveryCountryId) { - $lieferadresseLand = $includedInfo['attributes']['iso']; - } - if ($includedInfo['id'] === $billingSalutationId) { - $salutation = $includedInfo['attributes']['salutationKey']; - if ($salutation === 'ms' || $salutation === 'mrs') { - $anrede = 'frau'; - } - } - } - - $cart['anrede'] = $anrede; - $cart['land'] = $land; - if (!empty($cart['abweichendelieferadresse'])) { - $cart['lieferadresse_land'] = $lieferadresseLand; - } - - $transactionData = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/transactions'); - $cart['transacion_data'] = $transactionData; - if (!empty($transactionData['data'][0]['attributes']['customFields']['swag_paypal_pui_payment_instruction']['reference_number'])) { - $cart['transaktionsnummer'] = $transactionData['data'][0]['attributes']['customFields']['swag_paypal_pui_payment_instruction']['reference_number']; - } - if (empty($cart['transaktionsnummer'] && !empty($transactionData['data'][0]['attributes']['customFields']['swag_paypal_order_id']))) { - $cart['transaktionsnummer'] = (string)$transactionData['data'][0]['attributes']['customFields']['swag_paypal_order_id']; - } - if (empty($cart['transaktionsnummer'] && !empty($transactionData['data'][0]['attributes']['customFields']['swag_paypal_transaction_id']))) { - $livePayPalData = $this->shopwareRequest('GET', 'paypal/payment-details/' . $order['id'] . '/' . $transactionData['data'][0]['attributes']['customFields']['swag_paypal_transaction_id']); - if (!empty($livePayPalData['transactions'])) { - foreach ($livePayPalData['transactions'] as $payPalData) { - foreach ($payPalData['related_resources'] as $ressources) { - if ($ressources['sale']['state'] === 'completed') { - $cart['transaktionsnummer'] = $ressources['sale']['id']; - break 2; - } - } - } - } - } - if( - empty($cart['transaktionsnummer']) - && isset($transactionData['data'][0]['attributes']['customFields']['stripe_payment_context']['payment']['payment_intent_id']) - ){ - $cart['transaktionsnummer'] = $transactionData['data'][0]['attributes']['customFields']['stripe_payment_context']['payment']['payment_intent_id']; - } - - $paymentMethodId = $transactionData['data'][0]['attributes']['paymentMethodId']; - $paymentMethod = $this->shopwareRequest('GET', 'payment-method/' . $paymentMethodId); - $cart['zahlungsweise'] = $paymentMethod['data']['attributes']['name']; - - $taxedCountry = $land; - if($this->taxationByDestinationCountry){ - $taxedCountry = $lieferadresseLand; - } - if($order['attributes']['amountTotal'] === $order['attributes']['amountNet']){ - if($this->app->erp->IstEU($taxedCountry)){ - $cart['ust_befreit'] = 1; - }elseif($this->app->erp->Export($taxedCountry)){ - $cart['ust_befreit'] = 2; - }else{ - $cart['ust_befreit'] = 3; - } - } - - $lineItems = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/line-items'); - $order['lineItems'] = $lineItems; - $cart['articlelist'] = []; - - $taxRate = 0; - foreach ($lineItems['data'] as $lineItem) { - if ($lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate'] > $taxRate) { - $taxRate = $lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate']; - } - } - - $orderPriceType = 'price'; - if(in_array($order['attributes']['taxStatus'], ['net', 'tax-free'])) { - $orderPriceType = 'price_netto'; - $cart['versandkostennetto'] = $cart['versandkostenbrutto']; - unset($cart['versandkostenbrutto']); - } - - foreach ($lineItems['data'] as $lineItem) { - $productPriceType = $orderPriceType; - if(empty($lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate'])){ - $productPriceType = 'price_netto'; - } - $articleId = null; - if($lineItem['attributes']['price']['unitPrice'] < 0) { - $articleId = $voucherArticleNumber; - } - elseif(isset($lineItem['attributes']['payload']['productNumber'])){ - $articleId = $lineItem['attributes']['payload']['productNumber']; - } - $product = [ - 'articleid' => $articleId, - 'name' => $lineItem['attributes']['label'], - 'quantity' => $lineItem['attributes']['quantity'], - $productPriceType => $lineItem['attributes']['price']['unitPrice'], - 'steuersatz' => $lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate'], - ]; - $cart['articlelist'][] = $product; - } - - $cart['order'] = $order; - $fetchedOrders[] = [ - 'id' => $cart['auftrag'], - 'sessionid' => '', - 'logdatei' => '', - 'warenkorb' => base64_encode(serialize($cart)), - 'warenkorbjson' => base64_encode(json_encode($cart)), - ]; - $this->Shopware6Log('Ergebnis: Auftrag', $order); - $this->Shopware6Log('Ergebnis: Adresse', $addresses); - $this->Shopware6Log('Ergebnis: Positionen', $lineItems); - } - - return $fetchedOrders; - } - - /** - * @return void - */ - public function ImportDeleteAuftrag() - { - $tmp = $this->CatchRemoteCommand('data'); - $auftrag = $tmp['auftrag']; - - $this->shopwareRequest('POST', '_action/order/'.$auftrag.'/state/process'); - $this->addCustomFieldToOrder((string)$auftrag); - } - - /** - * @return void - */ - public function ImportUpdateAuftrag() - { - $tmp = $this->CatchRemoteCommand('data'); - $auftrag = $tmp['auftrag']; - $tracking = $tmp['tracking']; - - $this->shopwareRequest('POST', '_action/order/'.$auftrag.'/state/complete'); - - $deliveries = $this->shopwareRequest('GET', 'order/'.$auftrag.'/deliveries'); - $deliveryId = $deliveries['data'][0]['id']; - - if(!empty($deliveryId)){ - $this->shopwareRequest('POST', '_action/order_delivery/'.$deliveryId.'/state/ship'); - - $deliveryData = [ - 'trackingCodes' => [$tracking] - ]; - $this->shopwareRequest('PATCH', 'order-delivery/'.$deliveryId,$deliveryData); - } - - $this->sendInvoce($auftrag); - $this->addCustomFieldToOrder((string)$auftrag); - if(empty($tmp['orderId'])) { - return; - } - $this->updateStorageForOrderIntId((int)$tmp['orderId']); - } - - public function ImportStorniereAuftrag() - { - $tmp = $this->CatchRemoteCommand('data'); - $auftrag = $tmp['auftrag']; - - $this->shopwareRequest('POST', '_action/order/'.$auftrag.'/state/cancel'); - $this->addCustomFieldToOrder((string)$auftrag); - } - - /** - * @param string $extOrderId - */ - protected function sendInvoce($extOrderId) - { - $order = $this->app->DB->SelectRow( - sprintf( - "SELECT `rechnungid`, `id` FROM `auftrag` WHERE shopextid='%s'", - $extOrderId - ) - ); - $invoiceId = 0; - if (!empty($order['rechnungid'])) { - $invoiceId = $order['rechnungid']; - $sql = sprintf("SELECT projekt, belegnr FROM rechnung WHERE id='%s'", $invoiceId); - $invoiceData = $this->app->DB->SelectRow($sql); - } - if (empty($invoiceId) && !empty($order['id'])) { - $invoiceData = $this->app->DB->SelectRow( - sprintf( - "SELECT `id`, `projekt`, `belegnr` - FROM `rechnung` - WHERE `auftragid` = %d AND `status` <> 'storniert' AND `status` <> 'angelegt' - LIMIT 1", - $order['id'] - ) - ); - if (!empty($invoiceData)) { - $invoiceId = $invoiceData['id']; - } - } - - if (!empty($invoiceData['belegnr'])) { - $projekt = $invoiceData['projekt']; - if (class_exists('RechnungPDFCustom')) { - $Brief = new RechnungPDFCustom($this->app, $projekt); - } else { - $Brief = new RechnungPDF($this->app, $projekt); - } - - $Brief->GetRechnung($invoiceId); - $filePath = $Brief->displayTMP(true); - - $documentNumber = $invoiceData['belegnr']; - $invoiceDocumentData = [ - 'config' => [ - 'custom' => [ - 'invoiceNumber' => $documentNumber, - ], - 'documentComment' => 'Aus Xentral heraus erstellte Rechnung', - 'documentNumber' => $documentNumber, - ], - 'referenced_document_id' => null, - 'static' => true - ]; - - $documentData = $this->shopwareRequest('POST', '_action/order/' . $extOrderId . '/document/invoice', $invoiceDocumentData); - $documentId = $documentData['documentId']; - - $accessToken = $this->shopwareToken(); - $url = $this->ShopUrl . 'v2/_action/document/' . $documentId . '/upload?_response=true&extension=pdf&fileName=' . $documentNumber; - - $ch = curl_init(); - $setHeaders = [ - 'Content-Type:application/pdf', - 'Authorization:Bearer ' . $accessToken['token'] - ]; - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents($filePath)); - curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); - curl_setopt($ch, CURLOPT_HTTPHEADER, $setHeaders); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - $response = json_decode(curl_exec($ch), true); - curl_close($ch); - if (!empty($response['errors'])) { - $this->Shopware6Log( - 'Fehler bei Rechnugnsübertragung für ' . $documentNumber, $response['errors'] - ); - } - } - } - - /** - * @return string - */ - public function ImportAuth() - { - $tokeninfo = $this->shopwareToken(); - - - if (!$tokeninfo['success']) { - return 'failed: ' . $tokeninfo['message']; - } - if($this->data === 'info'){ - $salesChannelsInShopware = $this->client->getAllSalesChannels(); - $salesChannelsToShow = ['subshops' => []]; - foreach ($salesChannelsInShopware['data'] as $salesChannelInShopware){ - $salesChannelsToShow['subshops'][] = [ - 'id'=>$salesChannelInShopware['id'], - 'name'=>$salesChannelInShopware['name'], - 'aktiv'=>$salesChannelInShopware['active'] - ]; - } - return $salesChannelsToShow; - } - - return 'success'; - } - - /** - * Build category tree as displayed in article info - * May be useful for setting category in the future - * but probably obsolete - * - * @param string $categoryName - * @param array $categoryTree - * - * @return array - */ - protected function appendCategoryTree($categoryName, $categoryTree = []) - { - $shopwareCategory = $this->shopwareRequest( - 'GET', - 'category?filter[category.name]=' . urlencode($categoryName) - ); - if (!isset($shopwareCategory['data'][0]['id'])) { - return $categoryTree; - } - $categoryInfo = $shopwareCategory['data'][0]['attributes']; - $categories[] = [(int)$categoryInfo['level'], $shopwareCategory['data'][0]['id']]; - $path = $categoryInfo['path']; - if (!empty($path)) { - $pathArray = explode('|', $path); - foreach ($pathArray as $nodeId) { - if ($nodeId === '') { - continue; - } - $nodeCategory = $this->shopwareRequest('GET', 'category/' . $nodeId); - if (isset($nodeCategory['data']['id'])) { - $categories[] = [(int)$nodeCategory['data']['attributes']['level'], $nodeId]; - unset($nodeCategory); - } - } - } - foreach ($categories as $category) { - $level = $category[0]; - if (!isset($categoryTree[$level])) { - $categoryTree[$level] = []; - } - if (!in_array($category, $categoryTree[$level], true)) { - $categoryTree[$level][] = $category[1]; - } - } - ksort($categoryTree); - - return $categoryTree; - } - - /** - * @param array $postData - * - * @return array - */ - public function updatePostDataForAssistent($postData) - { - if(!empty($this->ShopUrl)) { - $postData['shopwareUrl'] = $this->ShopUrl; - } - return $postData; - } - - /** - * @param array $shopArr - * @param array $postData - * - * @return array - */ - public function updateShopexportArr($shopArr, $postData) - { - $shopArr['stornoabgleich'] = 1; - $shopArr['demomodus'] = 0; - - return $shopArr; - } - - /** - * @return JsonResponse|null - */ - public function AuthByAssistent() - { - $shopwareUrl = $this->app->Secure->GetPOST('shopwareUrl'); - $shopwareUserName = $this->app->Secure->GetPOST('shopwareUserName'); - $shopwarePassword = $this->app->Secure->GetPOST('shopwarePassword'); - $step = (int)$this->app->Secure->GetPOST('step'); - - if($step <= 1){ - if(empty($shopwareUrl)){ - return new JsonResponse(['error' => 'Bitte die URL des Shops angeben.'], JsonResponse::HTTP_BAD_REQUEST); - } - if(empty($shopwareUserName)){ - return new JsonResponse(['error' => 'Bitte den Benutzernamen angeben'], JsonResponse::HTTP_BAD_REQUEST); - } - if(empty($shopwarePassword)){ - return new JsonResponse(['error' => 'Bitte das Passwort angeben'], JsonResponse::HTTP_BAD_REQUEST); - } - - $this->UserName = $shopwareUserName; - $this->Password = $shopwarePassword; - $shopwareUrl = rtrim($shopwareUrl, '/') . '/'; - $testUrls = []; - $hasNoHttp = strpos($shopwareUrl,'http') !== 0; - if(substr($shopwareUrl, -5) !== '/api/') { - if($hasNoHttp) { - $testUrls[] = 'https://'.$shopwareUrl.'api/'; - $testUrls[] = 'http://'.$shopwareUrl.'api/'; - } - $testUrls[] = $shopwareUrl.'api/'; - } - elseif($hasNoHttp) { - $testUrls[] = 'https://'.$shopwareUrl; - $testUrls[] = 'http://'.$shopwareUrl; - } - else { - $testUrls[] = $shopwareUrl; - } - foreach($testUrls as $testUrl) { - $this->ShopUrl = $testUrl; - $tokeninfo = $this->shopwareToken(); - if(!empty($tokeninfo['success'])) { - break; - } - } - - if(!$tokeninfo['success']){ - return new JsonResponse(['error' => $tokeninfo['message']], JsonResponse::HTTP_BAD_REQUEST); - } - } - - return null; - } - - /** - * @return string - */ - public function getClickByClickHeadline() - { - return 'Bitte im Shopware Backend einen eigenen Benutzer für Xentral anlegen und diese - Zugangsdaten hier eintragen.'; - } - - /** - * @return array - */ - public function getStructureDataForClickByClickSave() - { - return [ - 'shopwareAllowCreateManufacturer' => 1, - ]; - } - - /** - * @return array[] - */ - public function getCreateForm() - { - return [ - [ - 'id' => 0, - 'name' => 'urls', - 'inputs' => [ - [ - 'label' => 'URL des Shops', - 'type' => 'text', - 'name' => 'shopwareUrl', - 'validation' => true, - ], - ], - ], - [ - 'id' => 1, - 'name' => 'username', - 'inputs' => [ - [ - 'label' => 'Benutzername aus Shopware', - 'type' => 'text', - 'name' => 'shopwareUserName', - 'validation' => true, - ], - ], - ], - [ - 'id' => 2, - 'name' => 'password', - 'inputs' => [ - [ - 'label' => 'Passwort aus Shopware', - 'type' => 'password', - 'name' => 'shopwarePassword', - 'validation' => true, - ], - ], - ], - ]; - } - - public function getBoosterHeadline(): string - { - return 'Shopware 6 Business Booster App'; - } - - public function getBoosterSubHeadline(): string - { - return 'Bitte gehe auf Shopware 6 und installiere dort das Plugin Xentral Business Booster App. - Dort kann man sich dann mit ein paar Klicks mit Xentral verbinden.'; - } - - /** - * @param int $intOrderId - * - * @return array - */ - protected function getArticleShopLinks(int $intOrderId): array - { - return $this->app->DB->SelectPairs( - "SELECT DISTINCT ao.artikel, a.nummer - FROM `auftrag_position` AS `ap` - INNER JOIN `auftrag` AS `ab` ON ap.auftrag = ab.id - INNER JOIN `artikel` AS `a` ON ap.artikel = a.id - INNER JOIN `artikel_onlineshops` AS `ao` ON ab.shop = ao.shop AND a.id = ao.artikel - WHERE ab.id = {$intOrderId} AND ao.aktiv = 1" - ); - } - - /** - * @param array $articleIds - */ - protected function updateArticleCacheToSync(array $articleIds): void - { - if(empty($articleIds)) { - return; - } - $articleIdsString = implode(', ', $articleIds); - $this->app->DB->Update( - "UPDATE `artikel` - SET `laststorage_changed` = DATE_ADD(NOW(), INTERVAL 1 SECOND) - WHERE `id` IN ({$articleIdsString})" - ); - } - - /** - * @param array $articleIds - */ - protected function updateArticleOnlineShopCache(array $articleIds): void - { - if(empty($articleIds)) { - return; - } - $articleIdsString = implode(', ', $articleIds); - $this->app->DB->Update( - "UPDATE `artikel_onlineshops` - SET `storage_cache` = -999, `pseudostorage_cache` = -999 - WHERE `artikel` IN ({$articleIdsString}) AND `aktiv` = 1 AND `shop` = {$this->shopid}" - ); - } - - /** - * @param int $intOrderId - */ - protected function updateStorageForOrderIntId(int $intOrderId): void - { - $articles = $this->getArticleShopLinks($intOrderId); - if(empty($articles)) { - return; - } - $articleIds = array_keys($articles); - $this->updateArticleCacheToSync($articleIds); - $this->updateArticleOnlineShopCache($articleIds); - - $isStorageSyncCronjobActive = (int)$this->app->DB->Select( - "SELECT COUNT(`id`) FROM `prozessstarter` WHERE `aktiv` = 1 AND `parameter` = 'lagerzahlen'" - ) > 0; - if(!$isStorageSyncCronjobActive) { - return; - } - foreach($articleIds as $articleId) { - try { - $this->app->erp->LagerSync($articleId, false, [$this->shopid]); - } - catch (Exception $e) { - $articleNumber = $articles[$articleId]; - $this->Shopware6ErrorLog('LagerSync konnte nicht ausgeführt werden', $articleNumber); - } - } - - $this->updateArticleCacheToSync($articleIds); - } -} +app = $app; + $this->intern = true; + if ($intern) { + return; + } + $this->app->ActionHandlerInit($this); + + $this->app->ActionHandler('list', 'Shopimporter_Shopware6List'); + $this->app->ActionHandler('auth', 'ImportAuth'); + $this->app->ActionHandler('sendlistlager', 'ImportSendListLager'); + $this->app->ActionHandler('getauftraegeanzahl', 'ImportGetAuftraegeAnzahl'); + $this->app->ActionHandler('getauftrag', 'ImportGetAuftrag'); + $this->app->ActionHandler('deleteauftrag', 'ImportDeleteAuftrag'); + $this->app->ActionHandler('updateauftrag', 'ImportUpdateAuftrag'); + $this->app->ActionHandler('storniereauftrag','ImportStorniereAuftrag'); + $this->app->ActionHandler('getarticle','ImportGetArticle'); + $this->app->ActionHandler('getarticlelist','ImportGetArticleList'); + $this->app->ActionHandler("updatezahlungsstatus","ImportUpdateZahlungsstatus"); + $this->app->DefaultActionHandler('list'); + + $this->app->ActionHandlerListen($app); + } + + /** + * @param string $productId + * + * @return mixed + */ + public function addSyncCustomFieldToProduct(string $productId) + { + $customField = [ + 'customFields' => [ + 'wawision_shopimporter_syncstate' => 1 + ] + ]; + + return $this->shopwareRequest('PATCH', "product/{$productId}", $customField); + } + + /** + * @param string $orderId + * + * @return mixed + */ + public function addCustomFieldToOrder(string $orderId) + { + $customField = [ + 'customFields' => [ + 'wawision_shopimporter_syncstate' => 1 + ] + ]; + + return $this->shopwareRequest('PATCH', "order/{$orderId}", $customField); + } + + public function ImportGetArticleList() + { + $page = 1; + $limit = 500; + + do { + $productIdsToAdd = []; + $searchdata = [ + 'limit' => $limit, + 'page' => $page, + 'filter' => [ + [ + 'field' => 'product.parentId', + 'type' => 'equals', + 'value' => null + ] + ] + ]; + + $productsInShop = $this->shopwareRequest('POST', 'search/product', $searchdata); + if (!empty($productsInShop['data'])) { + foreach ($productsInShop['data'] as $productInShop) { + $productIdsToAdd[] = $productInShop['id']; + } + } + + foreach ($productIdsToAdd as $productId) { + $this->app->DB->Insert("INSERT INTO shopexport_getarticles (shop, nummer) VALUES ('$this->shopid', '" . $this->app->DB->real_escape_string($productId) . "')"); + } + $page++; + } while (count($productsInShop['data']) === $limit); + + + $anzahl = $this->app->DB->Select("SELECT COUNT(id) FROM shopexport_getarticles WHERE shop=$this->shopid"); + $this->app->erp->SetKonfigurationValue('artikelimportanzahl_' . $this->shopid, $anzahl); + + } + + /** + * @param string $method + * @param string $endpoint + * @param string $data + * + * @param array $headerInformation + * @return mixed + */ + public function shopwareRequest($method, $endpoint, $data = '', $headerInformation = []) + { + $accessToken = $this->shopwareToken(); + $url = $this->ShopUrl; + $url .= $endpoint; + + $ch = curl_init(); + $headerInformation[] = 'Content-Type:application/json'; + $headerInformation[] = 'Authorization:Bearer ' . $accessToken['token']; + curl_setopt($ch, CURLOPT_URL, $url); + if (!empty($data)) { + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); + } + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); + curl_setopt($ch, CURLOPT_HTTPHEADER, $headerInformation); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + $response = curl_exec($ch); + if (curl_error($ch)) { + $this->error[] = curl_error($ch); + } + curl_close($ch); + + return json_decode($response, true); + } + + /** + * @return array + */ + protected function shopwareToken() + { + $result = []; + + $result['success'] = true; + $result['token'] = $this->accessToken; + $result['message'] = 'Keine Antwort von API erhalten.'; + + if (!empty($result['token'])) { + return $result; + } + + $result['success'] = false; + + $data = [ + 'username' => $this->UserName, + 'password' => $this->Password, + 'grant_type' => 'password', + 'scopes' => 'write', + 'client_id' => 'administration', + ]; + + $ch = curl_init($this->ShopUrl . 'oauth/token'); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Accept: application/json', + 'Content-Type: application/json', + 'Cache-Control: no-cache', + ] + ); + $response = json_decode(curl_exec($ch), true); + + if (!empty((string)$response['title'])) { + $result['message'] = $response['title']; + } + + if (!empty($response['access_token'])) { + $result['success'] = true; + $this->accessToken = $response['access_token']; + $result['token'] = $response['access_token']; + } + + return $result; + } + + public function ImportGetArticle() + { + $tmp = $this->CatchRemoteCommand('data'); + + if (isset($tmp['nummerintern'])) { + $nummer = $tmp['nummerintern']; + $response = $this->shopwareRequest('GET', 'product/' . $nummer); + if (empty($response['data'])) { + $this->error[] = 'Artikel in der Shop Datenbank nicht gefunden!'; + return; + } + $nummer = $response['data']['attributes']['productNumber']; + } else { + $nummer = $tmp['nummer']; + } + $articleInfo = $this->shopwareRequest('GET', 'product?filter[product.productNumber]=' . $nummer . + '&associations[manufacturer][]&associations[properties][]'); + if (empty($articleInfo['data'][0])) { + $this->error[] = 'Artikel in der Shop Datenbank nicht gefunden!'; + return; + } + $articleIdInShop = $articleInfo['data'][0]['id']; + if(empty($articleInfo['data'][0]['customFields']) + || empty($articleInfo['data'][0]['customFields']['wawision_shopimporter_syncstate'])){ + $this->addSyncCustomFieldToProduct((string)$articleIdInShop); + } + + $articleInfo = $this->shopwareRequest('GET', 'product?filter[product.productNumber]=' . $nummer . + '&associations[manufacturer][]&associations[properties][]'); + $associatedInformation = []; + $properties = []; + foreach ($articleInfo['included'] as $includedInformation) { + if ($includedInformation['type'] === 'property_group_option') { + $properties[$includedInformation['id']] = $includedInformation['attributes']; + } else { + $associatedInformation[$includedInformation['id']] = $includedInformation['attributes']; + } + } + $groups = []; + if (!empty($properties)) { + $groupsInShop = $this->shopwareRequest('GET', 'property-group'); + foreach ($groupsInShop['data'] as $groupInShop) { + $groups[$groupInShop['id']] = $groupInShop['attributes']['name']; + } + } + $media = $this->shopwareRequest('GET', 'product/' . $articleIdInShop . '/media'); + $imagesToAdd = []; + if (!empty($media['included'])) { + foreach ($media['included'] as $mediaInfo) { + if ($mediaInfo['type'] === 'media') { + $imagesToAdd[] = [ + 'content' => base64_encode(@file_get_contents($mediaInfo['attributes']['url'])), + 'path' => $mediaInfo['attributes']['url'], + 'id' => $mediaInfo['id'] + ]; + } + } + } + $articleInfo = $articleInfo['data'][0]['attributes']; + + $data = []; + $data['name'] = $articleInfo['name']; + if (isset($tmp['nummerintern'])) { + $data['nummer'] = $articleInfo['productNumber']; + } + + + $data['artikelnummerausshop'] = $articleInfo['productNumber']; + $data['restmenge'] = $articleInfo['stock']; + $data['uebersicht_de'] = $articleInfo['description']; + $data['preis_netto'] = $articleInfo['price'][0]['net']; + if (!empty($articleInfo['price'][0]['listPrice'])) { + $data['pseudopreis'] = $articleInfo['price'][0]['listPrice']; + } + $data['aktiv'] = $articleInfo['active']; + if (!empty($articleInfo['weight'])) { + $data['gewicht'] = $articleInfo['weight']; + } + if (!empty($articleInfo['manufacturerNumber'])) { + $data['herstellernummer'] = $articleInfo['manufacturerNumber']; + } + if (!empty($articleInfo['ean'])) { + $data['ean'] = $articleInfo['ean']; + } + if (!empty($articleInfo['manufacturerId'])) { + $data['hersteller'] = $associatedInformation[$articleInfo['manufacturerId']]['name']; + } + if (!empty($articleInfo['taxId'])) { + $data['umsatzsteuer'] = $associatedInformation[$articleInfo['taxId']]['taxRate']; + } + if (!empty($properties)) { + foreach ($properties as $property) { + if ($this->propertyOption === 'toProperties') { + $data['eigenschaften'][] = [ + 'name' => $groups[$property['groupId']], + 'values' => $property['name'], + ]; + } + if ($this->propertyOption === 'toCustomFields') { + $data['freifeld_' . $groups[$property['groupId']]] = $property['name']; + } + } + } + if (!empty($articleInfo['customFields'])) { + foreach ($articleInfo['customFields'] as $customFieldName => $customFieldValue) { + if ($this->freeFieldOption === 'toProperties') { + $data['eigenschaften'][] = [ + 'name' => $customFieldName, + 'values' => $customFieldValue + ]; + } + if ($this->freeFieldOption === 'toCustomFields') { + $data['freifeld_' . $customFieldName] = $customFieldValue; + } + } + } + if (!empty($imagesToAdd)) { + $data['bilder'] = $imagesToAdd; + } + + + if ($articleInfo['childCount'] > 0) { + $data = [$data]; + + $limit = 50; + $page = 1; + $optionInfo = []; + $optionGroupInfo = []; + do { + + $searchdata = [ + 'limit' => $limit, + 'page' => $page, + 'filter' => [ + [ + 'field' => 'product.parentId', + 'type' => 'equals', + 'value' => $articleIdInShop + ] + ], + 'sort' => [ + [ + 'field' => 'product.options.groupId', + 'naturalSorting' => false, + 'order' => 'ASC' + ], + [ + 'field' => 'product.options.id', + 'naturalSorting' => false, + 'order' => 'ASC' + ] + ], + 'associations' => [ + 'options' => [ + 'sort' => [ + [ + 'field' => 'groupId', + 'naturalSorting' => false, + 'order' => 'ASC' + ], + [ + 'field' => 'id', + 'naturalSorting' => false, + 'order' => 'ASC' + ] + ] + ] + ] + ]; + $variantsInShop = $this->shopwareRequest('POST', 'search/product', $searchdata); + foreach ($variantsInShop['included'] as $includedInfo) { + if ($includedInfo['type'] === 'property_group_option') { + $optionInfo[$includedInfo['id']] = $includedInfo['attributes']; + if (empty($optionGroupInfo[$includedInfo['attributes']['groupId']])) { + $optionGroupInfo[$includedInfo['attributes']['groupId']] = (!empty($optionGroupInfo)?count($optionGroupInfo):0) + 1; + } + } + } + + foreach ($variantsInShop['data'] as $variantInShop) { + $variantData = []; + $variantName = $data[0]['name']; + foreach ($variantInShop['attributes']['optionIds'] as $optionId) { + $variantData['matrixprodukt_wert' . $optionGroupInfo[$optionInfo[$optionId]['groupId']]] = + $optionInfo[$optionId]['name']; + $variantName .= ' - ' . $optionInfo[$optionId]['name']; + } + + $variantData['name'] = $variantName; + $variantData['nummer'] = $variantInShop['attributes']['productNumber']; + $variantData['artikelnummerausshop'] = $variantInShop['attributes']['productNumber']; + $variantData['restmenge'] = $variantInShop['attributes']['stock']; + $variantData['uebersicht_de'] = $variantInShop['attributes']['description']; + if (empty($variantInShop['attributes']['price'][0]['net'])) { + $variantData['preis_netto'] = $data[0]['preis_netto']; + } else { + $variantData['preis_netto'] = $variantInShop['attributes']['price'][0]['net']; + } + if (!empty($variantInShop['attributes']['price'][0]['listPrice'])) { + $variantData['pseudopreis'] = $variantInShop['attributes']['price'][0]['listPrice']; + } + $variantData['aktiv'] = $variantInShop['attributes']['active']; + if (!empty($variantInShop['attributes']['weight'])) { + $variantData['gewicht'] = $variantInShop['attributes']['weight']; + } + if (!empty($variantInShop['attributes']['manufacturerNumber'])) { + $variantData['herstellernummer'] = $variantInShop['attributes']['manufacturerNumber']; + } + if (!empty($variantInShop['attributes']['ean'])) { + $variantData['ean'] = $variantInShop['attributes']['ean']; + } + if (!empty($data[0]['umsatzsteuer'])) { + $variantData['umsatzsteuer'] = $data[0]['umsatzsteuer']; + } + + $data[] = $variantData; + } + + $page++; + } while (count($variantsInShop['data']) > $limit); + + foreach ($optionGroupInfo as $groupId => $sorting) { + $data[0]['matrixprodukt_gruppe' . $sorting] = $groups[$groupId]; + } + foreach ($optionInfo as $optionData) { + $data[0]['matrixprodukt_optionen' . $optionGroupInfo[$optionData['groupId']]][] = $optionData['name']; + } + } + + //TODO Staffelpreise + //TODO Kategorien + //TODO Freifelder + //TODO Crossselling + + return $data; + } + + /** + * @param array $data + * + * @return array + */ + public function checkApiApp($data) + { + foreach (['shopwareUserName', 'shopwarePassword', 'shopwareUrl'] as $field) { + if (empty($data['data'][$field])) { + return ['success' => false, 'error' => sprintf('%s is empty', $field)]; + } + } + + $shops = $this->app->DB->SelectArr( + sprintf( + "SELECT `einstellungen_json`, `bezeichnung`,`id` + FROM `shopexport` + WHERE `modulename` = 'shopimporter_shopware6' + AND `einstellungen_json` IS NOT NULL AND `einstellungen_json` <> ''" + ) + ); + if (empty($shops)) { + return [ + 'info' => [ + 'Shop' => 'Shopware', + 'info' => 'Url ' . $data['data']['shopwareUrl'], + ] + ]; + } + foreach ($shops as $shop) { + if (empty($shop['einstellungen_json'])) { + continue; + } + $json = @json_decode($shop['einstellungen_json'], true); + if (empty($json['felder']) || empty($json['felder']['shopwareUrl'])) { + continue; + } + if ($json['felder']['shopwareUrl'] === $data['data']['shopwareUrl']) { + return [ + 'success' => false, + 'error' => sprintf('Shop with url %s allready exists', $data['data']['shopwareUrl']) + ]; + } + } + + return [ + 'info' => [ + 'Shop' => 'Shopware', + 'info' => 'Url ' . $data['data']['shopwareUrl'], + ] + ]; + } + + /** + * + */ + public function Shopimporter_Shopware6List() + { + $msg = $this->app->erp->base64_url_encode('
Sie können hier die Shops einstellen
'); + header('Location: index.php?module=onlineshops&action=list&msg=' . $msg); + exit; + } + + /** + * @param $shopid + * @param $data + */ + public function getKonfig($shopid, $data) + { + $this->shopid = $shopid; + $this->data = $data; + $importerSettings = $this->app->DB->SelectArr("SELECT `einstellungen_json`, `kategorienuebertragen` FROM `shopexport` WHERE `id` = '$shopid' LIMIT 1"); + $importerSettings = reset($importerSettings); + + $this->exportCategories = (bool) $importerSettings['kategorienuebertragen']; + + $einstellungen = []; + if (!empty($importerSettings['einstellungen_json'])) { + $einstellungen = json_decode($importerSettings['einstellungen_json'], true); + } + $this->protocol = $einstellungen['felder']['protocol']; + $this->UserName = $einstellungen['felder']['shopwareUserName']; + $this->Password = $einstellungen['felder']['shopwarePassword']; + $this->ShopUrl = rtrim($einstellungen['felder']['shopwareUrl'], '/') . '/'; + $this->createManufacturerAllowed = false; + if ($einstellungen['felder']['shopwareAllowCreateManufacturer'] === '1') { + $this->createManufacturerAllowed = true; + } + $this->defaultManufacturer = $einstellungen['felder']['shopwareDefaultManufacturer']; + $this->defaultRuleName = $einstellungen['felder']['shopwareDefaultRuleName']; + $this->statesToFetch = $einstellungen['felder']['statesToFetch']; + $this->deliveryStatesToFetch = $einstellungen['felder']['deliveryStatesToFetch']; + $this->transactionStatesToFetch = $einstellungen['felder']['transactionStatesToFetch']; + $this->salesChannelToFetch = $einstellungen['felder']['salesChannelToFetch']; + $this->orderSearchLimit = $einstellungen['felder']['orderSearchLimit']; + $this->freeFieldOption = $einstellungen['felder']['shopwareFreeFieldOption']; + $this->propertyOption = $einstellungen['felder']['shopwarePropertyOption']; + $this->shopwareDefaultSalesChannel = $einstellungen['felder']['shopwareDefaultSalesChannel']; + $this->shopwareMediaFolder = $einstellungen['felder']['shopwareMediaFolder']; + $query = sprintf('SELECT `steuerfreilieferlandexport` FROM `shopexport` WHERE `id` = %d', $this->shopid); + $this->taxationByDestinationCountry = !empty($this->app->DB->Select($query)); + + $this->client = $this->app->Container->get('Shopware6Client'); + $this->client->setCredentials( + $this->UserName, + $this->Password, + $this->ShopUrl + ); + } + + /** + * @return array + */ + public function EinstellungenStruktur() + { + return + [ + 'ausblenden' => ['abholmodus' => ['ab_nummer']], + 'functions' => ['exportartikelbaum','getarticlelist','updatezahlungsstatus'], + 'felder' => [ + 'protocol' => [ + 'typ' => 'checkbox', + 'bezeichnung' => '{|Protokollierung im Logfile|}:', + ], + 'shopwareUserName' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Benutzername|}:', + 'size' => 40, + ], + 'shopwarePassword' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Passwort|}:', + 'size' => 40, + ], + 'shopwareUrl' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Shop API URL|}:', + 'size' => 40, + ], + 'shopwareDefaultManufacturer' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Standard Hersteller|}:', + 'size' => 40, + 'default' => 'Keine Herstellerinformation', + ], + 'shopwareAllowCreateManufacturer' => [ + 'typ' => 'checkbox', + 'bezeichnung' => '{|Bei Artikelexport Hersteller anlegen|}:', + ], + 'shopwareDefaultRuleName' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Name der Standardpreisgruppe|}:', + 'size' => 40, + 'default' => 'All customers', + ], + 'shopwarePropertyOption' => [ + 'heading' => '{|Eigenschaften / Freifeld Zuordnung|}', + 'typ' => 'select', + 'bezeichnung' => '{|Xentral Artikel Eigenschaften|}:', + 'size' => 40, + 'default' => 'toProperties', + 'optionen' => ['toProperties' => '{|Shopware Eigenschaften|}', 'toCustomFields' => '{|Shopware Zusatzfelder|}', 'doNotExport' => '{|Nicht übertragen|}'] + ], + 'shopwareFreeFieldOption' => [ + 'typ' => 'select', + 'bezeichnung' => '{|Xentral Artikel Freifelder|}:', + 'size' => 40, + 'default' => 'toCustomFields', + 'optionen' => ['toProperties' => '{|Shopware Eigenschaften|}', 'toCustomFields' => '{|Shopware Zusatzfelder|}', 'doNotExport' => '{|Nicht übertragen|}'] + ], + 'shopwareDefaultSalesChannel' => [ + 'heading' => '{|Artikelexport Standardeinstellungen|}', + 'typ' => 'text', + 'bezeichnung' => '{|Standard Sichtbarkeit|}:', + 'size' => 40 + ], + 'shopwareMediaFolder' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Media Folder für Artikelbilder|}:', + 'size' => 40, + 'default' => 'Product Media' + ], + 'statesToFetch' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Abzuholender Bestellstatus|}:', + 'size' => 40, + 'default' => 'open', + 'col' => 2, + 'info' => '
Erlaubte Werte: open;in_progress;completed;cancelled' + ], + 'deliveryStatesToFetch' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Eingrenzen auf Lieferstatus|}:', + 'size' => 40, + 'default' => '', + 'col' => 2, + 'info' => '
Erlaubte Werte: open;shipped_partially;shipped;returned;returned_partially;cancelled' + ], + 'transactionStatesToFetch' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Eingrenzen auf Bezahlstatus|}:', + 'size' => 40, + 'default' => '', + 'col' => 2, + 'info' => '
Erlaubte Werte: open;paid;authorized;paid_partially;refunded;refunded_partially;reminded;cancelled' + ], + 'salesChannelToFetch' => [ + 'typ' => 'text', + 'bezeichnung' => '{|Eingrenzen auf Sales Channel|}:', + 'size' => 40, + 'default' => '', + 'col' => 2, + 'info' => '
Klicke auf "Verbindung prüfen" um die verfügbaren Channels (bitte die Id verwenden) anzuzeigen.' + ], + 'orderSearchLimit' => [ + 'typ' => 'select', + 'bezeichnung' => '{|Anzahl Aufträge abholen|}:', + 'optionen' => [ + '25' => '25', + '50' => '50', + '75' => '75', + '100' => '100', + ], + 'default' => '25', + 'col' => 2 + ], + ], + ]; + } + + public function ImportUpdateZahlungsstatus() + { + $tmp = $this->CatchRemoteCommand('data'); + $auftrag = $tmp['auftrag']; + + $transactions = $this->shopwareRequest('GET', 'order/'.$auftrag.'/transactions'); + $transactionId = $transactions['data'][0]['id']; + + if(empty($transactionId)){ + return; + } + + $response = $this->shopwareRequest('POST', '_action/order_transaction/'.$transactionId.'/state/paid'); + if (!empty($response['id'])) { + return 'ok'; + } + } + + public function ImportSendArtikelbaum(){ + $xentralCategoryTree = []; + $this->app->erp->GetKategorienbaum($xentralCategoryTree, 0, 0, $this->shopid); + + $xentralCategoryIdToParentId = []; + foreach ($xentralCategoryTree as $key => $value) { + $xentralCategoryTree[$key]['erledigt'] = false; + $xentralCategoryTree[$key]['shopid'] = ''; + $xentralCategoryTree[$key]['aktiv'] = false; + $xentralCategoryIdToParentId[$value['id']] = $key; + } + + $parentCategoryId = null; + foreach ($xentralCategoryTree as $index => $categoryData) { + $this->createCategoryTree($index, $xentralCategoryTree, $xentralCategoryIdToParentId, $parentCategoryId); + } + } + + protected function createCategoryTree($id, &$xentralCategoryTree, $xentralCategoryIdToParentId, $parentCategoryId) + { + $parentId = $parentCategoryId; + if ($xentralCategoryTree[$id]['parent']) { + $parentId = $xentralCategoryTree[$xentralCategoryIdToParentId[$xentralCategoryTree[$id]['parent']]]['shopid']; + } + if ($xentralCategoryTree[$id]['parent'] && !$xentralCategoryTree[$xentralCategoryIdToParentId[$xentralCategoryTree[$id]['parent']]]['erledigt']) { + $this->createCategoryTree($xentralCategoryIdToParentId[$xentralCategoryTree[$id]['parent']], $xentralCategoryTree, $xentralCategoryIdToParentId, $parentCategoryId); + } + $xentralCategoryTree[$id]['erledigt'] = true; + + $categoryName = $xentralCategoryTree[$id]['bezeichnung']; + $searchdata = [ + 'limit' => 25, + 'filter' => [ + [ + 'field' => 'category.name', + 'type' => 'equals', + 'value' => $categoryName + ], + [ + 'field' => 'category.parentId', + 'type' => 'equals', + 'value' => $parentId + ] + ] + ]; + + $categoriesInShop = $this->shopwareRequest('POST', 'search/category', $searchdata); + + $categoryId = ''; + if (!empty($categoriesInShop['data'])) { + $categoryId = $categoriesInShop['data'][0]['id']; + } + + if (!$categoryId) { + $categoryData = [ + 'parentId' => $parentId, + 'name' => $categoryName + ]; + $result = $this->shopwareRequest('POST', 'category?_response=true', $categoryData); + if ($result['data']['id']) { + $categoryId = $result['data']['id']; + } + } + + if ($categoryId) { + $xentralCategoryTree[$id]['shopid'] = $categoryId; + } + } + + /** + * @return int + */ + public function ImportSendListLager() + { + $tmp = $this->CatchRemoteCommand('data'); + + $count = 0; + foreach ($tmp as $article) { + $artikel = $article['artikel']; + if ($artikel === 'ignore') { + continue; + } + $nummer = $article['nummer']; + $fremdnummer = $article['fremdnummer']; + if (!empty($fremdnummer)) { + $nummer = $fremdnummer; + } + $articleInfo = $this->shopwareRequest('GET', 'product?filter[product.productNumber]=' . $nummer); + + if (empty($articleInfo['data'][0]['id'])) { + $this->Shopware6Log('Artikel wurde nicht im Shop gefunden: ' . $nummer, $articleInfo); + continue; + } + if(empty($articleInfo['data'][0]['customFields']) + || empty($articleInfo['data'][0]['customFields']['wawision_shopimporter_syncstate'])){ + $this->addSyncCustomFieldToProduct((string)$articleInfo['data'][0]['id']); + } + + $active = true; + if ($article['inaktiv']) { + $active = false; + } + + $stock = $article['anzahl_lager']; + if (!empty($article['pseudolager'])) { + $stock = $article['pseudolager']; + } + $stock = $this->getCorrectedStockFromAvailable($active, (int)$stock, $articleInfo); + $data = [ + 'stock' => $stock, + 'active' => $active, + ]; + $response = $this->shopwareRequest('PATCH', 'product/' . $articleInfo['data'][0]['id'], $data); + $this->Shopware6Log('Lagerbestand konnte nicht uebertragen werden fuer Artikel: ' . $nummer, $response); + $count++; + } + + return $count; + } + + /** + * @param bool $isStockActive + * @param int $stock + * @param array|null $articleInfo + * + * @return int + */ + public function getCorrectedStockFromAvailable(bool $isStockActive, int $stock, ?array $articleInfo): int + { + if(!$isStockActive) { + return $stock; + } + if(empty($articleInfo)) { + return $stock; + } + if(!isset($articleInfo['data'][0]['attributes']['availableStock'])) { + return $stock; + } + if(!isset($articleInfo['data'][0]['attributes']['availableStock'])) { + return $stock; + } + $reserved = (int)$articleInfo['data'][0]['attributes']['stock'] + - (int)$articleInfo['data'][0]['attributes']['availableStock']; + if($reserved <= 0) { + return $stock; + } + + return $stock + $reserved; + } + + /** + * @param string $message + * @param mixed $dump + */ + public function Shopware6Log($message, $dump = '') + { + if ($this->protocol) { + $this->app->erp->Logfile($message, print_r($dump, true)); + } + } + + /** + * @return int + */ + public function ImportSendList() + { + $articleList = $this->CatchRemoteCommand('data'); + + $successCounter = 0; + foreach ($articleList as $article) { + $number = $article['nummer']; + $articleInfo = $this->shopwareRequest( + 'GET', + sprintf('product?filter[product.productNumber]=%s', $number) + ); + $articleIdShopware = ''; + if (!empty($articleInfo['data'][0]['id'])) { + $articleIdShopware = $articleInfo['data'][0]['id']; + } + + $quantity = $article['anzahl_lager']; + if (!empty($article['pseudolager'])) { + $quantity = $article['pseudolager']; + } + $inaktiv = $article['inaktiv']; + $active = true; + if (!empty($inaktiv)) { + $active = false; + } + $quantity = $this->getCorrectedStockFromAvailable($active, (int)$quantity, $articleInfo); + $taxRate = (float)$article['steuersatz']; + + $taxId = $this->getTaxIdByRate($taxRate); + + $mediaToAdd = $this->mediaToExport($article, $articleIdShopware); + + $categoriesToAdd = []; + if($this->exportCategories){ + $categoriesToAdd = $this->categoriesToExport($article, $articleIdShopware); + } + + $propertiesToAdd = $this->propertiesToExport($article, $articleIdShopware); + + $crosselingToAdd = $this->crosssellingToExport($article, $articleIdShopware); + + $systemFieldsToAdd = $this->systemFieldsToExport($article, $articleIdShopware); + + $deliveryTimeId = null; + if(!empty($article['lieferzeitmanuell'])){ + $deliveryTimeId = $this->getDeliveryTimeId($article['lieferzeitmanuell']); + } + + if (empty($systemFieldsToAdd['visibilities']) && !empty($this->shopwareDefaultSalesChannel)) { + $systemFieldsToAdd['visibilities'] = $this->modifySalesChannel(explode(',', $this->shopwareDefaultSalesChannel), $articleIdShopware); + } + + if(empty($systemFieldsToAdd['unitId']) && !empty($article['einheit']) ){ + $systemFieldsToAdd['unitId'] = $this->unitToAdd($article['einheit']); + } + + + //Hersteller in Shopware suchen bzw. Anlegen + $manufacturerName = $article['hersteller']; + $manufacturerId = $this->getManufacturerIdByName($manufacturerName); + + if ($manufacturerId === null && $this->createManufacturerAllowed === true) { + $manufacturerId = $this->createManufacturer($manufacturerName); + } + + if (empty($manufacturerId)) { + return 'error: Für den Artikelexport ist die Herstellerinformation zwingend erforderlich'; + } + + $isCloseOut = false; + if(!empty($article['restmenge'])){ + $isCloseOut = true; + } + + $description = $this->prepareDescription($article['uebersicht_de']); + $ean = $article['ean']; + $metaTitle = $article['metatitle_de']; + $metaDescription = $article['metadescription_de']; + $metaKeywords = $article['metakeywords_de']; + + $manufacturerNumber = $article['herstellernummer']; + if (empty($manufacturerNumber)) { + $manufacturerNumber = ''; + } + + $weight = (float)$article['gewicht']; + $length = (float)$article['laenge'] * 10; + $height = (float)$article['hoehe'] * 10; + $width = (float)$article['breite'] * 10; + + $purchasePrice = (float)$article['einkaufspreis']; + + $currencyId = $this->findCurrencyId($article['waehrung']); + $price = [ + 'net' => $article['preis'], + 'gross' => $article['bruttopreis'], + 'currencyId' => $currencyId, + 'linked' => true]; + + if (!empty($article['pseudopreis'])) { + $price['listPrice'] = [ + 'currencyId' => $currencyId, + 'gross' => $article['pseudopreis'], + 'linked' => true, + 'net' => $article['pseudopreis']/(1+$taxRate/100) + ]; + } + + $data = [ + 'name' => $article['name_de'], + 'isCloseout' => $isCloseOut, + 'productNumber' => $number, + 'manufacturerId' => $manufacturerId, + 'stock' => (int)$quantity, + 'taxId' => $taxId, + 'active' => $active, + 'description' => $description, + 'ean' => $ean, + 'metaTitle' => $metaTitle, + 'metaDescription' => $metaDescription, + 'keywords' => $metaKeywords, + 'manufacturerNumber' => $manufacturerNumber, + 'length' => $length, + 'width' => $width, + 'height' => $height, + 'weight' => $weight, + 'purchasePrice' => $purchasePrice, + 'price' => [$price], + 'categories' => $categoriesToAdd, + 'properties' => $propertiesToAdd, + 'crossSellings' => $crosselingToAdd, + 'media' => $mediaToAdd, + 'deliveryTimeId' => $deliveryTimeId + ]; + + $data = array_merge($data, $systemFieldsToAdd); + if(empty($data['customFields']) + || empty($data['customFields']['wawision_shopimporter_syncstate'])){ + $data['customFields']['wawision_shopimporter_syncstate'] = 1; + } + + if (empty($articleIdShopware)) { + $result = $this->shopwareRequest('POST', + 'product?_response=true', $data); + if (!empty($result['data']['id'])) { + $articleIdShopware = $result['data']['id']; + $articleInfo['data'][0] = $result['data']; + } + } else { + $headerInformation = []; + $languageId = $this->getLanguageIdByCountryIso('DE'); + if (!empty($languageId)) { + $headerInformation[] = 'sw-language-id: ' . $languageId; + } + $result = $this->shopwareRequest('PATCH', + sprintf('product/%s?_response=true', $articleIdShopware), $data, $headerInformation); + } + + if(!empty($articleIdShopware)){ + $this->exportTranslationsForArticle($article, $articleIdShopware); + } + + $this->addCoverImage($article, $articleIdShopware); + + if (empty($result['data']) || is_array($result['errors'])) { + $this->Shopware6Log('Artikelexport fehlgeschlagen', ['data:' => $data, 'response' => $result]); + continue; + } + + $this->exportSeoUrls($article, $articleIdShopware); + + $this->exportVariants($article, $articleIdShopware, $currencyId); + + if (empty($result['data']) || is_array($result['errors'])) { + $this->Shopware6Log('Artikelexport bei Bildübertragung fehlgeschlagen', ['data:' => $data, 'response' => $result]); + continue; + } + + $defaultPrices = $this->getPricesFromArray($article['staffelpreise_standard'] ?? []); + $groupPrices = $this->getPricesFromArray($article['staffelpreise_gruppen'] ?? []); + + if (!empty($defaultPrices) || !empty($groupPrices)) { + $this->deleteOldBulkPrices($articleIdShopware); + } + if (!empty($defaultPrices)) { + foreach ($defaultPrices as $priceData) { + $this->exportBulkPriceForGroup($articleIdShopware, $this->defaultRuleName, $priceData); + } + } + if (!empty($groupPrices)) { + foreach ($groupPrices as $priceData) { + $this->exportBulkPriceForGroup($articleIdShopware, $priceData->getGroupName(), $priceData); + } + } + + $successCounter++; + } + + return $successCounter; + } + + protected function exportBulkPriceForGroup(string $productId, string $groupName, PriceData $priceData): void + { + $currencyId = $this->findCurrencyId($priceData->getCurrency()); + + $groupRuleId = $this->client->getGroupRuleId($groupName); + if (empty($groupRuleId)) { + $this->Shopware6Log("Fehler: Gruppe {$groupName} konnte im Shop nicht gefunden werden"); + return; + } + + $result = $this->client->saveBulkPrice($productId, $groupRuleId, $currencyId, $priceData); + if (empty($result['data'])) { + $this->Shopware6Log("Fehler: Staffelpreis für Gruppe {$groupName} konnte nicht exportiert werden", $result); + } + } + + /** + * @param string $deliveryTimeText + * + * @return string|null + */ + protected function getDeliveryTimeId(string $deliveryTimeText): ?string + { + $searchCommand = [ + 'limit' => 5, + 'filter' => [ + [ + 'field' => 'name', + 'type' => 'equals', + 'value' => $deliveryTimeText + ] + ] + ]; + $result = $this->shopwareRequest('POST', 'search/delivery-time', $searchCommand); + + if (empty($result['data'][0]['id'])) { + return null; + } + + return $result['data'][0]['id']; + } + + /** + * @param string $description + * @return string + */ + protected function prepareDescription($description): string + { + $markupSubstitute = [ + '/"/' => '"', + '/<([^&]+)>/' => '<\1>', + '/\\/' => '', + '/\\<\/strong>/' => '', + '/\\/' => '', + '/\\<\/em>/' => '', + '/&/' => '&', + ]; + + return (string)preg_replace(array_keys($markupSubstitute), array_values($markupSubstitute), $description); + } + + /** + * @param array $article + * @param string $articleIdShopware + */ + protected function exportTranslationsForArticle(array $article, string $articleIdShopware): void + { + $customFieldsToAdd = $this->customFieldsToExport($article, $articleIdShopware); + + $preparedTranslations = []; + $preparedTranslations['DE'] = [ + 'name' => $article['name_de'], + 'description' => $this->prepareDescription($article['uebersicht_de']), + 'metaTitle' => $article['metatitle_de'], + 'metaDescription' => $article['metadescription_de'], + 'keywords' => $article['metakeywords_de'], + 'customFields' => [] + ]; + if(!empty($customFieldsToAdd['DE'])){ + $preparedTranslations['DE']['customFields'] = $customFieldsToAdd['DE']; + } + $preparedTranslations['GB'] = [ + 'name' => $article['name_en'], + 'description' => $this->prepareDescription($article['uebersicht_en']), + 'metaTitle' => $article['metatitle_en'], + 'metaDescription' => $article['metadescription_en'], + 'keywords' => $article['metakeywords_en'], + 'customFields' => [], + ]; + if(!empty($customFieldsToAdd['GB'])){ + $preparedTranslations['GB']['customFields'] = $customFieldsToAdd['GB']; + } + foreach ($article['texte'] as $translation) { + if ($translation['sprache'] === 'EN') { + $translation['sprache'] = 'GB'; + } + $preparedTranslations[$translation['sprache']] = [ + 'name' => $translation['name'], + 'description' => $this->prepareDescription($translation['beschreibung_online']), + 'metaTitle' => $translation['meta_title'], + 'metaDescription' => $translation['meta_description'], + 'keywords' => $translation['meta_keywords'], + ]; + if(!empty($customFieldsToAdd[$translation['sprache']])){ + $preparedTranslations[$translation['sprache']]['customFields'] = $customFieldsToAdd[$translation['sprache']]; + } + } + + foreach ($preparedTranslations as $countryIsoCode => $translation) { + $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); + if (empty($languageId)) { + $this->Shopware6Log('Language Id not found for country: ' . $countryIsoCode); + continue; + } + + $headerInformation = ['sw-language-id: ' . $languageId]; + $this->shopwareRequest( + 'PATCH', + sprintf('product/%s', $articleIdShopware), + $translation, $headerInformation + ); + } + } + + /** + * @param string $countryIso + * + * @return string|null + */ + protected function getLanguageIdByCountryIso(string $countryIso): ?string + { + if(array_key_exists($countryIso, $this->knownShopLanguageIds)){ + return $this->knownShopLanguageIds[$countryIso]; + } + + $searchCommand = [ + 'limit' => 5, + 'filter' => [ + [ + 'field' => 'country.iso', + 'type' => 'equals', + 'value' => $countryIso + ] + ] + ]; + $countryInformation = $this->shopwareRequest('POST', 'search/country', $searchCommand); + + foreach ($countryInformation['data'] as $country){ + $searchCommand = [ + 'limit' => 5, + 'filter' => [ + [ + 'field' => 'locale.territory', + 'type' => 'equals', + 'value' => $country['attributes']['name'] + ] + ] + ]; + $localeInformation = $this->shopwareRequest('POST', 'search/locale', $searchCommand); + foreach ($localeInformation['data'] as $locale) { + $searchCommand = [ + 'limit' => 5, + 'filter' => [ + [ + 'field' => 'language.localeId', + 'type' => 'equals', + 'value' => $locale['id'] + ] + ] + ]; + $languageInformation = $this->shopwareRequest('POST', 'search/language', $searchCommand); + if (!empty($languageInformation['data'][0]['id'])) { + $this->knownShopLanguageIds[$countryIso] = $languageInformation['data'][0]['id']; + return $languageInformation['data'][0]['id']; + } + } + } + $this->knownShopLanguageIds[$countryIso] = null; + + return null; + } + + /** + * @param string $manufacturerName + * + * @return null|string + */ + protected function createManufacturer(string $manufacturerName): ?string + { + $data = ['name' => $manufacturerName]; + $response = $this->shopwareRequest('POST', 'product-manufacturer?_response=true', $data); + + $manufacturerId = null; + if(!empty($response['data']['id'])){ + $manufacturerId = $response['data']['id']; + $this->knownManufacturerIds[$manufacturerName] = $manufacturerId; + } + + return $manufacturerId; + } + + /** + * @param string $manufacturerName + * + * @return null|string + */ + protected function getManufacturerIdByName(string $manufacturerName): ?string + { + if (!empty($this->knownManufacturerIds[$manufacturerName])) { + return $this->knownManufacturerIds[$manufacturerName]; + } + + $manufacturerId = null; + if (empty($manufacturerName)) { + $manufacturerName = $this->defaultManufacturer; + } + $manufacturer = $this->shopwareRequest( + 'GET', + 'product-manufacturer?filter[product_manufacturer.name]=' . urlencode($manufacturerName) + ); + $manufacturerId = $manufacturer['data'][0]['id']; + $this->knownManufacturerIds[$manufacturerName] = $manufacturerId; + + return $manufacturerId; + } + + /** + * @param float $taxRate + * + * @return string + */ + protected function getTaxIdByRate(float $taxRate): string{ + if(empty($this->taxesInShop)){ + $this->taxesInShop = $this->shopwareRequest('GET', 'tax'); + } + foreach ($this->taxesInShop['data'] as $taxData) { + if (abs(($taxData['attributes']['taxRate']-$taxRate)) < 0.0001 ) { + return $taxData['id']; + } + } + + return $this->taxesInShop['data'][0]['id']; + } + + /** + * @param array $internalArticleData + * @param string $articleIdShopware + * + * @return array + */ + protected function mediaToExport($internalArticleData, $articleIdShopware) + { + $mediaToAdd = [ + ]; + + if (empty($internalArticleData['Dateien'])) { + return $mediaToAdd; + } + $internalMediaIds = []; + + $searchdata = [ + 'limit' => 1, + 'filter' => [ + [ + 'field' => 'name', + 'type' => 'equals', + 'value' => $this->shopwareMediaFolder + ] + ] + ]; + $mediaFolderData = $this->shopwareRequest('POST', 'search/media-folder', $searchdata); + if(empty($mediaFolderData['data'][0]['id'])){ + $this->Shopware6ErrorLog('Kein Media Folder gefunden für: ', $this->shopwareMediaFolder); + return []; + } + + $mediaFolderId = $mediaFolderData['data'][0]['id']; + + foreach ($internalArticleData['Dateien'] as $internalFile) { + $filename = explode('.', $internalFile['filename']); + unset($filename[(!empty($filename)?count($filename):0) - 1]); + $filename = $internalFile['id'].'_'.implode($filename); + $extension = $internalFile['extension']; + $imageTitle = (string)$internalFile['titel']; + $imageAltText = (string)$internalFile['beschreibung']; + $accessToken = $this->shopwareToken(); + + $searchdata = [ + 'limit' => 5, + 'filter' => [ + [ + 'field' => 'media.fileName', + 'type' => 'equals', + 'value' => $filename + ] + ] + ]; + $mediaData = $this->shopwareRequest('POST', 'search/media', $searchdata); + if (!empty($mediaData['data'][0]['id'])) { + $internalMediaIds[] = $mediaData['data'][0]['id']; + if($mediaData['data'][0]['attributes']['title'] !== $imageTitle + || $mediaData['data'][0]['attributes']['alt'] !== $imageAltText){ + $this->setMediaTitleAndAltText($mediaData['data'][0]['id'], $imageTitle, $imageAltText); + } + continue; + } + + $mediaData = $this->shopwareRequest('POST', 'media?_response=true', []); + if(empty($mediaData['data']['id'])){ + $this->Shopware6Log('Error when creating media for sku: ' . $internalArticleData['nummer'], + ['mediaData' => $mediaData, 'title' => $imageTitle, 'text' => $imageAltText]); + continue; + } + $mediaId = $mediaData['data']['id']; + $this->setMediaTitleAndAltText($mediaId, $imageTitle, $imageAltText); + + $mediaAssociationData = [ + [ + 'action' => 'upsert', + 'entity' => 'media', + 'payload' => [ + [ + 'id' => $mediaId, + 'mediaFolderId' => $mediaFolderId + ] + ] + ] + ]; + $this->shopwareRequest('POST', '_action/sync?_response=true', $mediaAssociationData); + + $url = $this->ShopUrl . '_action/media/' . $mediaId . '/upload?extension=' . $extension . '&fileName=' . $filename; + $ch = curl_init(); + $setHeaders = [ + 'Content-Type:image/' . $extension, + 'Authorization:Bearer ' . $accessToken['token'] + ]; + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_POSTFIELDS, base64_decode($internalFile['datei'])); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, $setHeaders); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_exec($ch); + + $internalMediaIds[] = $mediaId; + } + + $existingMediaConnection = []; + if (!empty($articleIdShopware)) { + $existingMediaConnection = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/media?limit=100'); + foreach ($existingMediaConnection['data'] as $existingConnection) { + if (!in_array($existingConnection['attributes']['mediaId'], $internalMediaIds, false)) { + $this->shopwareRequest('DELETE', 'product/' . $articleIdShopware . '/media/' . $existingConnection['id']); + } + } + } + + $alreadyAddedMediaIDs = []; + if (!empty($existingMediaConnection)) { + foreach ($existingMediaConnection['data'] as $existingConnection) { + $alreadyAddedMediaIDs[$existingConnection['attributes']['mediaId']] = $existingConnection['id']; + } + } + $position = 0; + foreach ($internalMediaIds as $mediaId) { + $mediaDataSet = [ + 'mediaId' => $mediaId, + 'position' => $position + ]; + if (array_key_exists($mediaId, $alreadyAddedMediaIDs)) { + $mediaDataSet['id'] = $alreadyAddedMediaIDs[$mediaId]; + } + $mediaToAdd[] = $mediaDataSet; + $position++; + } + + return $mediaToAdd; + } + + /** + * @param string $mediaId + * @param string $title + * @param string $altText + */ + protected function setMediaTitleAndAltText(string $mediaId, string $title, string $altText): void + { + $this->shopwareRequest('PATCH', 'media/' . $mediaId, + ['title' => $title, + 'alt' => $altText + ] + ); + } + + /** + * @param array $articleInXentral + * @param string $articleIdShopware + */ + protected function addCoverImage($articleInXentral, $articleIdShopware){ + if(empty($articleIdShopware)){ + return; + } + if(empty($articleInXentral['Dateien'])){ + return; + } + $existingMediaConnection = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/media?limit=100'); + if(empty($existingMediaConnection['data'])){ + return; + } + foreach ($articleInXentral['Dateien'] as $xentralFile) { + $filename = explode('.', $xentralFile['filename']); + unset($filename[(!empty($filename)?count($filename):0) - 1]); + $filename = $xentralFile['id'].'_'.implode($filename); + + $searchdata = [ + 'limit' => 5, + 'filter' => [ + [ + 'field' => 'media.fileName', + 'type' => 'equals', + 'value' => $filename + ] + ] + ]; + $mediaData = $this->shopwareRequest('POST', 'search/media', $searchdata); + $mediaId = $mediaData['data'][0]['id']; + + foreach ($existingMediaConnection['data'] as $mediaConnection){ + if($mediaId === $mediaConnection['attributes']['mediaId']){ + + $this->shopwareRequest('PATCH', + sprintf('product/%s?_response=true', $articleIdShopware),['coverId' => $mediaConnection['id']]); + return; + } + } + } + } + + /** + * @param array $articleInXentral + * @param string $articleIdShopware + * @return array + */ + protected function categoriesToExport($articleInXentral, $articleIdShopware) + { + $categoryName = $articleInXentral['kategoriename']; + $categoryTree = $articleInXentral['kategorien']; + + $categoriesToAdd = []; + if (empty($categoryName) && empty($categoryTree)) { + return $categoriesToAdd; + } + + $categoriesInXentral = []; + if (!empty($categoryTree)) { + $rootcategory = null; + $categoryTreeid = []; + foreach ($categoryTree as $categoryData) { + $categoryData['shopwareparent'] = 0; + if (!$categoryData['parent']) { + $categoryData['shopwareid'] = $rootcategory; + } + $categoryTreeid[$categoryData['id']] = $categoryData; + } + + foreach ($categoryTree as $categoryData) { + $parentid = $rootcategory; + if (!empty($categoryData['parent'])) { + $parentid = $this->getCategoryParentId($categoryData, $categoryTreeid); + } + + $searchdata = [ + 'limit' => 25, + 'filter' => [ + [ + 'field' => 'category.name', + 'type' => 'equals', + 'value' => $categoryData['name'] + ] + ] + ]; + if (!empty($parentid)) { + $searchdata['filter'][] = [ + 'field' => 'category.parentId', + 'type' => 'equals', + 'value' => $parentid + ]; + } + $result = $this->shopwareRequest('POST', 'search/category', $searchdata); + + + if (!empty($result['data'][0]['id'])) { + $categoryTreeid[$categoryData['id']]['shopwareid'] = $result['data'][0]['id']; + $categoriesInXentral[] = $result['data'][0]['id']; + } + } + } else if (!empty($categoryName)) { + $searchdata = [ + 'limit' => 25, + 'filter' => [ + [ + 'field' => 'category.name', + 'type' => 'equals', + 'value' => $categoryName + ] + ] + ]; + + $result = $this->shopwareRequest('POST', 'search/category', $searchdata); + + if (!empty($result['data'][0]['id'])) { + $categoriesInXentral[] = $result['data'][0]['id']; + } + } + + if (!empty($articleIdShopware)) { + $existingCategories = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/categories?limit=50'); + foreach ($existingCategories['data'] as $existingCategory) { + if (!in_array($existingCategory['id'], $categoriesInXentral, false)) { + $this->shopwareRequest('DELETE', 'product/' . $articleIdShopware . '/categories/' . $existingCategory['id']); + } + } + } + foreach ($categoriesInXentral as $categoryId) { + $categoriesToAdd[] = ['id' => $categoryId]; + } + + + return $categoriesToAdd; + } + + /** + * @param $categoryData + * @param $categoryTreeId + * @return string|null + */ + protected function getCategoryParentId($categoryData, &$categoryTreeId) + { + $parentId = $categoryTreeId[$categoryData['parent']]['shopwareid']; + if (!empty($parentId)) { + return $parentId; + } + + $parentCategoryData = $this->app->DB->SelectRow("SELECT id,parent,bezeichnung AS name FROM artikelkategorien WHERE id<>'' AND id<>'0' AND id='" . $categoryData['parent'] . "' LIMIT 1"); + if (empty($parentCategoryData)) { + return null; + } + + $searchData = [ + 'limit' => 25, + 'filter' => [ + [ + 'field' => 'category.name', + 'type' => 'equals', + 'value' => $parentCategoryData['name'] + ] + ] + ]; + $result = $this->shopwareRequest('POST', 'search/category', $searchData); + + if (count($result['data']) < 1) { + return null; + } + + if (count($result['data']) === 1) { + $parentCategoryData['shopwareid'] = $result['data'][0]['id']; + $categoryTreeId[$parentCategoryData['id']] = $parentCategoryData; + return $result['data'][0]['id']; + } + + $grandparentId = $this->getCategoryParentId($parentCategoryData, $categoryTreeId); + + $searchData = [ + 'limit' => 25, + 'filter' => [ + [ + 'field' => 'category.name', + 'type' => 'equals', + 'value' => $parentCategoryData['name'] + ], + [ + 'field' => 'category.parentId', + 'type' => 'equals', + 'value' => $grandparentId + ] + ] + ]; + $result = $this->shopwareRequest('POST', 'search/category', $searchData); + + + if (count($result['data']) === 1) { + $parentCategoryData['shopwareid'] = $result['data'][0]['id']; + $categoryTreeId[$parentCategoryData['id']] = $parentCategoryData; + return $result['data'][0]['id']; + } + return null; + } + + /** + * @param string $propertyName + * + * @return string|null + */ + protected function getPropertyGroupId($propertyName): ?string + { + if(array_key_exists($propertyName, $this->knownPropertyGroupIds)){ + return $this->knownPropertyGroupIds[$propertyName]; + } + + $searchData = [ + 'limit' => 25, + 'filter' => [ + [ + 'field' => 'property_group.name', + 'type' => 'equals', + 'value' => $propertyName + ] + ] + ]; + + $germanLanguageId = $this->getLanguageIdByCountryIso('DE'); + $headerInformation = ['sw-language-id: ' . $germanLanguageId]; + $propertyData = $this->shopwareRequest( + 'POST', + 'search/property-group', + $searchData, + $headerInformation); + if (empty($propertyData['data'][0]['id'])) { + return null; + } + + $this->knownPropertyGroupIds[$propertyName] = $propertyData['data'][0]['id']; + + return $propertyData['data'][0]['id']; + } + + /** + * @param string $propertyName + * @return null|string + */ + protected function createPropertyGroup($propertyName): ?string + { + $propertyGroupData = [ + 'displayType' => 'text', + 'name' => $propertyName, + 'sortingType' => 'alphanumeric' + ]; + $propertyGroup = $this->shopwareRequest( + 'POST', + 'property-group?_response=true', + $propertyGroupData); + + $this->knownPropertyGroupIds[$propertyName] = $propertyGroup['data']['id']; + + if (empty($propertyGroup['data']['id'])) { + return null; + } + + return $propertyGroup['data']['id']; + } + + /** + * @param string $propertyGroupId + * @param string $propertyName + * @param string $countryIsoCode + */ + protected function createTranslationForPropertyGroup($propertyGroupId, $propertyName, $countryIsoCode): void + { + $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); + if (empty($languageId)) { + return; + } + + $headerInformation = ['sw-language-id: ' . $languageId]; + + $translation = [ + 'name' => $propertyName, + ]; + + $this->shopwareRequest( + 'PATCH', + sprintf('property-group/%s', $propertyGroupId), + $translation, + $headerInformation); + } + + /** + * @param string $propertyGroupId + * @param string $propertyOptionName + * @param string $countryIsoCode + * @return mixed|null + */ + protected function getPropertyOptionId($propertyGroupId, $propertyOptionName, $countryIsoCode = 'DE'): ?string + { + $searchData = [ + 'limit' => 25, + 'filter' => [ + [ + 'field' => 'property_group_option.name', + 'type' => 'equals', + 'value' => $propertyOptionName + ] + ] + ]; + $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); + $headerInformation = ['sw-language-id: ' . $languageId]; + $optionData = $this->shopwareRequest( + 'POST', + 'search/property-group/' . $propertyGroupId . '/options', + $searchData, + $headerInformation); + + if (empty($optionData['data'][0]['id'])) { + return null; + } + + return $optionData['data'][0]['id']; + } + + /** + * @param string $propertyGroupId + * @param string $propertyOptionName + * @return null|string + */ + protected function createPropertyOption($propertyGroupId, $propertyOptionName): ?string + { + $propertyOptionData = [ + 'id' => '', + 'name' => $propertyOptionName + ]; + $createdPropertyOption = $this->shopwareRequest( + 'POST', + 'property-group/' . $propertyGroupId . '/options?_response=true', + $propertyOptionData); + + if (empty($createdPropertyOption['data']['id'])) { + return null; + } + + return $createdPropertyOption['data']['id']; + } + + /** + * @param string $optionId + * @param string $optionName + * @param string $countryIsoCode + */ + protected function createTranslationForPropertyOption($optionId, $optionName, $countryIsoCode): void + { + $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); + if (empty($languageId)) { + return; + } + $headerInformation = ['sw-language-id: ' . $languageId]; + $translation = [ + 'name' => $optionName, + ]; + + $this->shopwareRequest( + 'PATCH', + sprintf('property-group-option/%s', $optionId), + $translation, + $headerInformation); + } + + /** + * @param array $internalArticle + * @param string $articleIdShopware + * @return array + */ + protected function propertiesToExport($internalArticle, $articleIdShopware): array + { + $propertiesToAdd = $this->getPropertiesFromArticle($internalArticle); + if (empty($propertiesToAdd)) { + return []; + } + $assignedProperties = []; + + foreach ($propertiesToAdd as $propertyDefaultName => $countryIsoToPropertyTranslation) { + if (empty($countryIsoToPropertyTranslation['DE'])) { + continue; + } + $propertyGroupId = ''; + if (array_key_exists($propertyDefaultName, $this->knownPropertyGroupIds)) { + $propertyGroupId = $this->knownPropertyGroupIds[$propertyDefaultName]; + } + if (empty($propertyGroupId)) { + $propertyGroupId = $this->getPropertyGroupId($propertyDefaultName); + } + if (empty($propertyGroupId)) { + $propertyGroupId = $this->createPropertyGroup($propertyDefaultName); + } + if (empty($propertyGroupId)) { + $this->Shopware6Log('PropertyGroup kann nicht erstellt werden: ' . $propertyDefaultName); + continue; + } + + foreach ($countryIsoToPropertyTranslation as $countryIsoCode => $translation) { + $this->createTranslationForPropertyGroup($propertyGroupId, $translation['name'], $countryIsoCode); + } + + + $optionId = $this->getPropertyOptionId($propertyGroupId, $countryIsoToPropertyTranslation['DE']['value'], 'DE'); + if (empty($optionId)) { + $optionId = $this->createPropertyOption($propertyGroupId, $countryIsoToPropertyTranslation['DE']['value']); + } + if (empty($optionId)) { + $this->Shopware6Log('Option kann nicht erstellt werden: ' . $countryIsoToPropertyTranslation['DE']['value']); + continue; + } + + $assignedProperties[] = $optionId; + + foreach ($countryIsoToPropertyTranslation as $countryIsoCode => $translation) { + $this->createTranslationForPropertyOption($optionId, $translation['value'], $countryIsoCode); + } + } + + if (!empty($articleIdShopware)) { + $existingProperties = $this->shopwareRequest('GET', 'product/' . $articleIdShopware . '/properties?limit=100'); + foreach ($existingProperties['data'] as $existingProperty) { + if (!in_array($existingProperty['id'], $assignedProperties, false)) { + $this->shopwareRequest('DELETE', 'product/' . $articleIdShopware . '/properties/' . $existingProperty['id']); + } + } + } + + $propertiesToAdd = []; + foreach ($assignedProperties as $propertyOptionId) { + $propertiesToAdd[] = ['id' => $propertyOptionId]; + } + + return $propertiesToAdd; + } + + /** + * @param string $name + * @param string $value + * @return bool + */ + protected function propertyMustBeIgnored(string $name, string $value): bool + { + return empty($value) || + strpos($name, 'customField_') === 0 || + stripos($name, 'shopware6_') !== false; + } + + /** + * @param array $internalArticleData + * @return array + */ + protected function getPropertiesFromArticle($internalArticleData): array + { + //'Farbe' => [['DE' => ['name' => 'Farbe, 'value' => 'Gelb']], + // ['EN' => ['name' => 'Colour, 'value' => 'Yellow']]] + $propertiesToAdd = []; + if (!empty($internalArticleData['eigenschaften'])) { + foreach ($internalArticleData['eigenschaften'] as $property) { + if ($this->propertyMustBeIgnored($property['name'], $property['values'])) { + continue; + } + if (strpos($property['name'], 'property_') === 0) { + $propertyName = substr($property['name'], 9); + $propertiesToAdd[$propertyName]['DE'] = [ + 'name' => $propertyName, + 'value' => $property['values']]; + continue; + } + if ($this->propertyOption === 'toProperties') { + $propertiesToAdd[$property['name']]['DE'] = [ + 'name' => $property['name'], + 'value' => $property['values']]; + } + } + } + + if (!empty($internalArticleData['eigenschaftenuebersetzungen'])) { + foreach ($internalArticleData['eigenschaftenuebersetzungen'] as $translatedProperty) { + if ($translatedProperty['language_to'] === 'EN') { + $translatedProperty['language_to'] = 'GB'; + } + if ($this->propertyMustBeIgnored($translatedProperty['property_to'], $translatedProperty['property_value_to'])) { + continue; + } + if (strpos($translatedProperty['property_to'], 'property_') === 0) { + $propertiesToAdd[$translatedProperty['property_from']][$translatedProperty['language_to']] = [ + 'name' => substr($translatedProperty['property_to'], 9), + 'value' => $translatedProperty['property_value_to']]; + continue; + } + if ($this->propertyOption === 'toProperties') { + $propertiesToAdd[$translatedProperty['property_from']][$translatedProperty['language_to']] = [ + 'name' => $translatedProperty['property_to'], + 'value' => $translatedProperty['property_value_to']]; + } + } + } + + if (!empty($internalArticleData['freifelder'])) { + foreach ($internalArticleData['freifelder']['DE'] as $freeFieldKey => $freeFieldValue) { + if ($this->propertyMustBeIgnored($freeFieldKey, $freeFieldValue)) { + continue; + } + if (strpos($freeFieldKey, 'property_') === 0) { + $propertyName = substr($freeFieldKey, 9); + $propertiesToAdd[$propertyName]['DE'] = [ + 'name' => $propertyName, + 'value' => $freeFieldValue + ]; + continue; + } + if ($this->freeFieldOption === 'toProperties') { + $propertiesToAdd[$freeFieldKey]['DE'] = [ + 'name' => $freeFieldKey, + 'value' => $freeFieldValue + ]; + } + } + + foreach ($internalArticleData['freifelder'] as $languageIso => $freeFields) { + if ($languageIso === 'DE') { + continue; + } + if ($languageIso === 'EN') { + $languageIso = 'GB'; + } + foreach ($freeFields as $freeFieldData) { + if ($this->propertyMustBeIgnored($freeFieldData['mapping'], $freeFieldData['wert'])) { + continue; + } + if (strpos($freeFieldData['mapping'], 'property_') === 0) { + $propertyName = substr($freeFieldData['mapping'], 9); + $propertiesToAdd[$propertyName][$languageIso] = [ + 'name' => $propertyName, + 'value' => $freeFieldData['wert'] + ]; + continue; + } + if ($this->freeFieldOption === 'toProperties') { + $propertiesToAdd[$freeFieldData['mapping']][$languageIso] = [ + 'name' => $freeFieldData['mapping'], + 'value' => $freeFieldData['wert'] + ]; + } + } + } + } + + return $propertiesToAdd; + } + + /** + * @param array $articleInXentral + * @param string $articleIdShopware + * + * @return array + */ + protected function customFieldsToExport($articleInXentral, $articleIdShopware): array + { + $customFieldsToAdd = $this->getCustomFieldsFromArticle($articleInXentral); + if (empty($customFieldsToAdd)) { + return []; + } + $languageId = $this->getLanguageIdByCountryIso('DE'); + $headerInformation = ['sw-language-id: ' . $languageId]; + + $customFields = []; + if (!empty($articleIdShopware)) { + $articleInfo = $this->shopwareRequest( + 'GET', 'product/' . $articleIdShopware, + [], + $headerInformation); + $customFields['DE'] = $articleInfo['data'][0]['attributes']['customFields']; + if ($customFields === null) { + $customFields = []; + } + } + + foreach ($customFieldsToAdd as $defaultFieldName => $countryIsoCodeToCustomFieldData) { + $customFieldDefinition = $this->shopwareRequest( + 'GET', + sprintf('custom-field?filter[custom_field.name]=%s', $defaultFieldName), + [], + $headerInformation + ); + if (empty($customFieldDefinition)) { + $this->Shopware6Log('Freifeld entspricht keinem shopware Freifeld', $defaultFieldName); + continue; + } + + foreach ($countryIsoCodeToCustomFieldData as $countryIsoCode => $customFieldData) { + $name = $customFieldData['name']; + $value = $customFieldData['value']; + if ($value === '') { + continue; + } + if($countryIsoCode === 'EN'){ + $countryIsoCode = 'GB'; + } + $fieldType = $customFieldDefinition['data'][0]['attributes']['type']; + $controlType = $customFieldDefinition['data'][0]['attributes']['config']['componentName']; + + switch ($fieldType) { + case 'text': + case 'html': + if ($controlType === 'sw-media-field') { + $this->Shopware6Log( + 'Warnung: Freifelder vom Type "medium" werden nicht unterstützt.' + ); + } else { + $customFields[$countryIsoCode][$name] = (string)$value; + } + break; + case 'bool': + $customFields[$countryIsoCode][$name] = filter_var($value, FILTER_VALIDATE_BOOLEAN); + break; + case 'int': + $customFields[$countryIsoCode][$name] = (int)$value; + break; + case 'float': + $customFields[$countryIsoCode][$name] = (float)$value; + break; + case 'select': + $options = $customFieldDefinition['data'][0]['attributes']['config']['options']; + $allowedValues = []; + foreach ($options as $option) { + $allowedValues[] = $option['value']; + } + if ($controlType === 'sw-single-select') { + if (in_array($value, $allowedValues, true)) { + $customFields[$countryIsoCode][$name] = $value; + } else { + $this->Shopware6Log( + sprintf('Warnung: Freifeld "%s"="%s"; ungültiger Wert', $name, $value), + ['allowed values' => $allowedValues] + ); + } + } + if ($controlType === 'sw-multi-select') { + $value = explode(',', $value); + foreach ($value as &$item) { + $item = trim($item); + } + unset($item); + if (array_intersect($value, $allowedValues) === $value) { + $customFields[$countryIsoCode][$name] = $value; + } else { + $this->Shopware6Log( + sprintf('Warnung: Freifeld "%s"; ungültiger Wert', $name), + ['values' => $value, 'allowed values' => $allowedValues] + ); + } + } + break; + default: + $this->Shopware6Log( + 'Warnung: Freifeld enthält falschen Typ.', + ['freifeld' => $name, 'wert' => $value] + ); + continue 2; + } + } + } + + + return $customFields; + } + + /** + * @param string $name + * @param string $value + * @return bool + */ + protected function customFieldMustBeIgnored(string $name, string $value): bool + { + return empty($value) || + strpos($name, 'property_') === 0 || + stripos($name, 'shopware6_') !== false; + } + + /** + * @param array $articleInXentral + * @return array + */ + protected function getCustomFieldsFromArticle($articleInXentral): array + { + $customFieldsToAdd = []; + if (!empty($articleInXentral['eigenschaften'])) { + foreach ($articleInXentral['eigenschaften'] as $propertyInXentral) { + if ($this->customFieldMustBeIgnored($propertyInXentral['name'], $propertyInXentral['values'])) { + continue; + } + if (strpos($propertyInXentral['name'], 'customField_') === 0) { + $customFieldName = substr($propertyInXentral['name'], 12); + $customFieldsToAdd[$customFieldName]['DE'] = [ + 'name' => $customFieldName, + 'value' => $propertyInXentral['values'] + ]; + continue; + } + if ($this->propertyOption === 'toCustomFields') { + $customFieldsToAdd[$propertyInXentral['name']]['DE'] = [ + 'name' => $propertyInXentral['name'], + 'value' => $propertyInXentral['values'] + ]; + } + } + } + if (!empty($articleInXentral['eigenschaftenuebersetzungen'])) { + foreach ($articleInXentral['eigenschaftenuebersetzungen'] as $translatedProperty) { + if ($this->customFieldMustBeIgnored($translatedProperty['property_to'], $translatedProperty['property_value_to'])) { + continue; + } + if (strpos($translatedProperty['property_to'], 'customField_') === 0) { + $customFieldName = substr($translatedProperty['property_to'], 12); + $customFieldsToAdd[$customFieldName][$translatedProperty['language_to']] = [ + 'name' => $customFieldName, + 'value' => $translatedProperty['property_value_to'] + ]; + continue; + } + if ($this->propertyOption === 'toCustomFields') { + $customFieldsToAdd[$translatedProperty['property_to']][$translatedProperty['language_to']] = [ + 'name' => $translatedProperty['property_to'], + 'value' => $translatedProperty['property_value_to'] + ]; + } + } + } + + if (!empty($articleInXentral['freifelder'])) { + foreach ($articleInXentral['freifelder']['DE'] as $freeFieldKey => $freeFieldValue) { + if ($this->customFieldMustBeIgnored($freeFieldKey, $freeFieldValue)) { + continue; + } + if (strpos($freeFieldKey, 'customField_') === 0) { + $customFieldName = substr($freeFieldKey, 12); + $customFieldsToAdd[$customFieldName]['DE'] = [ + 'name' => $customFieldName, + 'value' => $freeFieldValue + ]; + continue; + } + if ($this->freeFieldOption === 'toCustomFields') { + $customFieldsToAdd[$freeFieldKey]['DE'] = [ + 'name' => $freeFieldKey, + 'value' => $freeFieldValue + ]; + } + } + + foreach ($articleInXentral['freifelder'] as $countryIsoCode => $freeFieldTranslations) { + if ($countryIsoCode === 'DE') { + continue; + } + foreach ($freeFieldTranslations as $freeFieldTranslation){ + if ($this->customFieldMustBeIgnored($freeFieldTranslation['mapping'], $freeFieldTranslation['wert'])) { + continue; + } + if ($countryIsoCode === 'EN') { + $countryIsoCode = 'GB'; + } + if (strpos($freeFieldTranslation['mapping'], 'customField_') === 0) { + $customFieldName = substr($freeFieldTranslation['mapping'], 12); + $customFieldsToAdd[$customFieldName][$countryIsoCode] = [ + 'name' => $customFieldName, + 'value' => $freeFieldTranslation['wert'] + ]; + continue; + } + if ($this->freeFieldOption === 'toCustomFields') { + $customFieldsToAdd[$freeFieldTranslation['mapping']][$countryIsoCode] = [ + 'name' => $freeFieldTranslation['mapping'], + 'value' => $freeFieldTranslation['wert'] + ]; + } + } + } + } + + return $customFieldsToAdd; + } + + /** + * @param array $articleInXentral + * @param int $articleIdShopware + * + * @return array + */ + protected function crosssellingToExport($articleInXentral, $articleIdShopware){ + if (empty($articleInXentral['crosssellingartikel'])) { + return []; + } + + $crosssellingArticles = []; + foreach ($articleInXentral['crosssellingartikel'] as $crosssellingArticle){ + $type = 'Ähnlich'; + if($crosssellingArticle['art'] == 2){ + $type = 'Zubehör'; + } + $crosssellingArticles[$type][] = $crosssellingArticle['nummer']; + } + $crossselingInformation = []; + foreach ($crosssellingArticles as $type => $articles){ + if(!empty($articleIdShopware)){ + $existingCrossSellings = $this->shopwareRequest('GET', sprintf('product/%s/cross-sellings/', + $articleIdShopware)); + if(!empty($existingCrossSellings['data'])){ + foreach ($existingCrossSellings['data'] as $existingCrossSelling){ + if($existingCrossSelling['attributes']['name'] === $type){ + $this->shopwareRequest('DELETE', sprintf('product/%s/cross-sellings/%s/', + $articleIdShopware, $existingCrossSelling['id'])); + } + } + } + } + + $crosselingToAdd = []; + foreach ($articles as $articleNumber) { + $articleInfo = $this->shopwareRequest( + 'GET', + sprintf('product?filter[product.productNumber]=%s', $articleNumber) + ); + + if(empty($articleInfo['data'][0]['id'])){ + continue; + } + $crosselingToAdd[] = $articleInfo['data'][0]['id']; + } + if(empty($crosselingToAdd)){ + continue; + } + $crossselingInformationForType = [ + 'active' => true, + 'name' => $type, + 'assignedProducts' => [], + 'type' => 'productList', + 'sortBy' => 'name', + 'limit' => 24, + 'position' => 1 + ]; + $position = 1; + foreach ($crosselingToAdd as $articleId){ + $crossselingInformationForType['assignedProducts'][] = [ + 'productId' => $articleId, + 'position' => $position, + ]; + $position++; + } + $crossselingInformation[] = $crossselingInformationForType; + } + + + return $crossselingInformation; + } + + /** + * @param string $unitShortCode + * + * @return string + */ + protected function unitToAdd(string $unitShortCode): string{ + $searchData = [ + 'limit' => 25, + 'source' => [ + 'id' + ], + 'filter' => [ + [ + 'field' => 'unit.shortCode', + 'type' => 'equals', + 'value' => $unitShortCode + ] + ] + ]; + $unitInShopware = $this->shopwareRequest( + 'POST', + 'search/unit', + $searchData); + + if(!empty($unitInShopware['data'][0]['id'])){ + return $unitInShopware['data'][0]['id']; + } + + $query = sprintf("SELECT `internebemerkung` FROM `artikeleinheit` WHERE `einheit_de` = '%s' LIMIT 1", + $unitShortCode); + $unitName = $this->app->DB->Select($query); + if(empty($unitName)){ + $unitName = $unitShortCode; + } + + $unitInformation = [ + 'name' => $unitName, + 'shortCode' => $unitShortCode + ]; + $result = $this->shopwareRequest('POST', 'unit?_response=true', $unitInformation); + + if(empty($result['data']['id'])){ + return ''; + } + + return $result['data']['id']; + } + + /** + * @param array $internArticle + * @param int $articleIdShopware + * + * @return array + */ + protected function systemFieldsToExport($internArticle, $articleIdShopware): array + { + $internalSpecialFields = []; + foreach ($internArticle['freifelder']['DE'] as $freeFieldName => $freeFieldValue) { + if (stripos($freeFieldName, 'shopware6_') !== false) { + $internalSpecialFields[$freeFieldName] = $freeFieldValue; + } + } + foreach ($internArticle['eigenschaften'] as $property) { + if (stripos($property['name'], 'shopware6_') !== false) { + $internalSpecialFields[$property['name']] = $property['values']; + } + } + + $systemFields = []; + foreach ($internalSpecialFields as $fieldName => $fieldValue) { + switch (strtolower($fieldName)) { + case 'shopware6_sales_channel': + $systemFields['visibilities'] = $this->modifySalesChannel(explode(',', $fieldValue), $articleIdShopware); + break; + case 'shopware6_purchase_unit': + $systemFields['purchaseUnit'] = (float)str_replace(',', '.', $fieldValue); + break; + case 'shopware6_reference_unit': + $systemFields['referenceUnit'] = (float)str_replace(',', '.', $fieldValue); + break; + case 'shopware6_unit': + $systemFields['unitId'] = $this->unitToAdd($fieldValue); + break; + case 'shopware6_pack_unit': + $systemFields['packUnit'] = (string)$fieldValue; + break; + case 'shopware6_restock_time': + $systemFields['restockTime'] = (int)$fieldValue; + break; + case 'shopware6_pack_unit_plural': + $systemFields['packUnitPlural'] = (string)$fieldValue; + break; + } + } + + return $systemFields; + } + + /** + * @param array $salesChannelNames + * @param string $articleIdInShopware + * + * @return array + */ + protected function modifySalesChannel($salesChannelNames, $articleIdInShopware) + { + $salesChannelInXentralIds = []; + foreach ($salesChannelNames as $salesChannelName) { + $salesChannelInfo = $this->shopwareRequest('GET', + sprintf('sales-channel?filter[sales_channel.name]=%s', urlencode(trim($salesChannelName))) + ); + if (!empty($salesChannelInfo['data'][0]['id'])) { + $salesChannelInXentralIds[] = $salesChannelInfo['data'][0]['id']; + } + } + + $existingVisibilities = $this->shopwareRequest( + 'GET', + sprintf('product/%s/visibilities', $articleIdInShopware) + ); + + $existingSalesChannelIds = []; + if (!empty($existingVisibilities['data'])) { + foreach ($existingVisibilities['data'] as $visibility) { + $existingSalesChannelIds[$visibility['id']] = $visibility['attributes']['salesChannelId']; + } + } + + foreach ($existingSalesChannelIds as $associationId => $existingSalesChannelId){ + if (!in_array($existingSalesChannelId, $salesChannelInXentralIds,true)) { + $this->shopwareRequest('DELETE', sprintf('product/%s/visibilities/%s/', + $articleIdInShopware, $associationId)); + } + } + + $salesChannelsToAdd = []; + foreach ($salesChannelInXentralIds as $salesChannelInXentralId){ + if (!in_array($salesChannelInXentralId, $existingSalesChannelIds,true)) { + $salesChannelsToAdd[] = $salesChannelInXentralId; + } + } + + $visibilities = []; + foreach ($salesChannelsToAdd as $salesChannelIdToAdd) { + $visibilities[] = [ + 'salesChannelId' => $salesChannelIdToAdd, + 'visibility' => 30 + ]; + } + + return $visibilities; + } + + /** + * @param string $isoCode + * + * @return string + */ + protected function findCurrencyId($isoCode) + { + + $this->requestCurrencyMappingLazy(); + if (isset($this->currencyMapping[strtoupper($isoCode)])) { + return $this->currencyMapping[strtoupper($isoCode)]; + } + $this->Shopware6Log( + sprintf('Warnung: Kein Mapping für Waehrung "%s" gefunden.', $isoCode), + $this->currencyMapping + ); + + return null; + } + + /** + * request currency mapping only once + */ + protected function requestCurrencyMappingLazy() + { + + if ($this->currencyMapping !== null) { + return; + } + $currencies = $this->shopwareRequest('GET', 'currency'); + if (!isset($currencies['data'])) { + $this->Shopware6Log('Kann Währungsmapping nicht abrufen', $currencies); + } + foreach ($currencies['data'] as $currency) { + $isoCode = strtoupper($currency['attributes']['isoCode']); + $this->currencyMapping[$isoCode] = $currency['id']; + } + } + + /** + * @param array $internalArticleData + * @param string $articleIdInShopware + * @return bool + */ + public function exportSeoUrls(array $internalArticleData, string $articleIdInShopware): bool + { + if (empty($articleIdInShopware)) { + return false; + } + + $preparedSeoInformation = []; + foreach ($internalArticleData['freifelder'] as $countryIsoCode => $freeFieldInformation) { + if($countryIsoCode === 'EN'){ + $countryIsoCode = 'GB'; + } + if($countryIsoCode === 'DE'){ + foreach ($freeFieldInformation as $freeFieldName => $freeFieldValue) { + if (stripos($freeFieldName, 'shopware6_seo_url') !== false) { + $preparedSeoInformation[$countryIsoCode][$freeFieldName] = $freeFieldValue; + } + } + }else{ + foreach ($freeFieldInformation as $freeFieldData) { + if (stripos($freeFieldData['mapping'], 'shopware6_seo_url') !== false) { + $preparedSeoInformation[$countryIsoCode][$freeFieldData['mapping']] = $freeFieldData['wert']; + } + } + } + } + foreach ($internalArticleData['eigenschaften'] as $property) { + if (stripos($property['name'], 'shopware6_seo_url') !== false) { + $preparedSeoInformation['DE'][$property['name']] = $property['values']; + } + } + foreach ($internalArticleData['eigenschaftenuebersetzungen'] as $propertyTranslation) { + if($propertyTranslation['language_to'] === 'EN'){ + $propertyTranslation['language_to'] = 'GB'; + } + if (stripos($propertyTranslation['property_to'], 'shopware6_seo_url') !== false) { + $preparedSeoInformation[$propertyTranslation['language_to']][$propertyTranslation['property_to']] = $propertyTranslation['property_value_to']; + } + } + + $specificSalesChannelSeoUrls = []; + $defaultSeoUrls = []; + foreach ($preparedSeoInformation as $countryIsoCode => $channelAssociations) { + foreach ($channelAssociations as $fieldName => $fieldValue){ + if(strtolower($fieldName) === 'shopware6_seo_url'){ + $defaultSeoUrls[$countryIsoCode] = $fieldValue; + }else{ + $seoInformation = explode('|', $fieldName); + $specificSalesChannelSeoUrls[$countryIsoCode][array_pop($seoInformation)] = $fieldValue; + } + } + } + + if (empty($specificSalesChannelSeoUrls) && empty($defaultSeoUrls)) { + return false; + } + + $salesChannelsIdToName = []; + $salesChannels = $this->shopwareRequest('GET','sales-channel'); + foreach ($salesChannels['data'] as $salesChannel) { + $salesChannelsIdToName[$salesChannel['id']] = $salesChannel['attributes']['name']; + } + + foreach ($preparedSeoInformation as $countryIsoCode => $x){ + $languageId = $this->getLanguageIdByCountryIso($countryIsoCode); + if (empty($languageId)) { + $this->Shopware6Log('Language Id not found for country: ' . $countryIsoCode); + continue; + } + + $headerInformation = ['sw-language-id: ' . $languageId]; + foreach ($salesChannelsIdToName as $salesChannelId => $salesChannelName) { + $seoUrlToUse = $defaultSeoUrls[$countryIsoCode]; + if (!empty($specificSalesChannelSeoUrls[$countryIsoCode][$salesChannelName])) { + $seoUrlToUse = $specificSalesChannelSeoUrls[$countryIsoCode][$salesChannelsIdToName[$salesChannelName]]; + } + if (empty($seoUrlToUse)) { + continue; + } + $seoDataToSend = [ + 'seoPathInfo' => $seoUrlToUse, + '_isNew' => true, + 'isModified' => true, + 'isCanonical' => true, + 'isDeleted' => false, + 'routeName' => 'frontend.detail.page', + 'foreignKey' => $articleIdInShopware, + 'pathInfo' => '/detail/'.$articleIdInShopware, + 'languageId' => $languageId, + 'salesChannelId' => $salesChannelId]; + $this->shopwareRequest('PATCH', '_action/seo-url/canonical', $seoDataToSend, $headerInformation); + } + } + + return true; + } + + /** + * @param array $article + * @param string $articleIdShopware + * @param string $currencyId + * + * @return bool + */ + protected function exportVariants($article, $articleIdShopware, $currencyId): bool + { + $languageId = $this->getLanguageIdByCountryIso('DE'); + if (empty($languageId)) { + return false; + } + if (empty($article['matrix_varianten']) || empty($articleIdShopware)) { + return false; + } + $internalGroupPropertiesToShopwareId = []; + foreach ($article['matrix_varianten']['gruppen'] as $propertyGroupName => $internalPropertyGroupValues) { + $propertyGroupId = ''; + if (array_key_exists($propertyGroupName, $this->knownPropertyGroupIds)) { + $propertyGroupId = $this->knownPropertyGroupIds[$propertyGroupName]; + } + if (empty($propertyGroupId)) { + $propertyGroupId = $this->getPropertyGroupId($propertyGroupName); + } + if (empty($propertyGroupId)) { + $propertyGroupId = $this->createPropertyGroup($propertyGroupName); + } + if (empty($propertyGroupId)) { + $this->Shopware6Log('PropertyGroup kann nicht erstellt werden: ' . $propertyGroupName); + return false; + } + + if (!empty($article['matrix_varianten']['texte'])) { + $this->createTranslationForPropertyGroup($propertyGroupId, $propertyGroupName, 'DE'); + + foreach ($article['matrix_varianten']['texte']['gruppen'] as $countryIsoCode => $matrixGroupTranslation) { + if ($countryIsoCode === 'EN') { + $countryIsoCode = 'GB'; + } + + $this->createTranslationForPropertyGroup($propertyGroupId, $matrixGroupTranslation[$propertyGroupName], $countryIsoCode); + } + } + + $languageId = $this->getLanguageIdByCountryIso('DE'); + $headerInformation = ['sw-language-id: ' . $languageId]; + $shopwarePropertyGroupOptions = $this->shopwareRequest( + 'GET', + 'property-group/' . $propertyGroupId . '/options?limit=100', + $headerInformation); + foreach ($shopwarePropertyGroupOptions['data'] as $shopwarePropertyGroupOption) { + $propertyValue = $shopwarePropertyGroupOption['attributes']['name']; + $internalGroupPropertiesToShopwareId[$propertyGroupName][$propertyValue] = $shopwarePropertyGroupOption['id']; + } + + foreach ($internalPropertyGroupValues as $internalPropertyGroupValue => $valueNotNeeded) { + if (!array_key_exists($internalPropertyGroupValue, $internalGroupPropertiesToShopwareId[$propertyGroupName])) { + $newOptionData = [ + 'name' => (string)$internalPropertyGroupValue + ]; + $optionData = $this->shopwareRequest( + 'POST', + 'property-group/' . $propertyGroupId . '/options?_response=true', + $newOptionData); + $internalGroupPropertiesToShopwareId[$propertyGroupName][$internalPropertyGroupValue] = $optionData['data']['id']; + } + } + + if (!empty($article['matrix_varianten']['texte'])) { + foreach ($internalPropertyGroupValues as $optionValue => $valueNotNeeded) { + $optionId = $internalGroupPropertiesToShopwareId[$propertyGroupName][$optionValue]; + $this->createTranslationForPropertyOption( + $optionId, + $optionValue, + 'DE'); + foreach ($article['matrix_varianten']['texte']['werte'] as $countryIsoCode => $matrixOptionTranslations) { + if ($countryIsoCode === 'EN') { + $countryIsoCode = 'GB'; + } + if (array_key_exists($optionValue, $matrixOptionTranslations)) { + $this->createTranslationForPropertyOption( + $optionId, + $matrixOptionTranslations[$optionValue], + $countryIsoCode); + } + } + } + } + } + + $existingCombinations = $this->shopwareRequest( + 'GET', + '_action/product/' . $articleIdShopware . '/combinations'); + $existingCombinationsByNumber = []; + + foreach ($existingCombinations as $combinationId => $combinationInfo) { + $existingCombinationsByNumber[$combinationInfo['productNumber']] = [ + 'id' => $combinationId, + 'options' => [], + ]; + foreach ($combinationInfo['options'] as $combinationOption) { + $existingCombinationsByNumber[$combinationInfo['productNumber']]['options'][$combinationOption] = $combinationOption; + } + } + + + foreach ($article['artikel_varianten'] as $variant) { + $internalVariantMatrixData = $article['matrix_varianten']['artikel'][$variant['artikel']]; + $productNumber = $internalVariantMatrixData[0]['nummer']; + $name = $variant['name_de']; + $stock = $variant['lag']; + $ean = $variant['ean']; + $weight = (float)$variant['gewicht']; + $pseudoPrice = $variant['pseudopreis']; + if (empty($pseudoPrice)) { + $pseudoPrice = 0; + } + if (!empty($variant['pseudolager'])) { + $stock = $variant['pseudolager']; + } + $active = true; + if (!empty($variant['inaktiv'])) { + $active = false; + } + $isCloseOut = false; + if (!empty($variant['restmenge'])) { + $isCloseOut = true; + } + + $variantProductData = [ + 'active' => $active, + 'isCloseout' => $isCloseOut, + 'name' => $name, + 'description' => null, + 'weight' => null, + 'price' => [ + [ + 'currencyId' => $currencyId, + 'gross' => $variant['bruttopreis'], + 'net' => $variant['preis'], + 'linked' => true, + 'listPrice' => [ + 'currencyId' => $currencyId, + 'gross' => $pseudoPrice, + 'linked' => true, + 'net' => $pseudoPrice / (1 + $variant['steuersatz'] / 100) + ] + ] + ], + 'stock' => (int)$stock, + 'ean' => null, + 'taxId' => $this->getTaxIdByRate($variant['steuersatz']), + ]; + if(!empty($weight)){ + $variantProductData['weight'] = $weight; + } + if(!empty($ean)){ + $variantProductData['ean'] = $ean; + } + if (!empty($variant['uebersicht_de'])) { + $variantProductData['description'] = $variant['uebersicht_de']; + } + + $renewVariant = false; + $options = []; + foreach ($internalVariantMatrixData as $expression) { + if (!in_array( + $internalGroupPropertiesToShopwareId[$expression['name']][$expression['values']], + $existingCombinationsByNumber[$productNumber]['options'], + false)) { + $renewVariant = true; + } else { + unset($existingCombinationsByNumber[$productNumber]['options'][$internalGroupPropertiesToShopwareId[$expression['name']][$expression['values']]]); + } + $options[] = ['id' => $internalGroupPropertiesToShopwareId[$expression['name']][$expression['values']]]; + } + + if (!empty($existingCombinationsByNumber[$productNumber]['options'])) { + $renewVariant = true; + } + + $variantImageData = [ + 'Dateien' => [] + ]; + $variantProductId = ''; + if (!empty($existingCombinationsByNumber[$productNumber]['id']) && !$renewVariant) { + $variantProductId = $existingCombinationsByNumber[$productNumber]['id']; + } + if (!empty($variant['Dateien']['id'])) { + foreach ($variant['Dateien']['id'] as $index => $fileId) { + $variantImageData['Dateien'][] = [ + 'filename' => $variant['Dateien']['filename'][$index], + 'extension' => $variant['Dateien']['extension'][$index], + 'datei' => $variant['Dateien']['datei'][$index], + 'beschreibung' => $variant['Dateien']['beschreibung'][$index], + 'titel' => $variant['Dateien']['titel'][$index], + 'id' => $fileId, + ]; + } + } + $mediaToAdd = $this->mediaToExport($variantImageData, $variantProductId); + $variantProductData['media'] = $mediaToAdd; + + if ($renewVariant) { + if (!empty($existingCombinationsByNumber[$productNumber]['id'])) { + $this->shopwareRequest('DELETE', 'product/' . $existingCombinationsByNumber[$productNumber]['id']); + } + $variantProductData['productNumber'] = $productNumber; + $variantProductData['parentId'] = $articleIdShopware; + $variantProductData['options'] = $options; + + $result = $this->shopwareRequest('POST', 'product?_response=true', $variantProductData); + $variantProductId = $result['data']['id']; + } else { + $variantProductId = $existingCombinationsByNumber[$productNumber]['id']; + $this->shopwareRequest('PATCH', 'product/' . $variantProductId, $variantProductData); + } + + $defaultPrices = $this->getPricesFromArray($variant['staffelpreise_standard'] ?? []); + $groupPrices = $this->getPricesFromArray($variant['staffelpreise_gruppen'] ?? []); + + $this->deleteOldBulkPrices($variantProductId); + if (!empty($defaultPrices)) { + foreach ($defaultPrices as $priceData) { + $this->exportBulkPriceForGroup($variantProductId, $this->defaultRuleName, $priceData); + } + } + if (!empty($groupPrices)) { + foreach ($groupPrices as $priceData) { + $this->exportBulkPriceForGroup($variantProductId, $priceData->getGroupName(), $priceData); + } + } + + $this->addCoverImage($variantImageData, $variantProductId); + } + + $existingConfigurations = $this->shopwareRequest( + 'GET', 'product/' . $articleIdShopware . '/configuratorSettings'); + $optionIdsToAdd = []; + foreach ($article['artikel_varianten'] as $variant) { + foreach ($article['matrix_varianten']['artikel'][$variant['artikel']] as $matrixInfo) { + $configurationExists = false; + foreach ($existingConfigurations['data'] as $configuration) { + if ($configuration['attributes']['optionId'] === $internalGroupPropertiesToShopwareId[$matrixInfo['name']][$matrixInfo['values']]) { + $configurationExists = true; + break; + } + } + if (!$configurationExists) { + $optionIdsToAdd[] = $internalGroupPropertiesToShopwareId[$matrixInfo['name']][$matrixInfo['values']]; + } + } + } + if (!empty($optionIdsToAdd)) { + $optionIdsToAdd = array_flip(array_flip($optionIdsToAdd)); + $configurationData = [ + 'configuratorSettings' => [] + ]; + foreach ($optionIdsToAdd as $id) { + $configurationData['configuratorSettings'][] = ['optionId' => $id]; + } + + $this->shopwareRequest( + 'PATCH', + sprintf('product/%s', $articleIdShopware), + $configurationData + ); + + $existingConfigurations = $this->shopwareRequest( + 'GET', 'product/' . $articleIdShopware . '/configuratorSettings'); + $optionsToSort = []; + foreach ($article['artikel_varianten'] as $variant) { + foreach ($article['matrix_varianten']['artikel'][$variant['artikel']] as $matrixInfo) { + foreach ($existingConfigurations['data'] as $configuration) { + if ($configuration['attributes']['optionId'] === $internalGroupPropertiesToShopwareId[$matrixInfo['name']][$matrixInfo['values']]) { + $optionsToSort[] = $configuration['id']; + break; + } + } + } + } + if (!empty($optionsToSort)) { + $optionsToSort = array_flip(array_flip($optionsToSort)); + $configurationData = [ + 'configuratorSettings' => [] + ]; + $position = 1; + + foreach ($optionsToSort as $id) { + $configurationData['configuratorSettings'][] = [ + 'id' => $id, + 'position' => $position]; + $position++; + } + + $this->shopwareRequest( + 'PATCH', + sprintf('product/%s', $articleIdShopware), + $configurationData + ); + } + } + + return true; + } + + /** + * @param $priceArray + * @return PriceData[] + */ + protected function getPricesFromArray($priceArray): array{ + return array_map(static function($price){ + return new PriceData( + (int)$price['ab_menge'], + (float)$price['preis'], + (float)$price['bruttopreis'], + $price['waehrung'], + $price['gruppeextern'] ?? '') ; + },$priceArray); + } + + /** + * delete all old price entries for a product + * + * @param string $productId + */ + protected function deleteOldBulkPrices($productId) + { + //TODO Instead of deleting all old prices we should rather check first whether they are still in order + $oldPrices = $this->shopwareRequest( + 'GET', + sprintf('product-price?filter[product_price.productId]=%s', $productId) + ); + if (is_array($oldPrices)) { + foreach ($oldPrices['data'] as $deletePrice) { + $this->shopwareRequest('DELETE', 'product-price/' . $deletePrice['id']); + } + } else { + $this->Shopware6Log('Fehler: Alte Preise wurden nicht gelöscht', $productId); + } + } + + /** + * @return int + */ + public function getOrderSearchLimit(): int + { + if(in_array($this->orderSearchLimit, ['50', '75', '100'])) { + return (int)$this->orderSearchLimit; + } + + return 25; + } + + /** + * @return int + */ + public function ImportGetAuftraegeAnzahl() + { + $order = null; + $dataToGet = $this->CatchRemoteCommand('data'); + + if (empty($this->statesToFetch)) { + return false; + } + + $ordersToProcess = $this->getOrdersToProcess($this->getOrderSearchLimit()); + + return (!empty(count($ordersToProcess['data'])?count($ordersToProcess['data']):0)); + } + + /** + * @param string $parameter1 + * @param string $parameter2 + */ + public function Shopware6ErrorLog($parameter1, $parameter2 = '') + { + $this->app->DB->Insert( + sprintf( + "INSERT INTO `shopexport_log` + (shopid, typ, parameter1, parameter2, bearbeiter, zeitstempel) + VALUES (%d, 'fehler', '%s','%s','%s',NOW())", + $this->shopid, + $this->app->DB->real_escape_string($parameter1), + $this->app->DB->real_escape_string($parameter2), + $this->app->DB->real_escape_string($this->app->User->GetName()) + ) + ); + } + + /** + * @param array $stateMachinesIds + * @return array + */ + protected function getTransactionStateIdsToFetch($stateMachinesIds): array + { + $transactionStateIdsToFetch = []; + if (!empty($this->transactionStatesToFetch)) { + $transactionStatesToFetch = explode(';', $this->transactionStatesToFetch); + foreach ($transactionStatesToFetch as $transactionStateToFetch) { + $stateInformation = $this->shopwareRequest('GET', 'state-machine-state?filter[technicalName]=' . + trim($transactionStateToFetch) . '&filter[stateMachineId]=' . $stateMachinesIds['order_transaction.state']); + if (empty($stateInformation['data'])) { + $this->Shopware6ErrorLog('Zahlungsstatus für Abholung nicht gefunden', $transactionStateToFetch); + return false; + } + foreach ($stateInformation['data'] as $state) { + $transactionStateIdsToFetch[] = $state['id']; + } + } + } + + return $transactionStateIdsToFetch; + } + + /** + * @param int $limit + * + * @return mixed + */ + protected function getOrdersToProcess(int $limit) + { + $searchData = [ + 'limit' => $limit, + 'includes' => [ + 'order' => ['id'] + ], + 'sort' => [ + [ + 'field' => 'order.createdAt', + 'direction' => 'DESC' + ] + ], + 'filter' => [] + ]; + + $searchData['filter'][] = [ + 'field' => 'stateMachineState.technicalName', + 'type' => 'equalsAny', + 'value' => explode(';', $this->statesToFetch) + ]; + + if (!empty($this->deliveryStatesToFetch)) { + $searchData['filter'][] = [ + 'field' => 'deliveries.stateMachineState.technicalName', + 'type' => 'equalsAny', + 'value' => explode(';', $this->deliveryStatesToFetch) + ]; + } + if (!empty($this->transactionStatesToFetch)) { + $searchData['filter'][] = [ + 'field' => 'transactions.stateMachineState.technicalName', + 'type' => 'equalsAny', + 'value' => explode(';', $this->transactionStatesToFetch) + ]; + } + + if (!empty($this->salesChannelToFetch)) { + $searchData['filter'][] = [ + 'field' => 'order.salesChannelId', + 'type' => 'equals', + 'value' => $this->salesChannelToFetch + ]; + } + + return $this->shopwareRequest('POST', 'search/order', $searchData); + } + + /** + * @return int|mixed + */ + public function ImportGetAuftrag() + { + $voucherArticleId = $this->app->DB->Select("SELECT s.artikelrabatt FROM `shopexport` AS `s` WHERE s.id='$this->shopid' LIMIT 1"); + $voucherArticleNumber = $this->app->DB->Select("SELECT a.nummer FROM `artikel` AS `a` WHERE a.id='$voucherArticleId' LIMIT 1"); + + $dataToGet = $this->CatchRemoteCommand('data'); + if (empty($this->statesToFetch)) { + return false; + } + $expectOrderArray = !empty($dataToGet['anzgleichzeitig']) && (int)$dataToGet['anzgleichzeitig'] > 1; + $expectNumber = !empty($dataToGet['nummer']); + $order = null; + if($expectNumber) { + $order = $this->shopwareRequest('GET', 'order/' . $dataToGet['nummer'] . '?associations[currency][]'); + if(empty($order['data'])) { + return false; + } + $ordersToProcess = ['data' => [ ['id' => $dataToGet['nummer']] ]]; + $orderIncludedData = $order['included']; + $order = $order['data']; + } + elseif(!$expectOrderArray) { + $ordersToProcess = $this->getOrdersToProcess(1); + } + elseif(!$expectNumber) { + $ordersToProcess = $this->getOrdersToProcess($this->getOrderSearchLimit()); + } + if (empty($ordersToProcess['data'])) { + return false; + } + + $fetchedOrders = []; + if (isset($ordersToFetch['data']['id']) && !isset($ordersToFetch['data'][0])) { + $ordersToFetch['data'] = [$ordersToFetch['data']]; + } + foreach ($ordersToProcess['data'] as $currentlyOpenOrder) { + $orderIdToFetch = $currentlyOpenOrder['id']; + + if (empty($dataToGet['nummer']) || empty($order)) { + $order = $this->shopwareRequest('GET', 'order/' . $orderIdToFetch.'?associations[currency][]'); + $orderIncludedData = $order['included']; + $order = $order['data']; + } + $cart = []; + try { + $timestamp = date_create_from_format('Y-m-d\TH:i:s+', $order['attributes']['createdAt']); + $cart['zeitstempel'] = $timestamp->format('Y-m-d H:i:s'); + } catch (Exception $ex) { + + } + $cart['auftrag'] = $order['id']; + $cart['subshop'] = $order['attributes']['salesChannelId']; + $cart['order'] = $order; + $cart['onlinebestellnummer'] = $order['attributes']['orderNumber']; + $cart['gesamtsumme'] = $order['attributes']['amountTotal']; + $cart['versandkostenbrutto'] = $order['attributes']['shippingTotal']; + $cart['bestelldatum'] = substr($order['attributes']['orderDate'], 0, 10); + if (!empty($order['attributes']['customerComment'])) { + $cart['freitext'] = $order['attributes']['customerComment']; + } + + foreach ($orderIncludedData as $includedDataSet){ + if($includedDataSet['type'] === 'currency'){ + $cart['waehrung'] = $includedDataSet['attributes']['isoCode']; + } + } + + $deliveryInfo = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/deliveries'); + $shippingMethod = $this->shopwareRequest('GET', + 'order-delivery/' . $deliveryInfo['data'][0]['id'] . '/shipping-method'); + $order['shippingMethod'] = $shippingMethod; + $cart['lieferung'] = $shippingMethod['data'][0]['attributes']['name']; + + $customer = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/order-customer'); + $order['customer'] = $customer; + $cart['email'] = $customer['data']['0']['attributes']['email']; + + $addresses = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/addresses?associations[salutation][]&associations[country][]'); + $order['addresses'] = $addresses; + $deliveryCountryId = ''; + $billingCountryId = ''; + $billingSalutationId = ''; + foreach ($addresses['data'] as $address) { + if ($address['id'] === $order['attributes']['billingAddressId']) { + if (!empty($address['attributes']['vatId'])) { + $cart['ustid'] = $address['attributes']['vatId']; + } + $cart['name'] = $address['attributes']['firstName'] . ' ' . $address['attributes']['lastName']; + if (!empty($address['attributes']['company'])) { + $cart['ansprechpartner'] = $cart['name']; + $cart['name'] = $address['attributes']['company']; + } + $cart['strasse'] = $address['attributes']['street']; + $cart['abteilung'] = $address['attributes']['department']; + $cart['adresszusatz'] = trim($address['attributes']['additionalAddressLine1'].' '. + $address['attributes']['additionalAddressLine2']); + $cart['telefon'] = $address['attributes']['phoneNumber']; + $cart['plz'] = $address['attributes']['zipcode']; + $cart['ort'] = $address['attributes']['city']; + $billingCountryId = $address['attributes']['countryId']; + $billingSalutationId = $address['attributes']['salutationId']; + } + if ($address['id'] !== $order['attributes']['billingAddressId']) { + $cart['abweichendelieferadresse'] = 1; + if (!empty($address['attributes']['vatId'])) { + $cart['lieferadresse_ustid'] = $address['attributes']['vatId']; + } + $cart['lieferadresse_name'] = $address['attributes']['firstName'] . ' ' . $address['attributes']['lastName']; + if (!empty($address['attributes']['company'])) { + $cart['lieferadresse_ansprechpartner'] = $cart['lieferadresse_name']; + $cart['lieferadresse_name'] = $address['attributes']['company']; + } + $cart['lieferadresse_strasse'] = $address['attributes']['street']; + $cart['lieferadresse_abteilung'] = $address['attributes']['department']; + $cart['lieferadresse_adresszusatz'] = trim($address['attributes']['additionalAddressLine1'].' '. + $address['attributes']['additionalAddressLine2']); + $cart['lieferadresse_plz'] = $address['attributes']['zipcode']; + $cart['lieferadresse_ort'] = $address['attributes']['city']; + $deliveryCountryId = $address['attributes']['countryId']; + } + } + + $anrede = 'herr'; + $land = 'DE'; + $lieferadresseLand = 'DE'; + foreach ($addresses['included'] as $includedInfo) { + if ($includedInfo['id'] === $billingCountryId) { + $land = $includedInfo['attributes']['iso']; + } + if ($includedInfo['id'] === $deliveryCountryId) { + $lieferadresseLand = $includedInfo['attributes']['iso']; + } + if ($includedInfo['id'] === $billingSalutationId) { + $salutation = $includedInfo['attributes']['salutationKey']; + if ($salutation === 'ms' || $salutation === 'mrs') { + $anrede = 'frau'; + } + } + } + + $cart['anrede'] = $anrede; + $cart['land'] = $land; + if (!empty($cart['abweichendelieferadresse'])) { + $cart['lieferadresse_land'] = $lieferadresseLand; + } + + $transactionData = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/transactions'); + $cart['transacion_data'] = $transactionData; + if (!empty($transactionData['data'][0]['attributes']['customFields']['swag_paypal_pui_payment_instruction']['reference_number'])) { + $cart['transaktionsnummer'] = $transactionData['data'][0]['attributes']['customFields']['swag_paypal_pui_payment_instruction']['reference_number']; + } + if (empty($cart['transaktionsnummer'] && !empty($transactionData['data'][0]['attributes']['customFields']['swag_paypal_order_id']))) { + $cart['transaktionsnummer'] = (string)$transactionData['data'][0]['attributes']['customFields']['swag_paypal_order_id']; + } + if (empty($cart['transaktionsnummer'] && !empty($transactionData['data'][0]['attributes']['customFields']['swag_paypal_transaction_id']))) { + $livePayPalData = $this->shopwareRequest('GET', 'paypal/payment-details/' . $order['id'] . '/' . $transactionData['data'][0]['attributes']['customFields']['swag_paypal_transaction_id']); + if (!empty($livePayPalData['transactions'])) { + foreach ($livePayPalData['transactions'] as $payPalData) { + foreach ($payPalData['related_resources'] as $ressources) { + if ($ressources['sale']['state'] === 'completed') { + $cart['transaktionsnummer'] = $ressources['sale']['id']; + break 2; + } + } + } + } + } + if( + empty($cart['transaktionsnummer']) + && isset($transactionData['data'][0]['attributes']['customFields']['stripe_payment_context']['payment']['payment_intent_id']) + ){ + $cart['transaktionsnummer'] = $transactionData['data'][0]['attributes']['customFields']['stripe_payment_context']['payment']['payment_intent_id']; + } + + $paymentMethodId = $transactionData['data'][0]['attributes']['paymentMethodId']; + $paymentMethod = $this->shopwareRequest('GET', 'payment-method/' . $paymentMethodId); + $cart['zahlungsweise'] = $paymentMethod['data']['attributes']['name']; + + $taxedCountry = $land; + if($this->taxationByDestinationCountry){ + $taxedCountry = $lieferadresseLand; + } + if($order['attributes']['amountTotal'] === $order['attributes']['amountNet']){ + if($this->app->erp->IstEU($taxedCountry)){ + $cart['ust_befreit'] = 1; + }elseif($this->app->erp->Export($taxedCountry)){ + $cart['ust_befreit'] = 2; + }else{ + $cart['ust_befreit'] = 3; + } + } + + $lineItems = $this->shopwareRequest('GET', 'order/' . $order['id'] . '/line-items'); + $order['lineItems'] = $lineItems; + $cart['articlelist'] = []; + + $taxRate = 0; + foreach ($lineItems['data'] as $lineItem) { + if ($lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate'] > $taxRate) { + $taxRate = $lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate']; + } + } + + $orderPriceType = 'price'; + if(in_array($order['attributes']['taxStatus'], ['net', 'tax-free'])) { + $orderPriceType = 'price_netto'; + $cart['versandkostennetto'] = $cart['versandkostenbrutto']; + unset($cart['versandkostenbrutto']); + } + + foreach ($lineItems['data'] as $lineItem) { + $productPriceType = $orderPriceType; + if(empty($lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate'])){ + $productPriceType = 'price_netto'; + } + $articleId = null; + if($lineItem['attributes']['price']['unitPrice'] < 0) { + $articleId = $voucherArticleNumber; + } + elseif(isset($lineItem['attributes']['payload']['productNumber'])){ + $articleId = $lineItem['attributes']['payload']['productNumber']; + } + $product = [ + 'articleid' => $articleId, + 'name' => $lineItem['attributes']['label'], + 'quantity' => $lineItem['attributes']['quantity'], + $productPriceType => $lineItem['attributes']['price']['unitPrice'], + 'steuersatz' => $lineItem['attributes']['price']['calculatedTaxes'][0]['taxRate'], + ]; + $cart['articlelist'][] = $product; + } + + $cart['order'] = $order; + $fetchedOrders[] = [ + 'id' => $cart['auftrag'], + 'sessionid' => '', + 'logdatei' => '', + 'warenkorb' => base64_encode(serialize($cart)), + 'warenkorbjson' => base64_encode(json_encode($cart)), + ]; + $this->Shopware6Log('Ergebnis: Auftrag', $order); + $this->Shopware6Log('Ergebnis: Adresse', $addresses); + $this->Shopware6Log('Ergebnis: Positionen', $lineItems); + } + + return $fetchedOrders; + } + + /** + * @return void + */ + public function ImportDeleteAuftrag() + { + $tmp = $this->CatchRemoteCommand('data'); + $auftrag = $tmp['auftrag']; + + $this->shopwareRequest('POST', '_action/order/'.$auftrag.'/state/process'); + $this->addCustomFieldToOrder((string)$auftrag); + } + + /** + * @return void + */ + public function ImportUpdateAuftrag() + { + $tmp = $this->CatchRemoteCommand('data'); + $auftrag = $tmp['auftrag']; + $tracking = $tmp['tracking']; + + $this->shopwareRequest('POST', '_action/order/'.$auftrag.'/state/complete'); + + $deliveries = $this->shopwareRequest('GET', 'order/'.$auftrag.'/deliveries'); + $deliveryId = $deliveries['data'][0]['id']; + + if(!empty($deliveryId)){ + $this->shopwareRequest('POST', '_action/order_delivery/'.$deliveryId.'/state/ship'); + + $deliveryData = [ + 'trackingCodes' => [$tracking] + ]; + $this->shopwareRequest('PATCH', 'order-delivery/'.$deliveryId,$deliveryData); + } + + $this->sendInvoce($auftrag); + $this->addCustomFieldToOrder((string)$auftrag); + if(empty($tmp['orderId'])) { + return; + } + $this->updateStorageForOrderIntId((int)$tmp['orderId']); + } + + public function ImportStorniereAuftrag() + { + $tmp = $this->CatchRemoteCommand('data'); + $auftrag = $tmp['auftrag']; + + $this->shopwareRequest('POST', '_action/order/'.$auftrag.'/state/cancel'); + $this->addCustomFieldToOrder((string)$auftrag); + } + + /** + * @param string $extOrderId + */ + protected function sendInvoce($extOrderId) + { + $order = $this->app->DB->SelectRow( + sprintf( + "SELECT `rechnungid`, `id` FROM `auftrag` WHERE shopextid='%s'", + $extOrderId + ) + ); + $invoiceId = 0; + if (!empty($order['rechnungid'])) { + $invoiceId = $order['rechnungid']; + $sql = sprintf("SELECT projekt, belegnr FROM rechnung WHERE id='%s'", $invoiceId); + $invoiceData = $this->app->DB->SelectRow($sql); + } + if (empty($invoiceId) && !empty($order['id'])) { + $invoiceData = $this->app->DB->SelectRow( + sprintf( + "SELECT `id`, `projekt`, `belegnr` + FROM `rechnung` + WHERE `auftragid` = %d AND `status` <> 'storniert' AND `status` <> 'angelegt' + LIMIT 1", + $order['id'] + ) + ); + if (!empty($invoiceData)) { + $invoiceId = $invoiceData['id']; + } + } + + if (!empty($invoiceData['belegnr'])) { + $projekt = $invoiceData['projekt']; + if (class_exists('RechnungPDFCustom')) { + $Brief = new RechnungPDFCustom($this->app, $projekt); + } else { + $Brief = new RechnungPDF($this->app, $projekt); + } + + $Brief->GetRechnung($invoiceId); + $filePath = $Brief->displayTMP(true); + + $documentNumber = $invoiceData['belegnr']; + $invoiceDocumentData = [ + 'config' => [ + 'custom' => [ + 'invoiceNumber' => $documentNumber, + ], + 'documentComment' => 'Aus Xentral heraus erstellte Rechnung', + 'documentNumber' => $documentNumber, + ], + 'referenced_document_id' => null, + 'static' => true + ]; + + $documentData = $this->shopwareRequest('POST', '_action/order/' . $extOrderId . '/document/invoice', $invoiceDocumentData); + $documentId = $documentData['documentId']; + + $accessToken = $this->shopwareToken(); + $url = $this->ShopUrl . '_action/document/' . $documentId . '/upload?_response=true&extension=pdf&fileName=' . $documentNumber; + + $ch = curl_init(); + $setHeaders = [ + 'Content-Type:application/pdf', + 'Authorization:Bearer ' . $accessToken['token'] + ]; + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents($filePath)); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, $setHeaders); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + $response = json_decode(curl_exec($ch), true); + curl_close($ch); + if (!empty($response['errors'])) { + $this->Shopware6Log( + 'Fehler bei Rechnugnsübertragung für ' . $documentNumber, $response['errors'] + ); + } + } + } + + /** + * @return string + */ + public function ImportAuth() + { + $tokeninfo = $this->shopwareToken(); + + + if (!$tokeninfo['success']) { + return 'failed: ' . $tokeninfo['message']; + } + if($this->data === 'info'){ + $salesChannelsInShopware = $this->client->getAllSalesChannels(); + $salesChannelsToShow = ['subshops' => []]; + foreach ($salesChannelsInShopware['data'] as $salesChannelInShopware){ + $salesChannelsToShow['subshops'][] = [ + 'id'=>$salesChannelInShopware['id'], + 'name'=>$salesChannelInShopware['name'], + 'aktiv'=>$salesChannelInShopware['active'] + ]; + } + return $salesChannelsToShow; + } + + return 'success'; + } + + /** + * Build category tree as displayed in article info + * May be useful for setting category in the future + * but probably obsolete + * + * @param string $categoryName + * @param array $categoryTree + * + * @return array + */ + protected function appendCategoryTree($categoryName, $categoryTree = []) + { + $shopwareCategory = $this->shopwareRequest( + 'GET', + 'category?filter[category.name]=' . urlencode($categoryName) + ); + if (!isset($shopwareCategory['data'][0]['id'])) { + return $categoryTree; + } + $categoryInfo = $shopwareCategory['data'][0]['attributes']; + $categories[] = [(int)$categoryInfo['level'], $shopwareCategory['data'][0]['id']]; + $path = $categoryInfo['path']; + if (!empty($path)) { + $pathArray = explode('|', $path); + foreach ($pathArray as $nodeId) { + if ($nodeId === '') { + continue; + } + $nodeCategory = $this->shopwareRequest('GET', 'category/' . $nodeId); + if (isset($nodeCategory['data']['id'])) { + $categories[] = [(int)$nodeCategory['data']['attributes']['level'], $nodeId]; + unset($nodeCategory); + } + } + } + foreach ($categories as $category) { + $level = $category[0]; + if (!isset($categoryTree[$level])) { + $categoryTree[$level] = []; + } + if (!in_array($category, $categoryTree[$level], true)) { + $categoryTree[$level][] = $category[1]; + } + } + ksort($categoryTree); + + return $categoryTree; + } + + /** + * @param array $postData + * + * @return array + */ + public function updatePostDataForAssistent($postData) + { + if(!empty($this->ShopUrl)) { + $postData['shopwareUrl'] = $this->ShopUrl; + } + return $postData; + } + + /** + * @param array $shopArr + * @param array $postData + * + * @return array + */ + public function updateShopexportArr($shopArr, $postData) + { + $shopArr['stornoabgleich'] = 1; + $shopArr['demomodus'] = 0; + + return $shopArr; + } + + /** + * @return JsonResponse|null + */ + public function AuthByAssistent() + { + $shopwareUrl = $this->app->Secure->GetPOST('shopwareUrl'); + $shopwareUserName = $this->app->Secure->GetPOST('shopwareUserName'); + $shopwarePassword = $this->app->Secure->GetPOST('shopwarePassword'); + $step = (int)$this->app->Secure->GetPOST('step'); + + if($step <= 1){ + if(empty($shopwareUrl)){ + return new JsonResponse(['error' => 'Bitte die URL des Shops angeben.'], JsonResponse::HTTP_BAD_REQUEST); + } + if(empty($shopwareUserName)){ + return new JsonResponse(['error' => 'Bitte den Benutzernamen angeben'], JsonResponse::HTTP_BAD_REQUEST); + } + if(empty($shopwarePassword)){ + return new JsonResponse(['error' => 'Bitte das Passwort angeben'], JsonResponse::HTTP_BAD_REQUEST); + } + + $this->UserName = $shopwareUserName; + $this->Password = $shopwarePassword; + $shopwareUrl = rtrim($shopwareUrl, '/') . '/'; + $testUrls = []; + $hasNoHttp = strpos($shopwareUrl,'http') !== 0; + if(substr($shopwareUrl, -5) !== '/api/') { + if($hasNoHttp) { + $testUrls[] = 'https://'.$shopwareUrl.'api/'; + $testUrls[] = 'http://'.$shopwareUrl.'api/'; + } + $testUrls[] = $shopwareUrl.'api/'; + } + elseif($hasNoHttp) { + $testUrls[] = 'https://'.$shopwareUrl; + $testUrls[] = 'http://'.$shopwareUrl; + } + else { + $testUrls[] = $shopwareUrl; + } + foreach($testUrls as $testUrl) { + $this->ShopUrl = $testUrl; + $tokeninfo = $this->shopwareToken(); + if(!empty($tokeninfo['success'])) { + break; + } + } + + if(!$tokeninfo['success']){ + return new JsonResponse(['error' => $tokeninfo['message']], JsonResponse::HTTP_BAD_REQUEST); + } + } + + return null; + } + + /** + * @return string + */ + public function getClickByClickHeadline() + { + return 'Bitte im Shopware Backend einen eigenen Benutzer für Xentral anlegen und diese + Zugangsdaten hier eintragen.'; + } + + /** + * @return array + */ + public function getStructureDataForClickByClickSave() + { + return [ + 'shopwareAllowCreateManufacturer' => 1, + ]; + } + + /** + * @return array[] + */ + public function getCreateForm() + { + return [ + [ + 'id' => 0, + 'name' => 'urls', + 'inputs' => [ + [ + 'label' => 'URL des Shops', + 'type' => 'text', + 'name' => 'shopwareUrl', + 'validation' => true, + ], + ], + ], + [ + 'id' => 1, + 'name' => 'username', + 'inputs' => [ + [ + 'label' => 'Benutzername aus Shopware', + 'type' => 'text', + 'name' => 'shopwareUserName', + 'validation' => true, + ], + ], + ], + [ + 'id' => 2, + 'name' => 'password', + 'inputs' => [ + [ + 'label' => 'Passwort aus Shopware', + 'type' => 'password', + 'name' => 'shopwarePassword', + 'validation' => true, + ], + ], + ], + ]; + } + + public function getBoosterHeadline(): string + { + return 'Shopware 6 Business Booster App'; + } + + public function getBoosterSubHeadline(): string + { + return 'Bitte gehe auf Shopware 6 und installiere dort das Plugin Xentral Business Booster App. + Dort kann man sich dann mit ein paar Klicks mit Xentral verbinden.'; + } + + /** + * @param int $intOrderId + * + * @return array + */ + protected function getArticleShopLinks(int $intOrderId): array + { + return $this->app->DB->SelectPairs( + "SELECT DISTINCT ao.artikel, a.nummer + FROM `auftrag_position` AS `ap` + INNER JOIN `auftrag` AS `ab` ON ap.auftrag = ab.id + INNER JOIN `artikel` AS `a` ON ap.artikel = a.id + INNER JOIN `artikel_onlineshops` AS `ao` ON ab.shop = ao.shop AND a.id = ao.artikel + WHERE ab.id = {$intOrderId} AND ao.aktiv = 1" + ); + } + + /** + * @param array $articleIds + */ + protected function updateArticleCacheToSync(array $articleIds): void + { + if(empty($articleIds)) { + return; + } + $articleIdsString = implode(', ', $articleIds); + $this->app->DB->Update( + "UPDATE `artikel` + SET `laststorage_changed` = DATE_ADD(NOW(), INTERVAL 1 SECOND) + WHERE `id` IN ({$articleIdsString})" + ); + } + + /** + * @param array $articleIds + */ + protected function updateArticleOnlineShopCache(array $articleIds): void + { + if(empty($articleIds)) { + return; + } + $articleIdsString = implode(', ', $articleIds); + $this->app->DB->Update( + "UPDATE `artikel_onlineshops` + SET `storage_cache` = -999, `pseudostorage_cache` = -999 + WHERE `artikel` IN ({$articleIdsString}) AND `aktiv` = 1 AND `shop` = {$this->shopid}" + ); + } + + /** + * @param int $intOrderId + */ + protected function updateStorageForOrderIntId(int $intOrderId): void + { + $articles = $this->getArticleShopLinks($intOrderId); + if(empty($articles)) { + return; + } + $articleIds = array_keys($articles); + $this->updateArticleCacheToSync($articleIds); + $this->updateArticleOnlineShopCache($articleIds); + + $isStorageSyncCronjobActive = (int)$this->app->DB->Select( + "SELECT COUNT(`id`) FROM `prozessstarter` WHERE `aktiv` = 1 AND `parameter` = 'lagerzahlen'" + ) > 0; + if(!$isStorageSyncCronjobActive) { + return; + } + foreach($articleIds as $articleId) { + try { + $this->app->erp->LagerSync($articleId, false, [$this->shopid]); + } + catch (Exception $e) { + $articleNumber = $articles[$articleId]; + $this->Shopware6ErrorLog('LagerSync konnte nicht ausgeführt werden', $articleNumber); + } + } + + $this->updateArticleCacheToSync($articleIds); + } +} diff --git a/www/pages/ticket.php b/www/pages/ticket.php index 936da277..28828244 100644 --- a/www/pages/ticket.php +++ b/www/pages/ticket.php @@ -48,11 +48,11 @@ class Ticket { case "ticket_list": $allowed['ticket_list'] = array('list'); - $heading = array('','','Ticket #', 'Letzte Aktion', 'Adresse', 'Betreff', 'Tags', 'Verant.', 'Nachr.', 'Status', 'Alter', 'Projekt', 'Menü'); - $width = array('1%','1%','5%', '5%', '5%', '30%', '1%', '5%', '1%', '1%', '1%', '1%', '1%'); + $heading = array('','','Ticket #', 'Aktion','Adresse', 'Betreff', 'Tags', 'Verant.', 'Nachr.', 'Status', 'Projekt', 'Menü'); + $width = array('1%','1%','5%', '5%', '5%', '30%', '1%', '5%', '1%', '1%', '1%', '1%'); - $findcols = array('t.id','t.zeit','t.schluessel', 't.zeit', 'a.name', 't.betreff', 't.tags', 'w.warteschlange', 'nachrichten_anz', 't.status','t.zeit', 't.projekt'); - $searchsql = array( 't.schluessel', 't.zeit', 'a.name', 't.betreff','t.notiz', 't.tags', 'w.warteschlange', 't.status', 't.projekt'); + $findcols = array('t.id','t.id','t.schluessel', 't.zeit', 'a.name', 't.betreff', 't.tags', 'w.warteschlange', 'nachrichten_anz', 't.status', 'p.abkuerzung'); + $searchsql = array( 't.schluessel', 't.zeit', 'a.name', 't.betreff','t.notiz', 't.tags', 'w.warteschlange', 't.status', 'p.abkuerzung','(SELECT mail FROM ticket_nachricht tn WHERE tn.ticket = t.schluessel AND tn.versendet <> 1 LIMIT 1)'); $defaultorder = 1; $defaultorderdesc = 0; @@ -65,27 +65,29 @@ class Ticket { CONCAT(TIMESTAMPDIFF(hour, t.zeit, NOW()),'h'), CONCAT(TIMESTAMPDIFF(day, t.zeit, NOW()), 'd ',MOD(TIMESTAMPDIFF(hour, t.zeit, NOW()),24),'h'))"; - $dropnbox = "'' AS `open`, CONCAT('') AS `auswahl`"; + $dropnbox = "'' AS `open`, + CONCAT('') AS `auswahl`"; $priobetreff = "if(t.prio!=1,t.betreff,CONCAT('',t.betreff,''))"; $anzahlnachrichten = "(SELECT COUNT(n.id) FROM ticket_nachricht n WHERE n.ticket = t.schluessel)"; + $letztemail = $app->erp->FormatDateTimeShort("(SELECT MAX(n.zeit) FROM ticket_nachricht n WHERE n.ticket = t.schluessel AND n.zeit IS NOT NULL)"); + $tagstart = "
  • "; $tagend = "
  • "; $sql = "SELECT SQL_CALC_FOUND_ROWS t.id, ".$dropnbox.", - CONCAT('',t.schluessel,''), - t.zeit, - a.name, + CONCAT('',t.schluessel,''),". + $app->erp->FormatDateTimeShort('zeit')." as aktion, + CONCAT(COALESCE(CONCAT(a.name,'
    '),''),COALESCE((SELECT mail FROM ticket_nachricht tn WHERE tn.ticket = t.schluessel AND tn.versendet <> 1 LIMIT 1),'')) as combiadresse, CONCAT('',".$priobetreff.",'
    ',replace(substring(ifnull(t.notiz,''),1,500),'\n','
    '),'
    '), CONCAT('
      '\n,'".$tagstart."',replace(t.tags,',','".$tagend."
       
      ".$tagstart."'),'".$tagend."','
    '), w.warteschlange, - ".$anzahlnachrichten." as nachrichten_anz, + ".$anzahlnachrichten." as `nachrichten_anz`, ".ticket_iconssql().", - ".$timedifference.", p.abkuerzung, t.id FROM ticket t @@ -149,7 +151,7 @@ class Ticket { // END Toggle filters $moreinfo = true; // Allow drop down details - $menucol = 12; // For moredata + $menucol = 11; // For moredata $count = "SELECT count(DISTINCT id) FROM ticket t WHERE $where"; @@ -170,6 +172,16 @@ class Ticket { return $erg; } + // Ensure status 'offen' on self-assigned tickets + function ticket_set_self_assigned_status(array $ids) { + $sql = "UPDATE ticket SET status = 'offen' + WHERE + status = 'neu' + AND id IN (".implode(',',$ids).") + AND warteschlange IN (SELECT label FROM warteschlangen WHERE adresse = '".$this->app->User->GetAdresse()."')"; + $this->app->DB->Update($sql); + } + function ticket_list() { // Process multi action @@ -181,7 +193,7 @@ class Ticket { if($selectedId > 0) { $selectedIds[] = $selectedId; } - } + } $status = $this->app->Secure->GetPOST('status'); $warteschlange = $this->app->Secure->GetPOST('warteschlange'); @@ -192,9 +204,10 @@ class Ticket { } $sql .= " WHERE id IN (".implode(",",$selectedIds).")"; - $this->app->DB->Update($sql); + $this->ticket_set_self_assigned_status($selectedIds); + } // List @@ -239,8 +252,8 @@ class Ticket { n.verfasser, n.mail, t.quelle, - n.zeit, - n.zeitausgang, + ".$this->app->erp->FormatDateTimeShort('n.zeit','zeit').", + ".$this->app->erp->FormatDateTimeShort('n.zeitausgang','zeitausgang').", n.versendet, n.text, n.textausgang, @@ -307,6 +320,7 @@ class Ticket { $this->app->Tpl->Set("NACHRICHT_BETREFF",''.htmlentities($message['betreff']).''); $this->app->Tpl->Set("NACHRICHT_ZEIT",$message['zeitausgang']); $this->app->Tpl->Set("NACHRICHT_FLOAT","right"); + $this->app->Tpl->Set("META_FLOAT","left"); $this->app->Tpl->Set("NACHRICHT_TEXT",$message['textausgang']); $this->app->Tpl->Set("NACHRICHT_SENDER",htmlentities($message['bearbeiter'])); $this->app->Tpl->Set("NACHRICHT_RECIPIENTS",htmlentities($message['verfasser']." <".$message['mail'].">")); @@ -327,12 +341,13 @@ class Ticket { } $this->app->Tpl->Set("NACHRICHT_BETREFF",htmlentities($message['betreff']." (Entwurf)")); } else { - $this->app->Tpl->Set("NACHRICHT_BETREFF",htmlentities($message['betreff'])); + $this->app->Tpl->Set("NACHRICHT_BETREFF",''.htmlentities($message['betreff']).''); } $this->app->Tpl->Set("NACHRICHT_SENDER",htmlentities($message['verfasser']." <".$message['mail_replyto'].">")); $this->app->Tpl->Set("NACHRICHT_RECIPIENTS",htmlentities($message['mail'])); $this->app->Tpl->Set("NACHRICHT_CC_RECIPIENTS",htmlentities($message['mail_cc'])); $this->app->Tpl->Set("NACHRICHT_FLOAT","right"); + $this->app->Tpl->Set("META_FLOAT","left"); $this->app->Tpl->Set("NACHRICHT_ZEIT",$message['zeitausgang']); $this->app->Tpl->Set("NACHRICHT_NAME",htmlentities($message['verfasser'])); } else { @@ -349,8 +364,9 @@ class Ticket { $this->app->Tpl->Set("NACHRICHT_RECIPIENTS",htmlentities($message['quelle'])); } $this->app->Tpl->Set("NACHRICHT_CC_RECIPIENTS",htmlentities($message['mail_cc_recipients'])); - $this->app->Tpl->Set("NACHRICHT_BETREFF",''.htmlentities($message['betreff']).''); + $this->app->Tpl->Set("NACHRICHT_BETREFF",''.htmlentities($message['betreff']).''); $this->app->Tpl->Set("NACHRICHT_FLOAT","left"); + $this->app->Tpl->Set("META_FLOAT","right"); $this->app->Tpl->Set("NACHRICHT_ZEIT",$message['zeit']); } @@ -365,9 +381,21 @@ class Ticket { } } + function ticket_text() { + + $secure_html_tags = array( + '
    ', + '

    ', + '', + '', + '', + '', + '
    ', + ' -[CSSLINKS] - - -[JAVASCRIPT] - - -[ADDITIONALJAVASCRIPT] - - - -[SPERRMELDUNGNACHRICHT] -
    - -
    - -[ICONBAR] -
    - -
    - -

    OpenXE Update

    -
    -
    -[PAGE] - -
    -
    Download:
    -
    -
    Installieren:
    -
    -
    Datenbank Update:
    -
    - -
    -
    - - - - - -
    -
    - -
    -
    - - - - - - -
    - -
    - -[JSSCRIPTS] - - -[BODYENDE] - - - - diff --git a/www/updatelogin.tpl b/www/updatelogin.tpl deleted file mode 100644 index be7b05f0..00000000 --- a/www/updatelogin.tpl +++ /dev/null @@ -1,121 +0,0 @@ -
    - - - - -
    -

    - - [MULTIDB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    [LOGINMSG] - [LOGINERRORMSG]
    [STECHUHRDEVICE]




    -
    -
    -
    - - diff --git a/www/widgets/templates/_gen/auftrag.tpl b/www/widgets/templates/_gen/auftrag.tpl index 820cac56..de9ca4bb 100644 --- a/www/widgets/templates/_gen/auftrag.tpl +++ b/www/widgets/templates/_gen/auftrag.tpl @@ -83,7 +83,7 @@ function abweichend2()
    {|Allgemein|} - + @@ -228,18 +228,51 @@ function abweichend2()
    {|Auftrag|}
    {|Kunde|}[ADRESSE][MSGADRESSE] [BUTTON_UEBERNEHMEN]
    {|Kunde|}[ADRESSE][MSGADRESSE] [BUTTON_UEBERNEHMEN]
    {|Lieferant|}[LIEFERANT][MSGLIEFERANT] [BUTTON_UEBERNEHMEN2]
    {|an Lieferanten|}:[LIEFERANTENAUFTRAG][MSGLIEFERANTENAUFTRAG] 
    {|Projekt|}:[PROJEKT][MSGPROJEKT]
    - + + + + + + + + - - - + + + + + + + + + + + +
    {|Zahlungsweise|}:[ZAHLUNGSWEISE][MSGZAHLUNGSWEISE] -
    [VORABBEZAHLTMARKIEREN][MSGVORABBEZAHLTMARKIEREN] manuell Zahlungsfreigabe erteilen -
    + {|Zahlungsweise|}: + + [ZAHLUNGSWEISE][MSGZAHLUNGSWEISE] +
    + {|Manuell Zahlungsfreigabe erteilen|}: + + [VORABBEZAHLTMARKIEREN][MSGVORABBEZAHLTMARKIEREN] +
    {|Versandart|}:[VERSANDART][MSGVERSANDART]
    [LIEFERBEDINGUNG][MSGLIEFERBEDINGUNG]
    {|Vertrieb|}:[VERTRIEB][MSGVERTRIEB] [VERTRIEBBUTTON]
    {|Bearbeiter|}:[BEARBEITER][MSGBEARBEITER] [INNENDIENSTBUTTON]
    {|Portoprüfung ausschalten|}:[KEINPORTO][MSGKEINPORTO]             -{|Kein Briefpapier und Logo|}: [OHNE_BRIEFPAPIER][MSGOHNE_BRIEFPAPIER]
    {|Artikeltexte ausblenden|}:[OHNE_ARTIKELTEXT][MSGOHNE_ARTIKELTEXT]
    + {|Portoprüfung ausschalten|}: + + [KEINPORTO][MSGKEINPORTO] +
    + {|Kein Briefpapier und Logo|}: + + [OHNE_BRIEFPAPIER][MSGOHNE_BRIEFPAPIER] +
    + {|Artikeltexte ausblenden|}: + + [OHNE_ARTIKELTEXT][MSGOHNE_ARTIKELTEXT] +
    {|Versandzentrum Optionen|} @@ -261,7 +294,7 @@ function abweichend2()
    -
    {|Sonstiges|} +
    {|Sonstigess|} [EXTRABEREICHSONSTIGES]
    {|GLN|}:[GLN][MSGGLN]
    @@ -295,7 +328,7 @@ function abweichend(cmd) -
    +
    {|Rechnung|} @@ -397,8 +430,30 @@ function abweichend(cmd)
    UST-Prüfung
    {|Zahlungsziel (in Tagen)|}:[ZAHLUNGSZIELTAGE][MSGZAHLUNGSZIELTAGE]
    - - + + + + + + + + + + + +
    {|UST ID|}:[USTID][MSGUSTID]
    {|Besteuerung|}:[UST_BEFREIT][MSGUST_BEFREIT] [KEINSTEUERSATZ][MSGKEINSTEUERSATZ] {|ohne Hinweis bei EU oder Export|}
    {|UST-ID geprüft|}:[UST_OK][MSGUST_OK] UST / Export geprüft + Freigabe für Versand
    + {|Besteuerung|}: + + [UST_BEFREIT][MSGUST_BEFREIT] +
    + {|Ohne Hinweis bei EU oder Export|}: + + [KEINSTEUERSATZ][MSGKEINSTEUERSATZ] +
    + {|UST-ID geprüft|}: + + [UST_OK] UST / Export geprüft + Freigabe für Versand +
    diff --git a/www/widgets/templates/_gen/projekt.tpl b/www/widgets/templates/_gen/projekt.tpl index b833e355..7786073f 100644 --- a/www/widgets/templates/_gen/projekt.tpl +++ b/www/widgets/templates/_gen/projekt.tpl @@ -43,6 +43,20 @@
    +
    +
    +
    +
    +
    {|Briefpapier|} + + + +
    {|Eigenes Briefpapier für Projekt|}:[SPEZIALLIEFERSCHEIN][MSGSPEZIALLIEFERSCHEIN]
    {|Beschriftung|}:[SPEZIALLIEFERSCHEINBESCHRIFTUNG][MSGSPEZIALLIEFERSCHEINBESCHRIFTUNG]
    +
    +
    +
    +
    +