From e4dd914a71b035631d01dd630471a99f25305254 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 7 Mar 2024 12:45:18 +0000 Subject: [PATCH] Installer struktur.sql up-to-date, improved mysql 8 compatibility --- database/struktur.sql | 24371 +++++++++++++++++++++------------------- 1 file changed, 12731 insertions(+), 11640 deletions(-) diff --git a/database/struktur.sql b/database/struktur.sql index ddf8f438..64ae2891 100755 --- a/database/struktur.sql +++ b/database/struktur.sql @@ -1,29 +1,13 @@ --- phpMyAdmin SQL Dump --- version 4.2.12deb2+deb8u1 --- http://www.phpmyadmin.net --- --- Host: localhost --- Erstellungszeit: 05. Aug 2016 um 10:35 --- Server Version: 5.5.46-0+deb8u1 --- PHP-Version: 5.6.14-0+deb8u1 - -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; - -SET innodb_strict_mode = OFF; -SET NAMES 'utf8'; -SET SESSION SQL_MODE := ''; -SET SQL_BIG_SELECTS=1; --- MySQL dump 10.13 Distrib 5.7.32, for Linux (x86_64) +-- MariaDB dump 10.19 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64) -- --- Host: localhost Database: xentral +-- Host: localhost Database: openxe -- ------------------------------------------------------ --- Server version 5.7.32-0ubuntu0.18.04.1-log +-- Server version 10.6.16-MariaDB-0ubuntu0.22.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -31,16320 +15,17425 @@ SET SQL_BIG_SELECTS=1; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; +SET innodb_strict_mode = OFF; + -- -- Table structure for table `abrechnungsartikel` -- +DROP TABLE IF EXISTS `abrechnungsartikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `abrechnungsartikel` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `sort` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `nummer` varchar(255) NOT NULL, - `menge` float NOT NULL, - `preis` decimal(10,4) NOT NULL, - `steuerklasse` varchar(255) NOT NULL, - `rabatt` varchar(255) NOT NULL, - `abgerechnet` int(1) NOT NULL, - `startdatum` date NOT NULL, - `lieferdatum` date NOT NULL, - `abgerechnetbis` date NOT NULL, - `wiederholend` int(1) NOT NULL, - `zahlzyklus` int(10) NOT NULL, - `abgrechnetam` date NOT NULL, - `rechnung` int(10) NOT NULL, - `projekt` int(10) NOT NULL, - `adresse` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `bemerkung` text NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `beschreibung` text NOT NULL, - `dokument` varchar(64) NOT NULL DEFAULT '', - `preisart` varchar(64) NOT NULL DEFAULT '', - `enddatum` date NOT NULL, - `angelegtvon` int(11) NOT NULL DEFAULT '0', - `angelegtam` date NOT NULL, - `experte` tinyint(1) NOT NULL DEFAULT '0', - `waehrung` varchar(10) NOT NULL DEFAULT '', - `beschreibungersetzten` tinyint(1) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`,`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `abrechnungsartikel` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `sort` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `nummer` varchar(255) NOT NULL, + `menge` float NOT NULL, + `preis` decimal(10,4) NOT NULL, + `steuerklasse` varchar(255) NOT NULL, + `rabatt` varchar(255) NOT NULL, + `abgerechnet` int(1) NOT NULL, + `startdatum` date NOT NULL, + `lieferdatum` date NOT NULL, + `abgerechnetbis` date NOT NULL, + `wiederholend` int(1) NOT NULL, + `zahlzyklus` int(10) NOT NULL, + `abgrechnetam` date NOT NULL, + `rechnung` int(10) NOT NULL, + `projekt` int(10) NOT NULL, + `adresse` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `bemerkung` text NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `beschreibung` text NOT NULL, + `dokument` varchar(64) NOT NULL, + `preisart` varchar(64) NOT NULL, + `enddatum` date NOT NULL, + `angelegtvon` int(11) NOT NULL DEFAULT 0, + `angelegtam` date NOT NULL, + `experte` tinyint(1) NOT NULL DEFAULT 0, + `waehrung` varchar(10) NOT NULL, + `beschreibungersetzten` tinyint(1) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`,`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `abrechnungsartikel_gruppe` -- +DROP TABLE IF EXISTS `abrechnungsartikel_gruppe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `abrechnungsartikel_gruppe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `beschreibung` varchar(255) NOT NULL DEFAULT '', - `beschreibung2` text NOT NULL, - `rabatt` decimal(10,2) NOT NULL DEFAULT '0.00', - `ansprechpartner` varchar(255) NOT NULL DEFAULT '', - `extrarechnung` int(11) DEFAULT NULL, - `gruppensumme` tinyint(1) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `rechnungadresse` int(11) NOT NULL DEFAULT '0', - `sammelrechnung` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `abrechnungsartikel_gruppe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `beschreibung` varchar(255) NOT NULL, + `beschreibung2` text NOT NULL, + `rabatt` decimal(10,2) NOT NULL DEFAULT 0.00, + `ansprechpartner` varchar(255) NOT NULL, + `extrarechnung` int(11) DEFAULT NULL, + `gruppensumme` tinyint(1) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `rechnungadresse` int(11) NOT NULL DEFAULT 0, + `sammelrechnung` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `abschlagsrechnung_rechnung` -- +DROP TABLE IF EXISTS `abschlagsrechnung_rechnung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `abschlagsrechnung_rechnung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `rechnung` int(11) NOT NULL DEFAULT '0', - `auftrag` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `rechnung` (`rechnung`), - KEY `auftrag` (`auftrag`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `abschlagsrechnung_rechnung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `rechnung` int(11) NOT NULL DEFAULT 0, + `auftrag` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `rechnung` (`rechnung`), + KEY `auftrag` (`auftrag`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `accordion` -- +DROP TABLE IF EXISTS `accordion`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `accordion` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `target` varchar(255) NOT NULL, - `position` int(2) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `accordion` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `target` varchar(255) NOT NULL, + `position` int(2) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adapterbox` -- +DROP TABLE IF EXISTS `adapterbox`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adapterbox` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(128) NOT NULL DEFAULT '', - `verwendenals` varchar(128) NOT NULL DEFAULT '', - `baudrate` varchar(128) NOT NULL DEFAULT '', - `model` varchar(128) NOT NULL DEFAULT '', - `seriennummer` varchar(128) NOT NULL DEFAULT '', - `ipadresse` varchar(128) NOT NULL DEFAULT '', - `netmask` varchar(128) NOT NULL DEFAULT '', - `gateway` varchar(128) NOT NULL DEFAULT '', - `dns` varchar(128) NOT NULL DEFAULT '', - `dhcp` tinyint(1) NOT NULL DEFAULT '1', - `wlan` tinyint(1) NOT NULL DEFAULT '0', - `ssid` varchar(128) NOT NULL DEFAULT '', - `passphrase` varchar(256) NOT NULL DEFAULT '', - `letzteverbindung` datetime DEFAULT NULL, - `tmpip` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adapterbox` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(128) NOT NULL, + `verwendenals` varchar(128) NOT NULL, + `baudrate` varchar(128) NOT NULL, + `model` varchar(128) NOT NULL, + `seriennummer` varchar(128) NOT NULL, + `ipadresse` varchar(128) NOT NULL, + `netmask` varchar(128) NOT NULL, + `gateway` varchar(128) NOT NULL, + `dns` varchar(128) NOT NULL, + `dhcp` tinyint(1) NOT NULL DEFAULT 1, + `wlan` tinyint(1) NOT NULL DEFAULT 0, + `ssid` varchar(128) NOT NULL, + `passphrase` varchar(256) NOT NULL, + `letzteverbindung` datetime DEFAULT NULL, + `tmpip` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adapterbox_log` -- +DROP TABLE IF EXISTS `adapterbox_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adapterbox_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ip` varchar(64) NOT NULL DEFAULT '', - `meldung` varchar(64) NOT NULL DEFAULT '', - `seriennummer` varchar(64) NOT NULL DEFAULT '', - `device` varchar(64) NOT NULL DEFAULT '', - `datum` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adapterbox_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ip` varchar(64) NOT NULL, + `meldung` varchar(64) NOT NULL, + `seriennummer` varchar(64) NOT NULL, + `device` varchar(64) NOT NULL, + `datum` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adapterbox_request_log` -- +DROP TABLE IF EXISTS `adapterbox_request_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adapterbox_request_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `auth` varchar(255) NOT NULL DEFAULT '', - `validpass` varchar(255) NOT NULL DEFAULT '', - `device` varchar(255) NOT NULL DEFAULT '', - `digets` varchar(255) NOT NULL DEFAULT '', - `ip` varchar(32) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `success` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adapterbox_request_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `auth` varchar(255) NOT NULL, + `validpass` varchar(255) NOT NULL, + `device` varchar(255) NOT NULL, + `digets` varchar(255) NOT NULL, + `ip` varchar(32) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `success` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse` -- +DROP TABLE IF EXISTS `adresse`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `typ` varchar(255) NOT NULL, - `marketingsperre` varchar(64) NOT NULL, - `trackingsperre` int(1) NOT NULL, - `rechnungsadresse` int(1) NOT NULL, - `sprache` varchar(32) DEFAULT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `land` varchar(64) NOT NULL, - `strasse` varchar(255) NOT NULL, - `ort` varchar(64) NOT NULL, - `plz` varchar(64) NOT NULL, - `telefon` varchar(64) DEFAULT NULL, - `telefax` varchar(64) DEFAULT NULL, - `mobil` varchar(64) DEFAULT NULL, - `email` varchar(255) NOT NULL, - `ustid` varchar(64) DEFAULT NULL, - `ust_befreit` int(1) NOT NULL, - `passwort_gesendet` int(1) NOT NULL, - `sonstiges` text NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `kundenfreigabe` int(1) NOT NULL, - `steuer` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `kundennummer` varchar(255) NOT NULL, - `lieferantennummer` varchar(255) NOT NULL, - `mitarbeiternummer` varchar(255) NOT NULL, - `konto` varchar(64) DEFAULT NULL, - `blz` varchar(64) DEFAULT NULL, - `bank` varchar(255) NOT NULL, - `inhaber` varchar(255) NOT NULL, - `swift` varchar(64) DEFAULT NULL, - `iban` varchar(64) DEFAULT NULL, - `waehrung` varchar(255) NOT NULL, - `paypal` varchar(255) NOT NULL, - `paypalinhaber` varchar(255) NOT NULL, - `paypalwaehrung` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `partner` int(11) NOT NULL, - `zahlungsweise` varchar(64) NOT NULL, - `zahlungszieltage` varchar(64) NOT NULL, - `zahlungszieltageskonto` varchar(64) NOT NULL, - `zahlungszielskonto` varchar(64) NOT NULL, - `versandart` varchar(64) NOT NULL, - `kundennummerlieferant` varchar(64) NOT NULL, - `zahlungsweiselieferant` varchar(64) NOT NULL, - `zahlungszieltagelieferant` varchar(64) NOT NULL, - `zahlungszieltageskontolieferant` varchar(64) NOT NULL, - `zahlungszielskontolieferant` varchar(64) NOT NULL, - `versandartlieferant` varchar(64) NOT NULL, - `geloescht` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `webid` varchar(1024) DEFAULT NULL, - `vorname` varchar(255) DEFAULT NULL, - `kennung` varchar(255) DEFAULT NULL, - `sachkonto` varchar(20) NOT NULL DEFAULT '', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `filiale` text, - `vertrieb` int(11) DEFAULT NULL, - `innendienst` int(11) DEFAULT NULL, - `verbandsnummer` varchar(255) DEFAULT NULL, - `abweichendeemailab` varchar(64) DEFAULT NULL, - `portofrei_aktiv` decimal(10,2) DEFAULT NULL, - `portofreiab` decimal(10,2) NOT NULL DEFAULT '0.00', - `infoauftragserfassung` text NOT NULL, - `mandatsreferenz` varchar(255) NOT NULL DEFAULT '', - `mandatsreferenzdatum` date DEFAULT NULL, - `mandatsreferenzaenderung` tinyint(1) NOT NULL DEFAULT '0', - `glaeubigeridentnr` varchar(255) NOT NULL DEFAULT '', - `kreditlimit` decimal(10,2) NOT NULL DEFAULT '0.00', - `tour` int(11) NOT NULL DEFAULT '0', - `zahlungskonditionen_festschreiben` int(1) DEFAULT NULL, - `rabatte_festschreiben` int(1) DEFAULT NULL, - `mlmaktiv` int(1) DEFAULT NULL, - `mlmvertragsbeginn` date DEFAULT NULL, - `mlmlizenzgebuehrbis` date DEFAULT NULL, - `mlmfestsetzenbis` date DEFAULT NULL, - `mlmfestsetzen` int(1) NOT NULL DEFAULT '0', - `mlmmindestpunkte` int(1) NOT NULL DEFAULT '0', - `mlmwartekonto` decimal(10,2) NOT NULL DEFAULT '0.00', - `abweichende_rechnungsadresse` int(1) NOT NULL DEFAULT '0', - `rechnung_vorname` varchar(64) DEFAULT NULL, - `rechnung_name` varchar(64) DEFAULT NULL, - `rechnung_titel` varchar(64) DEFAULT NULL, - `rechnung_typ` varchar(64) DEFAULT NULL, - `rechnung_strasse` varchar(64) DEFAULT NULL, - `rechnung_ort` varchar(64) DEFAULT NULL, - `rechnung_plz` varchar(64) DEFAULT NULL, - `rechnung_ansprechpartner` varchar(64) DEFAULT NULL, - `rechnung_land` varchar(64) DEFAULT NULL, - `rechnung_abteilung` varchar(64) DEFAULT NULL, - `rechnung_unterabteilung` varchar(64) DEFAULT NULL, - `rechnung_adresszusatz` varchar(64) DEFAULT NULL, - `rechnung_telefon` varchar(64) DEFAULT NULL, - `rechnung_telefax` varchar(64) DEFAULT NULL, - `rechnung_anschreiben` varchar(64) DEFAULT NULL, - `rechnung_email` varchar(64) DEFAULT NULL, - `geburtstag` date DEFAULT NULL, - `rolledatum` date DEFAULT NULL, - `liefersperre` int(1) DEFAULT NULL, - `liefersperregrund` text, - `mlmpositionierung` varchar(255) DEFAULT NULL, - `steuernummer` varchar(255) DEFAULT NULL, - `steuerbefreit` int(1) DEFAULT NULL, - `mlmmitmwst` int(1) DEFAULT NULL, - `mlmabrechnung` varchar(64) DEFAULT NULL, - `mlmwaehrungauszahlung` varchar(64) DEFAULT NULL, - `mlmauszahlungprojekt` int(11) NOT NULL DEFAULT '0', - `sponsor` int(11) DEFAULT NULL, - `geworbenvon` int(11) DEFAULT NULL, - `logfile` text, - `kalender_aufgaben` int(1) DEFAULT NULL, - `verrechnungskontoreisekosten` int(11) NOT NULL DEFAULT '0', - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `rabatt` decimal(10,2) DEFAULT NULL, - `provision` decimal(10,2) DEFAULT NULL, - `rabattinformation` text, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `internetseite` text, - `bonus1` decimal(10,2) DEFAULT NULL, - `bonus1_ab` decimal(10,2) DEFAULT NULL, - `bonus2` decimal(10,2) DEFAULT NULL, - `bonus2_ab` decimal(10,2) DEFAULT NULL, - `bonus3` decimal(10,2) DEFAULT NULL, - `bonus3_ab` decimal(10,2) DEFAULT NULL, - `bonus4` decimal(10,2) DEFAULT NULL, - `bonus4_ab` decimal(10,2) DEFAULT NULL, - `bonus5` decimal(10,2) DEFAULT NULL, - `bonus5_ab` decimal(10,2) DEFAULT NULL, - `bonus6` decimal(10,2) DEFAULT NULL, - `bonus6_ab` decimal(10,2) DEFAULT NULL, - `bonus7` decimal(10,2) DEFAULT NULL, - `bonus7_ab` decimal(10,2) DEFAULT NULL, - `bonus8` decimal(10,2) DEFAULT NULL, - `bonus8_ab` decimal(10,2) DEFAULT NULL, - `bonus9` decimal(10,2) DEFAULT NULL, - `bonus9_ab` decimal(10,2) DEFAULT NULL, - `bonus10` decimal(10,2) DEFAULT NULL, - `bonus10_ab` decimal(10,2) DEFAULT NULL, - `rechnung_periode` int(11) DEFAULT NULL, - `rechnung_anzahlpapier` int(11) DEFAULT NULL, - `rechnung_permail` int(1) DEFAULT NULL, - `titel` varchar(64) DEFAULT NULL, - `anschreiben` varchar(64) DEFAULT NULL, - `nachname` varchar(128) NOT NULL DEFAULT '', - `arbeitszeitprowoche` decimal(10,2) NOT NULL DEFAULT '0.00', - `folgebestaetigungsperre` tinyint(1) NOT NULL DEFAULT '0', - `lieferantennummerbeikunde` varchar(128) DEFAULT NULL, - `verein_mitglied_seit` date DEFAULT NULL, - `verein_mitglied_bis` date DEFAULT NULL, - `verein_mitglied_aktiv` tinyint(1) DEFAULT NULL, - `verein_spendenbescheinigung` tinyint(1) NOT NULL DEFAULT '0', - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `rechnung_papier` tinyint(1) NOT NULL DEFAULT '0', - `angebot_cc` varchar(128) NOT NULL DEFAULT '', - `auftrag_cc` varchar(128) NOT NULL DEFAULT '', - `rechnung_cc` varchar(128) NOT NULL DEFAULT '', - `gutschrift_cc` varchar(128) NOT NULL DEFAULT '', - `lieferschein_cc` varchar(128) NOT NULL DEFAULT '', - `bestellung_cc` varchar(128) NOT NULL DEFAULT '', - `angebot_fax_cc` varchar(128) NOT NULL DEFAULT '', - `auftrag_fax_cc` varchar(128) NOT NULL DEFAULT '', - `rechnung_fax_cc` varchar(128) NOT NULL DEFAULT '', - `gutschrift_fax_cc` varchar(128) NOT NULL DEFAULT '', - `lieferschein_fax_cc` varchar(128) NOT NULL DEFAULT '', - `bestellung_fax_cc` varchar(128) NOT NULL DEFAULT '', - `abperfax` tinyint(1) NOT NULL DEFAULT '0', - `abpermail` varchar(128) NOT NULL DEFAULT '', - `kassiereraktiv` int(1) NOT NULL DEFAULT '0', - `kassierernummer` varchar(10) NOT NULL DEFAULT '', - `kassiererprojekt` int(11) NOT NULL DEFAULT '0', - `portofreilieferant_aktiv` tinyint(1) NOT NULL DEFAULT '0', - `portofreiablieferant` decimal(10,2) NOT NULL DEFAULT '0.00', - `mandatsreferenzart` varchar(64) NOT NULL DEFAULT '', - `mandatsreferenzwdhart` varchar(64) NOT NULL DEFAULT '', - `serienbrief` tinyint(1) NOT NULL DEFAULT '0', - `kundennummer_buchhaltung` varchar(20) NOT NULL DEFAULT '', - `lieferantennummer_buchhaltung` varchar(20) NOT NULL DEFAULT '', - `lead` tinyint(1) NOT NULL DEFAULT '0', - `zahlungsweiseabo` varchar(64) NOT NULL DEFAULT '', - `bundesland` varchar(64) NOT NULL DEFAULT '', - `mandatsreferenzhinweis` text, - `geburtstagkalender` tinyint(1) NOT NULL DEFAULT '0', - `geburtstagskarte` tinyint(1) NOT NULL DEFAULT '0', - `liefersperredatum` date DEFAULT NULL, - `umsatzsteuer_lieferant` varchar(64) NOT NULL DEFAULT '', - `lat` decimal(18,12) DEFAULT NULL, - `lng` decimal(18,12) DEFAULT NULL, - `art` varchar(32) NOT NULL DEFAULT '', - `fromshop` int(11) NOT NULL DEFAULT '0', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `angebot_email` varchar(128) NOT NULL DEFAULT '', - `auftrag_email` varchar(128) NOT NULL DEFAULT '', - `rechnungs_email` varchar(128) NOT NULL DEFAULT '', - `gutschrift_email` varchar(128) NOT NULL DEFAULT '', - `lieferschein_email` varchar(128) NOT NULL DEFAULT '', - `bestellung_email` varchar(128) NOT NULL DEFAULT '', - `lieferschwellenichtanwenden` tinyint(1) NOT NULL DEFAULT '0', - `hinweistextlieferant` text NOT NULL, - `firmensepa` tinyint(1) NOT NULL DEFAULT '0', - `hinweis_einfuegen` text NOT NULL, - `anzeigesteuerbelege` int(11) NOT NULL DEFAULT '0', - `gln` varchar(32) NOT NULL DEFAULT '', - `rechnung_gln` varchar(32) NOT NULL DEFAULT '', - `keinealtersabfrage` tinyint(1) NOT NULL DEFAULT '0', - `lieferbedingung` text NOT NULL, - `mlmintranetgesamtestruktur` tinyint(1) NOT NULL DEFAULT '0', - `kommissionskonsignationslager` int(11) NOT NULL DEFAULT '0', - `zollinformationen` text NOT NULL, - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `rechnung_bundesstaat` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `name` (`name`), - KEY `projekt` (`projekt`), - KEY `kundennummer` (`kundennummer`), - KEY `lieferantennummer` (`lieferantennummer`), - KEY `usereditid` (`usereditid`), - KEY `plz` (`plz`), - KEY `email` (`email`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `adresse` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `typ` varchar(255) NOT NULL, + `marketingsperre` varchar(64) NOT NULL, + `trackingsperre` int(1) NOT NULL, + `rechnungsadresse` int(1) NOT NULL, + `sprache` varchar(32) DEFAULT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `land` varchar(64) NOT NULL, + `strasse` varchar(255) NOT NULL, + `ort` varchar(64) NOT NULL, + `plz` varchar(64) NOT NULL, + `telefon` varchar(64) DEFAULT NULL, + `telefax` varchar(64) DEFAULT NULL, + `mobil` varchar(64) DEFAULT NULL, + `email` varchar(255) NOT NULL, + `ustid` varchar(64) DEFAULT NULL, + `ust_befreit` int(1) NOT NULL, + `passwort_gesendet` int(1) NOT NULL, + `sonstiges` text NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `kundenfreigabe` int(1) NOT NULL, + `steuer` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `kundennummer` varchar(255) NOT NULL, + `lieferantennummer` varchar(255) NOT NULL, + `mitarbeiternummer` varchar(255) NOT NULL, + `konto` varchar(64) DEFAULT NULL, + `blz` varchar(64) DEFAULT NULL, + `bank` varchar(255) NOT NULL, + `inhaber` varchar(255) NOT NULL, + `swift` varchar(64) DEFAULT NULL, + `iban` varchar(64) DEFAULT NULL, + `waehrung` varchar(255) NOT NULL, + `paypal` varchar(255) NOT NULL, + `paypalinhaber` varchar(255) NOT NULL, + `paypalwaehrung` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `partner` int(11) NOT NULL, + `zahlungsweise` varchar(64) NOT NULL, + `zahlungszieltage` varchar(64) NOT NULL, + `zahlungszieltageskonto` varchar(64) NOT NULL, + `zahlungszielskonto` varchar(64) NOT NULL, + `versandart` varchar(64) NOT NULL, + `kundennummerlieferant` varchar(64) NOT NULL, + `zahlungsweiselieferant` varchar(64) NOT NULL, + `zahlungszieltagelieferant` varchar(64) NOT NULL, + `zahlungszieltageskontolieferant` varchar(64) NOT NULL, + `zahlungszielskontolieferant` varchar(64) NOT NULL, + `versandartlieferant` varchar(64) NOT NULL, + `geloescht` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `webid` varchar(1024) DEFAULT NULL, + `vorname` varchar(255) DEFAULT NULL, + `kennung` varchar(255) DEFAULT NULL, + `sachkonto` varchar(20) NOT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `filiale` text DEFAULT NULL, + `vertrieb` int(11) DEFAULT NULL, + `innendienst` int(11) DEFAULT NULL, + `verbandsnummer` varchar(255) DEFAULT NULL, + `abweichendeemailab` varchar(64) DEFAULT NULL, + `portofrei_aktiv` decimal(10,2) DEFAULT NULL, + `portofreiab` decimal(10,2) NOT NULL DEFAULT 0.00, + `infoauftragserfassung` text NOT NULL, + `mandatsreferenz` varchar(255) NOT NULL, + `mandatsreferenzdatum` date DEFAULT NULL, + `mandatsreferenzaenderung` tinyint(1) NOT NULL DEFAULT 0, + `glaeubigeridentnr` varchar(255) NOT NULL, + `kreditlimit` decimal(10,2) NOT NULL DEFAULT 0.00, + `tour` int(11) NOT NULL DEFAULT 0, + `zahlungskonditionen_festschreiben` int(1) DEFAULT NULL, + `rabatte_festschreiben` int(1) DEFAULT NULL, + `mlmaktiv` int(1) DEFAULT NULL, + `mlmvertragsbeginn` date DEFAULT NULL, + `mlmlizenzgebuehrbis` date DEFAULT NULL, + `mlmfestsetzenbis` date DEFAULT NULL, + `mlmfestsetzen` int(1) NOT NULL DEFAULT 0, + `mlmmindestpunkte` int(1) NOT NULL DEFAULT 0, + `mlmwartekonto` decimal(10,2) NOT NULL DEFAULT 0.00, + `abweichende_rechnungsadresse` int(1) NOT NULL DEFAULT 0, + `rechnung_vorname` varchar(64) DEFAULT NULL, + `rechnung_name` varchar(64) DEFAULT NULL, + `rechnung_titel` varchar(64) DEFAULT NULL, + `rechnung_typ` varchar(64) DEFAULT NULL, + `rechnung_strasse` varchar(64) DEFAULT NULL, + `rechnung_ort` varchar(64) DEFAULT NULL, + `rechnung_plz` varchar(64) DEFAULT NULL, + `rechnung_ansprechpartner` varchar(64) DEFAULT NULL, + `rechnung_land` varchar(64) DEFAULT NULL, + `rechnung_abteilung` varchar(64) DEFAULT NULL, + `rechnung_unterabteilung` varchar(64) DEFAULT NULL, + `rechnung_adresszusatz` varchar(64) DEFAULT NULL, + `rechnung_telefon` varchar(64) DEFAULT NULL, + `rechnung_telefax` varchar(64) DEFAULT NULL, + `rechnung_anschreiben` varchar(64) DEFAULT NULL, + `rechnung_email` varchar(64) DEFAULT NULL, + `geburtstag` date DEFAULT NULL, + `rolledatum` date DEFAULT NULL, + `liefersperre` int(1) DEFAULT NULL, + `liefersperregrund` text DEFAULT NULL, + `mlmpositionierung` varchar(255) DEFAULT NULL, + `steuernummer` varchar(255) DEFAULT NULL, + `steuerbefreit` int(1) DEFAULT NULL, + `mlmmitmwst` int(1) DEFAULT NULL, + `mlmabrechnung` varchar(64) DEFAULT NULL, + `mlmwaehrungauszahlung` varchar(64) DEFAULT NULL, + `mlmauszahlungprojekt` int(11) NOT NULL DEFAULT 0, + `sponsor` int(11) DEFAULT NULL, + `geworbenvon` int(11) DEFAULT NULL, + `logfile` text DEFAULT NULL, + `kalender_aufgaben` int(1) DEFAULT NULL, + `verrechnungskontoreisekosten` int(11) NOT NULL DEFAULT 0, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `rabatt` decimal(10,2) DEFAULT NULL, + `provision` decimal(10,2) DEFAULT NULL, + `rabattinformation` text DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `internetseite` text DEFAULT NULL, + `bonus1` decimal(10,2) DEFAULT NULL, + `bonus1_ab` decimal(10,2) DEFAULT NULL, + `bonus2` decimal(10,2) DEFAULT NULL, + `bonus2_ab` decimal(10,2) DEFAULT NULL, + `bonus3` decimal(10,2) DEFAULT NULL, + `bonus3_ab` decimal(10,2) DEFAULT NULL, + `bonus4` decimal(10,2) DEFAULT NULL, + `bonus4_ab` decimal(10,2) DEFAULT NULL, + `bonus5` decimal(10,2) DEFAULT NULL, + `bonus5_ab` decimal(10,2) DEFAULT NULL, + `bonus6` decimal(10,2) DEFAULT NULL, + `bonus6_ab` decimal(10,2) DEFAULT NULL, + `bonus7` decimal(10,2) DEFAULT NULL, + `bonus7_ab` decimal(10,2) DEFAULT NULL, + `bonus8` decimal(10,2) DEFAULT NULL, + `bonus8_ab` decimal(10,2) DEFAULT NULL, + `bonus9` decimal(10,2) DEFAULT NULL, + `bonus9_ab` decimal(10,2) DEFAULT NULL, + `bonus10` decimal(10,2) DEFAULT NULL, + `bonus10_ab` decimal(10,2) DEFAULT NULL, + `rechnung_periode` int(11) DEFAULT NULL, + `rechnung_anzahlpapier` int(11) DEFAULT NULL, + `rechnung_permail` int(1) DEFAULT NULL, + `titel` varchar(64) DEFAULT NULL, + `anschreiben` varchar(64) DEFAULT NULL, + `nachname` varchar(128) NOT NULL, + `arbeitszeitprowoche` decimal(10,2) NOT NULL DEFAULT 0.00, + `folgebestaetigungsperre` tinyint(1) NOT NULL DEFAULT 0, + `lieferantennummerbeikunde` varchar(128) DEFAULT NULL, + `verein_mitglied_seit` date DEFAULT NULL, + `verein_mitglied_bis` date DEFAULT NULL, + `verein_mitglied_aktiv` tinyint(1) DEFAULT NULL, + `verein_spendenbescheinigung` tinyint(1) NOT NULL DEFAULT 0, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `rechnung_papier` tinyint(1) NOT NULL DEFAULT 0, + `angebot_cc` varchar(128) NOT NULL, + `auftrag_cc` varchar(128) NOT NULL, + `rechnung_cc` varchar(128) NOT NULL, + `gutschrift_cc` varchar(128) NOT NULL, + `lieferschein_cc` varchar(128) NOT NULL, + `bestellung_cc` varchar(128) NOT NULL, + `angebot_fax_cc` varchar(128) NOT NULL, + `auftrag_fax_cc` varchar(128) NOT NULL, + `rechnung_fax_cc` varchar(128) NOT NULL, + `gutschrift_fax_cc` varchar(128) NOT NULL, + `lieferschein_fax_cc` varchar(128) NOT NULL, + `bestellung_fax_cc` varchar(128) NOT NULL, + `abperfax` tinyint(1) NOT NULL DEFAULT 0, + `abpermail` varchar(128) NOT NULL, + `kassiereraktiv` int(1) NOT NULL DEFAULT 0, + `kassierernummer` varchar(10) NOT NULL, + `kassiererprojekt` int(11) NOT NULL DEFAULT 0, + `portofreilieferant_aktiv` tinyint(1) NOT NULL DEFAULT 0, + `portofreiablieferant` decimal(10,2) NOT NULL DEFAULT 0.00, + `mandatsreferenzart` varchar(64) NOT NULL, + `mandatsreferenzwdhart` varchar(64) NOT NULL, + `serienbrief` tinyint(1) NOT NULL DEFAULT 0, + `kundennummer_buchhaltung` varchar(20) NOT NULL, + `lieferantennummer_buchhaltung` varchar(20) NOT NULL, + `lead` tinyint(1) NOT NULL DEFAULT 0, + `zahlungsweiseabo` varchar(64) NOT NULL, + `bundesland` varchar(64) NOT NULL, + `mandatsreferenzhinweis` text DEFAULT NULL, + `geburtstagkalender` tinyint(1) NOT NULL DEFAULT 0, + `geburtstagskarte` tinyint(1) NOT NULL DEFAULT 0, + `liefersperredatum` date DEFAULT NULL, + `umsatzsteuer_lieferant` varchar(64) NOT NULL, + `lat` decimal(18,12) DEFAULT NULL, + `lng` decimal(18,12) DEFAULT NULL, + `art` varchar(32) NOT NULL, + `fromshop` int(11) NOT NULL DEFAULT 0, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `angebot_email` varchar(128) NOT NULL, + `auftrag_email` varchar(128) NOT NULL, + `rechnungs_email` varchar(128) NOT NULL, + `gutschrift_email` varchar(128) NOT NULL, + `lieferschein_email` varchar(128) NOT NULL, + `bestellung_email` varchar(128) NOT NULL, + `lieferschwellenichtanwenden` tinyint(1) NOT NULL DEFAULT 0, + `hinweistextlieferant` text NOT NULL, + `firmensepa` tinyint(1) NOT NULL DEFAULT 0, + `hinweis_einfuegen` text NOT NULL, + `anzeigesteuerbelege` int(11) NOT NULL DEFAULT 0, + `gln` varchar(32) NOT NULL, + `rechnung_gln` varchar(32) NOT NULL, + `keinealtersabfrage` tinyint(1) NOT NULL DEFAULT 0, + `lieferbedingung` text NOT NULL, + `mlmintranetgesamtestruktur` tinyint(1) NOT NULL DEFAULT 0, + `kommissionskonsignationslager` int(11) NOT NULL DEFAULT 0, + `zollinformationen` text NOT NULL, + `bundesstaat` varchar(32) NOT NULL, + `rechnung_bundesstaat` varchar(32) NOT NULL, + `rechnung_anzahlpapier_abweichend` int(1) DEFAULT NULL, + `kontorahmen` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `name` (`name`), + KEY `projekt` (`projekt`), + KEY `kundennummer` (`kundennummer`), + KEY `lieferantennummer` (`lieferantennummer`), + KEY `usereditid` (`usereditid`), + KEY `plz` (`plz`), + KEY `email` (`email`) +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_abosammelrechnungen` -- +DROP TABLE IF EXISTS `adresse_abosammelrechnungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_abosammelrechnungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `rabatt` decimal(10,2) NOT NULL DEFAULT '0.00', - `adresse` int(11) NOT NULL DEFAULT '0', - `abweichende_rechnungsadresse` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_abosammelrechnungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `rabatt` decimal(10,2) NOT NULL DEFAULT 0.00, + `adresse` int(11) NOT NULL DEFAULT 0, + `abweichende_rechnungsadresse` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_accounts` -- +DROP TABLE IF EXISTS `adresse_accounts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_accounts` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `adresse` int(11) DEFAULT NULL, - `bezeichnung` varchar(128) DEFAULT NULL, - `art` varchar(128) DEFAULT NULL, - `url` text NOT NULL, - `benutzername` text NOT NULL, - `passwort` text NOT NULL, - `webid` int(11) NOT NULL DEFAULT '0', - `gueltig_ab` date DEFAULT NULL, - `gueltig_bis` date DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_accounts` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `adresse` int(11) DEFAULT NULL, + `bezeichnung` varchar(128) DEFAULT NULL, + `art` varchar(128) DEFAULT NULL, + `url` text NOT NULL, + `benutzername` text NOT NULL, + `passwort` text NOT NULL, + `webid` int(11) NOT NULL DEFAULT 0, + `gueltig_ab` date DEFAULT NULL, + `gueltig_bis` date DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_filter` -- +DROP TABLE IF EXISTS `adresse_filter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_filter` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `ansprechpartner` tinyint(1) NOT NULL DEFAULT '0', - `user` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_filter` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `ansprechpartner` tinyint(1) NOT NULL DEFAULT 0, + `user` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_filter_gruppen` -- +DROP TABLE IF EXISTS `adresse_filter_gruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_filter_gruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `filter` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `parent` int(11) NOT NULL DEFAULT '0', - `isand` tinyint(1) NOT NULL DEFAULT '1', - `isnot` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `filter` (`filter`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_filter_gruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `filter` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `parent` int(11) NOT NULL DEFAULT 0, + `isand` tinyint(1) NOT NULL DEFAULT 1, + `isnot` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `filter` (`filter`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_filter_positionen` -- +DROP TABLE IF EXISTS `adresse_filter_positionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_filter_positionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `filter` int(11) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - `typ` varchar(32) NOT NULL DEFAULT '', - `typ2` varchar(32) NOT NULL DEFAULT '', - `isand` tinyint(1) NOT NULL DEFAULT '0', - `isnot` tinyint(1) NOT NULL DEFAULT '0', - `parameter1` varchar(64) NOT NULL DEFAULT '', - `parameter2` varchar(64) NOT NULL DEFAULT '', - `parameter3` varchar(64) NOT NULL DEFAULT '', - `sort` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `filter` (`filter`), - KEY `gruppe` (`gruppe`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_filter_positionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `filter` int(11) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + `typ` varchar(32) NOT NULL, + `typ2` varchar(32) NOT NULL, + `isand` tinyint(1) NOT NULL DEFAULT 0, + `isnot` tinyint(1) NOT NULL DEFAULT 0, + `parameter1` varchar(64) NOT NULL, + `parameter2` varchar(64) NOT NULL, + `parameter3` varchar(64) NOT NULL, + `sort` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `filter` (`filter`), + KEY `gruppe` (`gruppe`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_import` -- +DROP TABLE IF EXISTS `adresse_import`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_import` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `typ` varchar(20) NOT NULL DEFAULT '', - `name` varchar(255) NOT NULL DEFAULT '', - `ansprechpartner` varchar(255) NOT NULL DEFAULT '', - `abteilung` varchar(255) NOT NULL DEFAULT '', - `unterabteilung` varchar(255) NOT NULL DEFAULT '', - `adresszusatz` varchar(255) NOT NULL DEFAULT '', - `strasse` varchar(255) NOT NULL DEFAULT '', - `plz` varchar(64) DEFAULT NULL, - `ort` varchar(255) NOT NULL DEFAULT '', - `land` varchar(64) DEFAULT NULL, - `telefon` varchar(128) DEFAULT NULL, - `telefax` varchar(128) DEFAULT NULL, - `email` varchar(128) DEFAULT NULL, - `mobil` varchar(64) DEFAULT NULL, - `internetseite` varchar(255) NOT NULL DEFAULT '', - `ustid` varchar(64) DEFAULT NULL, - `user` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `angelegt_am` datetime DEFAULT NULL, - `abgeschlossen` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_import` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `typ` varchar(20) NOT NULL, + `name` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `plz` varchar(64) DEFAULT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(64) DEFAULT NULL, + `telefon` varchar(128) DEFAULT NULL, + `telefax` varchar(128) DEFAULT NULL, + `email` varchar(128) DEFAULT NULL, + `mobil` varchar(64) DEFAULT NULL, + `internetseite` varchar(255) NOT NULL, + `ustid` varchar(64) DEFAULT NULL, + `user` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `angelegt_am` datetime DEFAULT NULL, + `abgeschlossen` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_kontakhistorie` -- +DROP TABLE IF EXISTS `adresse_kontakhistorie`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_kontakhistorie` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `adresse` int(10) NOT NULL, - `grund` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `datum` datetime NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_kontakhistorie` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `adresse` int(10) NOT NULL, + `grund` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `datum` datetime NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_kontakte` -- +DROP TABLE IF EXISTS `adresse_kontakte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_kontakte` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) DEFAULT NULL, - `bezeichnung` varchar(1024) DEFAULT NULL, - `kontakt` varchar(1024) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_kontakte` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) DEFAULT NULL, + `bezeichnung` varchar(1024) DEFAULT NULL, + `kontakt` varchar(1024) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_rolle` -- +DROP TABLE IF EXISTS `adresse_rolle`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_rolle` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `adresse` int(10) NOT NULL, - `projekt` int(11) NOT NULL, - `subjekt` varchar(255) NOT NULL, - `praedikat` varchar(255) NOT NULL, - `objekt` varchar(255) NOT NULL, - `parameter` varchar(255) NOT NULL, - `von` date NOT NULL, - `bis` date NOT NULL, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`), - KEY `projekt` (`projekt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_rolle` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `adresse` int(10) NOT NULL, + `projekt` int(11) NOT NULL, + `subjekt` varchar(255) NOT NULL, + `praedikat` varchar(255) NOT NULL, + `objekt` varchar(255) NOT NULL, + `parameter` varchar(255) NOT NULL, + `von` date NOT NULL, + `bis` date NOT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`), + KEY `projekt` (`projekt`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adresse_typ` -- +DROP TABLE IF EXISTS `adresse_typ`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adresse_typ` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(255) NOT NULL DEFAULT '', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `netto` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adresse_typ` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `type` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `netto` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `adressetiketten` -- +DROP TABLE IF EXISTS `adressetiketten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `adressetiketten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `etikett` int(11) NOT NULL DEFAULT '0', - `verwenden_als` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `adressetiketten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `etikett` int(11) NOT NULL DEFAULT 0, + `verwenden_als` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `aktionscode_liste` -- +DROP TABLE IF EXISTS `aktionscode_liste`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `aktionscode_liste` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `code` varchar(16) NOT NULL DEFAULT '', - `beschriftung` varchar(64) NOT NULL DEFAULT '', - `ausblenden` tinyint(1) NOT NULL DEFAULT '0', - `bemerkung` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `aktionscode_liste` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `code` varchar(16) NOT NULL, + `beschriftung` varchar(64) NOT NULL, + `ausblenden` tinyint(1) NOT NULL DEFAULT 0, + `bemerkung` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amainvoice_config` -- +DROP TABLE IF EXISTS `amainvoice_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amainvoice_config` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `value` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amainvoice_config` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `value` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `name` (`name`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amainvoice_files` -- +DROP TABLE IF EXISTS `amainvoice_files`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amainvoice_files` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `filename` varchar(255) NOT NULL DEFAULT '', - `type` varchar(32) NOT NULL DEFAULT '', - `status` varchar(32) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `filename` (`filename`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amainvoice_files` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `filename` varchar(255) NOT NULL, + `type` varchar(32) NOT NULL, + `status` varchar(32) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `filename` (`filename`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazon_article` -- +DROP TABLE IF EXISTS `amazon_article`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazon_article` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `article_id` int(11) NOT NULL DEFAULT '0', - `seller_sku` varchar(255) NOT NULL DEFAULT '', - `asin` varchar(16) NOT NULL DEFAULT '', - `is_fba` tinyint(4) NOT NULL DEFAULT '-1', - `last_check` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `article_id` (`article_id`), - KEY `seller_sku` (`seller_sku`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazon_article` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `article_id` int(11) NOT NULL DEFAULT 0, + `seller_sku` varchar(255) NOT NULL, + `asin` varchar(16) NOT NULL, + `is_fba` tinyint(4) NOT NULL DEFAULT -1, + `last_check` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `article_id` (`article_id`), + KEY `seller_sku` (`seller_sku`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazon_rechnung_anlegen` -- +DROP TABLE IF EXISTS `amazon_rechnung_anlegen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazon_rechnung_anlegen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopid` int(11) NOT NULL DEFAULT '0', - `auftrag` int(11) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `status` tinyint(1) NOT NULL DEFAULT '0', - `fba` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shopid` (`shopid`,`auftrag`,`status`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazon_rechnung_anlegen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopid` int(11) NOT NULL DEFAULT 0, + `auftrag` int(11) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `status` tinyint(1) NOT NULL DEFAULT 0, + `fba` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shopid` (`shopid`,`auftrag`,`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazon_report` -- +DROP TABLE IF EXISTS `amazon_report`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazon_report` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) DEFAULT '0', - `reportid` varchar(32) DEFAULT '', - `requestreportid` varchar(32) DEFAULT '', - `reporttype` varchar(255) DEFAULT '', - `marketplaces` varchar(255) DEFAULT '', - `requesttype` varchar(64) DEFAULT '', - `report_processing_status` varchar(255) DEFAULT '_DONE_', - `imported` tinyint(1) DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `startdate` datetime DEFAULT NULL, - `enddate` datetime DEFAULT NULL, - `liveimported` tinyint(1) DEFAULT '0', - `createreturnorders` tinyint(1) DEFAULT '0', - `lastchecked` datetime DEFAULT NULL, - `report_options` varchar(255) DEFAULT '', - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`,`reportid`), - KEY `reporttype` (`reporttype`), - KEY `requestreportid` (`requestreportid`), - KEY `created_at` (`created_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazon_report` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) DEFAULT 0, + `reportid` varchar(32) DEFAULT NULL, + `requestreportid` varchar(32) DEFAULT NULL, + `reporttype` varchar(255) DEFAULT NULL, + `marketplaces` varchar(255) DEFAULT NULL, + `requesttype` varchar(64) DEFAULT NULL, + `report_processing_status` varchar(255) DEFAULT '_done_', + `imported` tinyint(1) DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `startdate` datetime DEFAULT NULL, + `enddate` datetime DEFAULT NULL, + `liveimported` tinyint(1) DEFAULT 0, + `createreturnorders` tinyint(1) DEFAULT 0, + `lastchecked` datetime DEFAULT NULL, + `report_options` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`,`reportid`), + KEY `reporttype` (`reporttype`), + KEY `requestreportid` (`requestreportid`), + KEY `created_at` (`created_at`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazon_report_schedule` -- +DROP TABLE IF EXISTS `amazon_report_schedule`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazon_report_schedule` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) unsigned NOT NULL DEFAULT '0', - `report_type` varchar(64) NOT NULL DEFAULT '', - `schedule` varchar(12) NOT NULL DEFAULT '', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `scheduled_date` timestamp NULL DEFAULT NULL, - `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `shop_id` (`shop_id`,`report_type`,`schedule`,`scheduled_date`,`deleted`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazon_report_schedule` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) unsigned NOT NULL DEFAULT 0, + `report_type` varchar(64) NOT NULL, + `schedule` varchar(12) NOT NULL, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + `scheduled_date` timestamp NULL DEFAULT NULL, + `deleted` tinyint(1) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `shop_id` (`shop_id`,`report_type`,`schedule`,`scheduled_date`,`deleted`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazon_shipment_info` -- +DROP TABLE IF EXISTS `amazon_shipment_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazon_shipment_info` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `orderid` varchar(19) NOT NULL DEFAULT '', - `orderitemid` varchar(32) NOT NULL DEFAULT '', - `merchantorderid` varchar(32) NOT NULL DEFAULT '', - `merchantorderitemid` varchar(32) NOT NULL DEFAULT '', - `shipmentitemid` varchar(32) NOT NULL DEFAULT '', - `sku` varchar(255) NOT NULL DEFAULT '', - `carrier` varchar(32) NOT NULL DEFAULT '', - `currency` varchar(8) NOT NULL DEFAULT '', - `tracking_number` varchar(32) NOT NULL DEFAULT '', - `sales_channel` varchar(32) NOT NULL DEFAULT '', - `fulfillment_channel` varchar(32) NOT NULL DEFAULT '', - `fulfillment_center_id` varchar(32) NOT NULL DEFAULT '', - `quantity_shipped` int(11) NOT NULL DEFAULT '0', - `shipment_date` datetime DEFAULT NULL, - `estimated_arrival_date` datetime DEFAULT NULL, - `ship_address_1` varchar(255) NOT NULL DEFAULT '', - `ship_address_2` varchar(255) NOT NULL DEFAULT '', - `ship_address_3` varchar(255) NOT NULL DEFAULT '', - `ship_city` varchar(255) NOT NULL DEFAULT '', - `ship_state` varchar(255) NOT NULL DEFAULT '', - `ship_postal_code` varchar(255) NOT NULL DEFAULT '', - `ship_country` varchar(255) NOT NULL DEFAULT '', - `ship_phone_number` varchar(255) NOT NULL DEFAULT '', - `bill_address_1` varchar(255) NOT NULL DEFAULT '', - `bill_address_2` varchar(255) NOT NULL DEFAULT '', - `bill_address_3` varchar(255) NOT NULL DEFAULT '', - `bill_city` varchar(255) NOT NULL DEFAULT '', - `bill_state` varchar(255) NOT NULL DEFAULT '', - `bill_postal_code` varchar(255) NOT NULL DEFAULT '', - `bill_country` varchar(255) NOT NULL DEFAULT '', - `recipient_name` varchar(255) NOT NULL DEFAULT '', - `buyer_name` varchar(255) NOT NULL DEFAULT '', - `item_price` decimal(10,2) DEFAULT NULL, - `item_tax` decimal(10,2) DEFAULT NULL, - `shipping_price` decimal(10,2) DEFAULT NULL, - `shipping_tax` decimal(10,2) DEFAULT NULL, - `gift_wrap_price` decimal(10,2) DEFAULT NULL, - `gift_wrap_tax` decimal(10,2) DEFAULT NULL, - `item_promotion_discount` decimal(10,2) DEFAULT NULL, - `ship_promotion_discount` decimal(10,2) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `orderid` (`orderid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazon_shipment_info` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `orderid` varchar(19) NOT NULL, + `orderitemid` varchar(32) NOT NULL, + `merchantorderid` varchar(32) NOT NULL, + `merchantorderitemid` varchar(32) NOT NULL, + `shipmentitemid` varchar(32) NOT NULL, + `sku` varchar(255) NOT NULL, + `carrier` varchar(32) NOT NULL, + `currency` varchar(8) NOT NULL, + `tracking_number` varchar(32) NOT NULL, + `sales_channel` varchar(32) NOT NULL, + `fulfillment_channel` varchar(32) NOT NULL, + `fulfillment_center_id` varchar(32) NOT NULL, + `quantity_shipped` int(11) NOT NULL DEFAULT 0, + `shipment_date` datetime DEFAULT NULL, + `estimated_arrival_date` datetime DEFAULT NULL, + `ship_address_1` varchar(255) NOT NULL, + `ship_address_2` varchar(255) NOT NULL, + `ship_address_3` varchar(255) NOT NULL, + `ship_city` varchar(255) NOT NULL, + `ship_state` varchar(255) NOT NULL, + `ship_postal_code` varchar(255) NOT NULL, + `ship_country` varchar(255) NOT NULL, + `ship_phone_number` varchar(255) NOT NULL, + `bill_address_1` varchar(255) NOT NULL, + `bill_address_2` varchar(255) NOT NULL, + `bill_address_3` varchar(255) NOT NULL, + `bill_city` varchar(255) NOT NULL, + `bill_state` varchar(255) NOT NULL, + `bill_postal_code` varchar(255) NOT NULL, + `bill_country` varchar(255) NOT NULL, + `recipient_name` varchar(255) NOT NULL, + `buyer_name` varchar(255) NOT NULL, + `item_price` decimal(10,2) DEFAULT NULL, + `item_tax` decimal(10,2) DEFAULT NULL, + `shipping_price` decimal(10,2) DEFAULT NULL, + `shipping_tax` decimal(10,2) DEFAULT NULL, + `gift_wrap_price` decimal(10,2) DEFAULT NULL, + `gift_wrap_tax` decimal(10,2) DEFAULT NULL, + `item_promotion_discount` decimal(10,2) DEFAULT NULL, + `ship_promotion_discount` decimal(10,2) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `orderid` (`orderid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazon_vat_report` -- +DROP TABLE IF EXISTS `amazon_vat_report`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazon_vat_report` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) unsigned NOT NULL DEFAULT '0', - `orderid` varchar(19) NOT NULL DEFAULT '', - `sku` varchar(64) NOT NULL DEFAULT '', - `transaction_type` varchar(8) NOT NULL DEFAULT '', - `fullrow` text, - `hash_sha1` varchar(40) NOT NULL DEFAULT '', - `hash_nr` int(11) NOT NULL DEFAULT '0', - `on_orderimport` tinyint(1) unsigned NOT NULL DEFAULT '0', - `order_changed` tinyint(1) unsigned NOT NULL DEFAULT '0', - `invoice_changed` tinyint(1) unsigned NOT NULL DEFAULT '0', - `credit_note_changed` tinyint(1) unsigned NOT NULL DEFAULT '0', - `invoice_created` tinyint(1) unsigned NOT NULL DEFAULT '0', - `credit_note_created` tinyint(1) unsigned NOT NULL DEFAULT '0', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `doctype_id` int(11) NOT NULL DEFAULT '0', - `position_id` int(11) NOT NULL DEFAULT '0', - `invoicenumber` varchar(64) NOT NULL DEFAULT '', - `shipment_date` date DEFAULT NULL, - `tax_calculation_date` date DEFAULT NULL, - `order_date` date DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `orderid` (`orderid`), - KEY `hash_sha1` (`hash_sha1`), - KEY `transaction_type` (`transaction_type`), - KEY `position_id` (`position_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazon_vat_report` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) unsigned NOT NULL DEFAULT 0, + `orderid` varchar(19) NOT NULL, + `sku` varchar(64) NOT NULL, + `transaction_type` varchar(8) NOT NULL, + `fullrow` text DEFAULT NULL, + `hash_sha1` varchar(40) NOT NULL, + `hash_nr` int(11) NOT NULL DEFAULT 0, + `on_orderimport` tinyint(1) unsigned NOT NULL DEFAULT 0, + `order_changed` tinyint(1) unsigned NOT NULL DEFAULT 0, + `invoice_changed` tinyint(1) unsigned NOT NULL DEFAULT 0, + `credit_note_changed` tinyint(1) unsigned NOT NULL DEFAULT 0, + `invoice_created` tinyint(1) unsigned NOT NULL DEFAULT 0, + `credit_note_created` tinyint(1) unsigned NOT NULL DEFAULT 0, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + `doctype_id` int(11) NOT NULL DEFAULT 0, + `position_id` int(11) NOT NULL DEFAULT 0, + `invoicenumber` varchar(64) NOT NULL, + `shipment_date` date DEFAULT NULL, + `tax_calculation_date` date DEFAULT NULL, + `order_date` date DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `orderid` (`orderid`), + KEY `hash_sha1` (`hash_sha1`), + KEY `transaction_type` (`transaction_type`), + KEY `position_id` (`position_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazon_vatinvoice` -- +DROP TABLE IF EXISTS `amazon_vatinvoice`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazon_vatinvoice` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopid` int(11) NOT NULL DEFAULT '0', - `orderid` varchar(255) NOT NULL DEFAULT '', - `vat_invoice_number` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `from_city` varchar(255) NOT NULL DEFAULT '', - `from_state` varchar(255) NOT NULL DEFAULT '', - `from_country` varchar(255) NOT NULL DEFAULT '', - `from_postal_code` varchar(255) NOT NULL DEFAULT '', - `from_location_code` varchar(255) NOT NULL DEFAULT '', - `seller_tax_registration` varchar(255) NOT NULL DEFAULT '', - `buyer_tax_registration` varchar(255) NOT NULL DEFAULT '', - `shipment_date` date DEFAULT NULL, - `isreturn` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shopid` (`shopid`,`orderid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazon_vatinvoice` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopid` int(11) NOT NULL DEFAULT 0, + `orderid` varchar(255) NOT NULL, + `vat_invoice_number` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `from_city` varchar(255) NOT NULL, + `from_state` varchar(255) NOT NULL, + `from_country` varchar(255) NOT NULL, + `from_postal_code` varchar(255) NOT NULL, + `from_location_code` varchar(255) NOT NULL, + `seller_tax_registration` varchar(255) NOT NULL, + `buyer_tax_registration` varchar(255) NOT NULL, + `shipment_date` date DEFAULT NULL, + `isreturn` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shopid` (`shopid`,`orderid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `amazoninvoice_position` -- +DROP TABLE IF EXISTS `amazoninvoice_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `amazoninvoice_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype` varchar(32) DEFAULT '', - `doctype_id` int(11) DEFAULT '0', - `position_id` int(11) DEFAULT '0', - `inv_rech_nr` varchar(255) DEFAULT '', - `inv_date` varchar(255) DEFAULT '', - `amazonorderid` varchar(255) DEFAULT '', - `shipmentdate` varchar(255) DEFAULT '', - `buyeremail` varchar(255) DEFAULT '', - `buyerphonenumber` varchar(255) DEFAULT '', - `buyername` varchar(255) DEFAULT '', - `sku` varchar(255) DEFAULT '', - `productname` varchar(255) DEFAULT '', - `quantitypurchased` varchar(255) DEFAULT '', - `quantityshipped` varchar(255) DEFAULT '', - `currency` varchar(255) DEFAULT '', - `mwst` varchar(255) DEFAULT '', - `taxrate` varchar(255) DEFAULT '', - `brutto_total` varchar(255) DEFAULT '', - `netto_total` varchar(255) DEFAULT '', - `tax_total` varchar(255) DEFAULT '', - `itemprice` varchar(255) DEFAULT '', - `itemprice_netto` varchar(255) DEFAULT '', - `itemprice_tax` varchar(255) DEFAULT '', - `shippingprice` varchar(255) DEFAULT '', - `shippingprice_netto` varchar(255) DEFAULT '', - `shippingprice_tax` varchar(255) DEFAULT '', - `giftwrapprice` varchar(255) DEFAULT '', - `giftwrapprice_netto` varchar(255) DEFAULT '', - `giftwrapprice_tax` varchar(255) DEFAULT '', - `itempromotiondiscount` varchar(255) DEFAULT '', - `itempromotiondiscount_netto` varchar(255) DEFAULT '', - `itempromotiondiscount_tax` varchar(255) DEFAULT '', - `shippromotiondiscount` varchar(255) DEFAULT '', - `shippromotiondiscount_netto` varchar(255) DEFAULT '', - `shippromotiondiscount_tax` varchar(255) DEFAULT '', - `giftwrappromotiondiscount` varchar(255) DEFAULT '', - `giftwrappromotiondiscount_netto` varchar(255) DEFAULT '', - `giftwrappromotiondiscount_tax` varchar(255) DEFAULT '', - `shipservicelevel` varchar(255) DEFAULT '', - `recipientname` varchar(255) DEFAULT '', - `shipaddress1` varchar(255) DEFAULT '', - `shipaddress2` varchar(255) DEFAULT '', - `shipaddress3` varchar(255) DEFAULT '', - `shipcity` varchar(255) DEFAULT '', - `shipstate` varchar(255) DEFAULT '', - `shippostalcode` varchar(255) DEFAULT '', - `shipcountry` varchar(255) DEFAULT '', - `shipphonenumber` varchar(255) DEFAULT '', - `billaddress1` varchar(255) DEFAULT '', - `billaddress2` varchar(255) DEFAULT '', - `billaddress3` varchar(255) DEFAULT '', - `billcity` varchar(255) DEFAULT '', - `billstate` varchar(255) DEFAULT '', - `billpostalcode` varchar(255) DEFAULT '', - `billcountry` varchar(255) DEFAULT '', - `carrier` varchar(255) DEFAULT '', - `trackingnumber` varchar(255) DEFAULT '', - `fulfillmentcenterid` varchar(255) DEFAULT '', - `fulfillmentchannel` varchar(255) DEFAULT '', - `saleschannel` varchar(255) DEFAULT '', - `asin` varchar(255) DEFAULT '', - `conditiontype` varchar(255) DEFAULT '', - `quantityavailable` varchar(255) DEFAULT '', - `isbusinessorder` varchar(255) DEFAULT '', - `uid` varchar(255) DEFAULT '', - `vatcheck` varchar(255) DEFAULT '', - `documentlink` varchar(255) DEFAULT '', - `order_id` int(11) DEFAULT '0', - `rem_gs_nr` varchar(255) DEFAULT '', - `orderid` varchar(255) DEFAULT '', - `rem_date` varchar(255) DEFAULT '', - `returndate` varchar(255) DEFAULT '', - `buyercompanyname` varchar(255) DEFAULT '', - `quantity` varchar(255) DEFAULT '', - `remreturnshipcost` varchar(255) DEFAULT '', - `remsondererstattung` varchar(255) DEFAULT '', - `itempromotionid` varchar(255) DEFAULT '', - `reason` varchar(255) DEFAULT '', - `rem_gs_nr_real` varchar(255) DEFAULT '', - `create` tinyint(1) DEFAULT '0', - `create_order` tinyint(1) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `amazoninvoice_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype` varchar(32) DEFAULT NULL, + `doctype_id` int(11) DEFAULT 0, + `position_id` int(11) DEFAULT 0, + `inv_rech_nr` varchar(255) DEFAULT NULL, + `inv_date` varchar(255) DEFAULT NULL, + `amazonorderid` varchar(255) DEFAULT NULL, + `shipmentdate` varchar(255) DEFAULT NULL, + `buyeremail` varchar(255) DEFAULT NULL, + `buyerphonenumber` varchar(255) DEFAULT NULL, + `buyername` varchar(255) DEFAULT NULL, + `sku` varchar(255) DEFAULT NULL, + `productname` varchar(255) DEFAULT NULL, + `quantitypurchased` varchar(255) DEFAULT NULL, + `quantityshipped` varchar(255) DEFAULT NULL, + `currency` varchar(255) DEFAULT NULL, + `mwst` varchar(255) DEFAULT NULL, + `taxrate` varchar(255) DEFAULT NULL, + `brutto_total` varchar(255) DEFAULT NULL, + `netto_total` varchar(255) DEFAULT NULL, + `tax_total` varchar(255) DEFAULT NULL, + `itemprice` varchar(255) DEFAULT NULL, + `itemprice_netto` varchar(255) DEFAULT NULL, + `itemprice_tax` varchar(255) DEFAULT NULL, + `shippingprice` varchar(255) DEFAULT NULL, + `shippingprice_netto` varchar(255) DEFAULT NULL, + `shippingprice_tax` varchar(255) DEFAULT NULL, + `giftwrapprice` varchar(255) DEFAULT NULL, + `giftwrapprice_netto` varchar(255) DEFAULT NULL, + `giftwrapprice_tax` varchar(255) DEFAULT NULL, + `itempromotiondiscount` varchar(255) DEFAULT NULL, + `itempromotiondiscount_netto` varchar(255) DEFAULT NULL, + `itempromotiondiscount_tax` varchar(255) DEFAULT NULL, + `shippromotiondiscount` varchar(255) DEFAULT NULL, + `shippromotiondiscount_netto` varchar(255) DEFAULT NULL, + `shippromotiondiscount_tax` varchar(255) DEFAULT NULL, + `giftwrappromotiondiscount` varchar(255) DEFAULT NULL, + `giftwrappromotiondiscount_netto` varchar(255) DEFAULT NULL, + `giftwrappromotiondiscount_tax` varchar(255) DEFAULT NULL, + `shipservicelevel` varchar(255) DEFAULT NULL, + `recipientname` varchar(255) DEFAULT NULL, + `shipaddress1` varchar(255) DEFAULT NULL, + `shipaddress2` varchar(255) DEFAULT NULL, + `shipaddress3` varchar(255) DEFAULT NULL, + `shipcity` varchar(255) DEFAULT NULL, + `shipstate` varchar(255) DEFAULT NULL, + `shippostalcode` varchar(255) DEFAULT NULL, + `shipcountry` varchar(255) DEFAULT NULL, + `shipphonenumber` varchar(255) DEFAULT NULL, + `billaddress1` varchar(255) DEFAULT NULL, + `billaddress2` varchar(255) DEFAULT NULL, + `billaddress3` varchar(255) DEFAULT NULL, + `billcity` varchar(255) DEFAULT NULL, + `billstate` varchar(255) DEFAULT NULL, + `billpostalcode` varchar(255) DEFAULT NULL, + `billcountry` varchar(255) DEFAULT NULL, + `carrier` varchar(255) DEFAULT NULL, + `trackingnumber` varchar(255) DEFAULT NULL, + `fulfillmentcenterid` varchar(255) DEFAULT NULL, + `fulfillmentchannel` varchar(255) DEFAULT NULL, + `saleschannel` varchar(255) DEFAULT NULL, + `asin` varchar(255) DEFAULT NULL, + `conditiontype` varchar(255) DEFAULT NULL, + `quantityavailable` varchar(255) DEFAULT NULL, + `isbusinessorder` varchar(255) DEFAULT NULL, + `uid` varchar(255) DEFAULT NULL, + `vatcheck` varchar(255) DEFAULT NULL, + `documentlink` varchar(255) DEFAULT NULL, + `order_id` int(11) DEFAULT 0, + `rem_gs_nr` varchar(255) DEFAULT NULL, + `orderid` varchar(255) DEFAULT NULL, + `rem_date` varchar(255) DEFAULT NULL, + `returndate` varchar(255) DEFAULT NULL, + `buyercompanyname` varchar(255) DEFAULT NULL, + `quantity` varchar(255) DEFAULT NULL, + `remreturnshipcost` varchar(255) DEFAULT NULL, + `remsondererstattung` varchar(255) DEFAULT NULL, + `itempromotionid` varchar(255) DEFAULT NULL, + `reason` varchar(255) DEFAULT NULL, + `rem_gs_nr_real` varchar(255) DEFAULT NULL, + `create` tinyint(1) DEFAULT 0, + `create_order` tinyint(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `anfrage` -- +DROP TABLE IF EXISTS `anfrage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `anfrage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `projekt` varchar(255) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `auftrag` varchar(255) NOT NULL, - `auftragid` int(11) NOT NULL, - `freitext` text NOT NULL, - `status` varchar(255) NOT NULL, - `adresse` int(11) NOT NULL, - `mitarbeiter` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(255) NOT NULL, - `versandart` varchar(255) NOT NULL, - `versand` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `inbearbeitung_user` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `ohne_briefpapier` int(1) DEFAULT NULL, - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `vertriebid` int(11) DEFAULT NULL, - `bearbeiterid` int(11) DEFAULT NULL, - `aktion` varchar(64) NOT NULL DEFAULT '', - `vertrieb` varchar(255) NOT NULL DEFAULT '', - `anschreiben` varchar(255) DEFAULT NULL, - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `realrabatt` decimal(10,2) DEFAULT NULL, - `rabatt` decimal(10,2) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `typ` varchar(16) DEFAULT NULL, - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `internebemerkung` text, - `sprache` varchar(32) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; +CREATE TABLE `anfrage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `projekt` varchar(255) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `auftrag` varchar(255) NOT NULL, + `auftragid` int(11) NOT NULL, + `freitext` text NOT NULL, + `status` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL, + `mitarbeiter` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(255) NOT NULL, + `versandart` varchar(255) NOT NULL, + `versand` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `inbearbeitung_user` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `ohne_briefpapier` int(1) DEFAULT NULL, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `vertriebid` int(11) DEFAULT NULL, + `bearbeiterid` int(11) DEFAULT NULL, + `aktion` varchar(64) NOT NULL, + `vertrieb` varchar(255) NOT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `realrabatt` decimal(10,2) DEFAULT NULL, + `rabatt` decimal(10,2) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `typ` varchar(16) DEFAULT NULL, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `internebemerkung` text DEFAULT NULL, + `sprache` varchar(32) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `bundesstaat` varchar(32) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `anfrage_position` -- +DROP TABLE IF EXISTS `anfrage_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `anfrage_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `anfrage` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `nummer` varchar(255) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `menge` float NOT NULL, - `sort` int(10) NOT NULL, - `bemerkung` text NOT NULL, - `preis` decimal(10,4) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(255) DEFAULT NULL, - `grundrabatt` decimal(10,2) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `rabattsync` int(1) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `geliefert` decimal(14,4) NOT NULL, - `vpe` varchar(255) NOT NULL DEFAULT '', - `einheit` varchar(255) NOT NULL DEFAULT '', - `lieferdatum` date DEFAULT NULL, - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `anfrage` (`anfrage`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; +CREATE TABLE `anfrage_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `anfrage` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `nummer` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `menge` float NOT NULL, + `sort` int(10) NOT NULL, + `bemerkung` text NOT NULL, + `preis` decimal(10,4) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(255) DEFAULT NULL, + `grundrabatt` decimal(10,2) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `rabattsync` int(1) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `geliefert` decimal(14,4) NOT NULL, + `vpe` varchar(255) NOT NULL, + `einheit` varchar(255) NOT NULL, + `lieferdatum` date DEFAULT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `anfrage` (`anfrage`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `anfrage_protokoll` -- +DROP TABLE IF EXISTS `anfrage_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `anfrage_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `anfrage` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `anfrage` (`anfrage`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; +CREATE TABLE `anfrage_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `anfrage` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `anfrage` (`anfrage`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `angebot` -- +DROP TABLE IF EXISTS `angebot`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `angebot` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `gueltigbis` date NOT NULL, - `projekt` varchar(222) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `anfrage` varchar(255) NOT NULL, - `auftrag` varchar(255) NOT NULL, - `freitext` text NOT NULL, - `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `retyp` varchar(255) NOT NULL, - `rechnungname` varchar(255) NOT NULL, - `retelefon` varchar(255) NOT NULL, - `reansprechpartner` varchar(255) NOT NULL, - `retelefax` varchar(255) NOT NULL, - `reabteilung` varchar(255) NOT NULL, - `reemail` varchar(255) NOT NULL, - `reunterabteilung` varchar(255) NOT NULL, - `readresszusatz` varchar(255) NOT NULL, - `restrasse` varchar(255) NOT NULL, - `replz` varchar(255) NOT NULL, - `reort` varchar(255) NOT NULL, - `reland` varchar(255) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(64) DEFAULT NULL, - `versandart` varchar(255) NOT NULL, - `vertrieb` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` decimal(10,2) NOT NULL, - `gesamtsumme` decimal(18,4) NOT NULL DEFAULT '0.0000', - `bank_inhaber` varchar(255) NOT NULL, - `bank_institut` varchar(255) NOT NULL, - `bank_blz` int(11) NOT NULL, - `bank_konto` int(11) NOT NULL, - `kreditkarte_typ` varchar(255) NOT NULL, - `kreditkarte_inhaber` varchar(255) NOT NULL, - `kreditkarte_nummer` varchar(255) NOT NULL, - `kreditkarte_pruefnummer` varchar(255) NOT NULL, - `kreditkarte_monat` int(11) NOT NULL, - `kreditkarte_jahr` int(11) NOT NULL, - `abweichendelieferadresse` int(1) NOT NULL, - `abweichenderechnungsadresse` int(1) NOT NULL, - `liefername` varchar(255) NOT NULL, - `lieferabteilung` varchar(255) NOT NULL, - `lieferunterabteilung` varchar(255) NOT NULL, - `lieferland` varchar(255) NOT NULL, - `lieferstrasse` varchar(255) NOT NULL, - `lieferort` varchar(255) NOT NULL, - `lieferplz` varchar(255) NOT NULL, - `lieferadresszusatz` varchar(255) NOT NULL, - `lieferansprechpartner` varchar(255) NOT NULL, - `liefertelefon` varchar(255) NOT NULL, - `liefertelefax` varchar(255) NOT NULL, - `liefermail` varchar(255) NOT NULL, - `autoversand` int(1) NOT NULL, - `keinporto` int(1) NOT NULL, - `gesamtsummeausblenden` tinyint(1) NOT NULL, - `ust_befreit` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `inbearbeitung` int(1) NOT NULL, - `vermerk` text NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `ansprechpartner` varchar(255) DEFAULT NULL, - `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT '0', - `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `erloes_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `umsatz_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `lieferdatum` date DEFAULT NULL, - `vertriebid` int(11) DEFAULT NULL, - `aktion` varchar(64) NOT NULL DEFAULT '', - `provision` decimal(10,2) DEFAULT NULL, - `provision_summe` decimal(18,2) NOT NULL DEFAULT '0.00', - `keinsteuersatz` int(1) DEFAULT NULL, - `anfrageid` int(11) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `realrabatt` decimal(10,2) DEFAULT NULL, - `rabatt` decimal(10,2) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `ohne_briefpapier` int(1) DEFAULT NULL, - `auftragid` int(11) NOT NULL DEFAULT '0', - `lieferid` int(11) NOT NULL DEFAULT '0', - `ansprechpartnerid` int(11) NOT NULL DEFAULT '0', - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT '0', - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `kopievon` int(11) NOT NULL DEFAULT '0', - `kopienummer` int(11) NOT NULL DEFAULT '0', - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `sprache` varchar(32) NOT NULL DEFAULT '', - `liefergln` varchar(64) NOT NULL DEFAULT '', - `lieferemail` varchar(200) NOT NULL DEFAULT '', - `gln` varchar(64) NOT NULL DEFAULT '', - `planedorderdate` date DEFAULT NULL, - `bearbeiterid` int(11) DEFAULT NULL, - `kurs` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `ohne_artikeltext` int(1) DEFAULT NULL, - `anzeigesteuer` tinyint(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `liefertitel` varchar(64) NOT NULL DEFAULT '', - `standardlager` int(11) NOT NULL DEFAULT '0', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontoberechnet` tinyint(1) NOT NULL DEFAULT '0', - `shop` int(1) NOT NULL DEFAULT '0', - `internet` varchar(255) NOT NULL DEFAULT '', - `transaktionsnummer` varchar(255) NOT NULL DEFAULT '', - `packstation_inhaber` varchar(255) NOT NULL DEFAULT '', - `packstation_station` varchar(255) NOT NULL DEFAULT '', - `packstation_ident` varchar(255) NOT NULL DEFAULT '', - `packstation_plz` varchar(64) NOT NULL DEFAULT '', - `packstation_ort` varchar(255) NOT NULL DEFAULT '', - `shopextid` varchar(1024) NOT NULL DEFAULT '', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `lieferbundesstaat` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`), - KEY `adresse` (`adresse`), - KEY `vertriebid` (`vertriebid`), - KEY `status` (`status`), - KEY `datum` (`datum`), - KEY `belegnr` (`belegnr`), - KEY `versandart` (`versandart`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `angebot` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `gueltigbis` date NOT NULL, + `projekt` varchar(222) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `anfrage` varchar(255) NOT NULL, + `auftrag` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `internebemerkung` text NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `retyp` varchar(255) NOT NULL, + `rechnungname` varchar(255) NOT NULL, + `retelefon` varchar(255) NOT NULL, + `reansprechpartner` varchar(255) NOT NULL, + `retelefax` varchar(255) NOT NULL, + `reabteilung` varchar(255) NOT NULL, + `reemail` varchar(255) NOT NULL, + `reunterabteilung` varchar(255) NOT NULL, + `readresszusatz` varchar(255) NOT NULL, + `restrasse` varchar(255) NOT NULL, + `replz` varchar(255) NOT NULL, + `reort` varchar(255) NOT NULL, + `reland` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(64) DEFAULT NULL, + `versandart` varchar(255) NOT NULL, + `vertrieb` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` decimal(10,2) NOT NULL, + `gesamtsumme` decimal(18,4) NOT NULL DEFAULT 0.0000, + `bank_inhaber` varchar(255) NOT NULL, + `bank_institut` varchar(255) NOT NULL, + `bank_blz` int(11) NOT NULL, + `bank_konto` int(11) NOT NULL, + `kreditkarte_typ` varchar(255) NOT NULL, + `kreditkarte_inhaber` varchar(255) NOT NULL, + `kreditkarte_nummer` varchar(255) NOT NULL, + `kreditkarte_pruefnummer` varchar(255) NOT NULL, + `kreditkarte_monat` int(11) NOT NULL, + `kreditkarte_jahr` int(11) NOT NULL, + `abweichendelieferadresse` int(1) NOT NULL, + `abweichenderechnungsadresse` int(1) NOT NULL, + `liefername` varchar(255) NOT NULL, + `lieferabteilung` varchar(255) NOT NULL, + `lieferunterabteilung` varchar(255) NOT NULL, + `lieferland` varchar(255) NOT NULL, + `lieferstrasse` varchar(255) NOT NULL, + `lieferort` varchar(255) NOT NULL, + `lieferplz` varchar(255) NOT NULL, + `lieferadresszusatz` varchar(255) NOT NULL, + `lieferansprechpartner` varchar(255) NOT NULL, + `liefertelefon` varchar(255) NOT NULL, + `liefertelefax` varchar(255) NOT NULL, + `liefermail` varchar(255) NOT NULL, + `autoversand` int(1) NOT NULL, + `keinporto` int(1) NOT NULL, + `gesamtsummeausblenden` tinyint(1) NOT NULL, + `ust_befreit` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `inbearbeitung` int(1) NOT NULL, + `vermerk` text NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `ansprechpartner` varchar(255) DEFAULT NULL, + `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT 0, + `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `erloes_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `umsatz_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `lieferdatum` date DEFAULT NULL, + `vertriebid` int(11) DEFAULT NULL, + `aktion` varchar(64) NOT NULL, + `provision` decimal(10,2) DEFAULT NULL, + `provision_summe` decimal(18,2) NOT NULL DEFAULT 0.00, + `keinsteuersatz` int(1) DEFAULT NULL, + `anfrageid` int(11) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `realrabatt` decimal(10,2) DEFAULT NULL, + `rabatt` decimal(10,2) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `ohne_briefpapier` int(1) DEFAULT NULL, + `auftragid` int(11) NOT NULL DEFAULT 0, + `lieferid` int(11) NOT NULL DEFAULT 0, + `ansprechpartnerid` int(11) NOT NULL DEFAULT 0, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT 0, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `angelegtam` datetime DEFAULT NULL, + `kopievon` int(11) NOT NULL DEFAULT 0, + `kopienummer` int(11) NOT NULL DEFAULT 0, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `sprache` varchar(32) NOT NULL, + `liefergln` varchar(64) NOT NULL, + `lieferemail` varchar(200) NOT NULL, + `gln` varchar(64) NOT NULL, + `planedorderdate` date DEFAULT NULL, + `bearbeiterid` int(11) DEFAULT NULL, + `kurs` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `ohne_artikeltext` int(1) DEFAULT NULL, + `anzeigesteuer` tinyint(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `liefertitel` varchar(64) NOT NULL, + `standardlager` int(11) NOT NULL DEFAULT 0, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontoberechnet` tinyint(1) NOT NULL DEFAULT 0, + `shop` int(1) NOT NULL DEFAULT 0, + `internet` varchar(255) NOT NULL, + `transaktionsnummer` varchar(255) NOT NULL, + `packstation_inhaber` varchar(255) NOT NULL, + `packstation_station` varchar(255) NOT NULL, + `packstation_ident` varchar(255) NOT NULL, + `packstation_plz` varchar(64) NOT NULL, + `packstation_ort` varchar(255) NOT NULL, + `shopextid` varchar(1024) NOT NULL, + `bundesstaat` varchar(32) NOT NULL, + `lieferbundesstaat` varchar(32) NOT NULL, + `rabatteportofestschreiben` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`), + KEY `adresse` (`adresse`), + KEY `vertriebid` (`vertriebid`), + KEY `status` (`status`), + KEY `datum` (`datum`), + KEY `belegnr` (`belegnr`), + KEY `versandart` (`versandart`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `angebot_position` -- +DROP TABLE IF EXISTS `angebot_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `angebot_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `angebot` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `geliefert` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `punkte` decimal(10,2) NOT NULL, - `bonuspunkte` decimal(10,2) NOT NULL, - `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, - `keinrabatterlaubt` int(1) DEFAULT NULL, - `grundrabatt` decimal(10,2) DEFAULT NULL, - `rabattsync` int(1) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `einheit` varchar(255) NOT NULL DEFAULT '', - `optional` int(1) NOT NULL DEFAULT '0', - `rabatt` decimal(10,2) NOT NULL, - `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', - `herkunftsland` varchar(128) NOT NULL DEFAULT '0', - `artikelnummerkunde` varchar(128) NOT NULL DEFAULT '', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(1024) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `einkaufspreiswaehrung` varchar(8) NOT NULL DEFAULT '', - `einkaufspreis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisid` int(11) NOT NULL DEFAULT '0', - `ekwaehrung` varchar(8) NOT NULL DEFAULT '', - `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `formelmenge` varchar(255) NOT NULL DEFAULT '', - `formelpreis` varchar(255) NOT NULL DEFAULT '', - `ohnepreis` int(1) NOT NULL DEFAULT '0', - `textalternativpreis` varchar(50) NOT NULL DEFAULT '', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, - `steuerbetrag` decimal(14,4) DEFAULT NULL, - `skontosperre` tinyint(1) NOT NULL DEFAULT '0', - `berechnen_aus_teile` tinyint(1) DEFAULT '0', - `ausblenden_im_pdf` tinyint(1) DEFAULT '0', - `explodiert_parent` int(11) DEFAULT '0', - `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `angebot` (`angebot`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `angebot_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `angebot` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `geliefert` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `punkte` decimal(10,2) NOT NULL, + `bonuspunkte` decimal(10,2) NOT NULL, + `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, + `keinrabatterlaubt` int(1) DEFAULT NULL, + `grundrabatt` decimal(10,2) DEFAULT NULL, + `rabattsync` int(1) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `einheit` varchar(255) NOT NULL, + `optional` int(1) NOT NULL DEFAULT 0, + `rabatt` decimal(10,2) NOT NULL, + `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', + `herkunftsland` varchar(128) NOT NULL DEFAULT '0', + `artikelnummerkunde` varchar(128) NOT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `einkaufspreiswaehrung` varchar(8) NOT NULL, + `einkaufspreis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisid` int(11) NOT NULL DEFAULT 0, + `ekwaehrung` varchar(8) NOT NULL, + `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `formelmenge` varchar(255) NOT NULL, + `formelpreis` varchar(255) NOT NULL, + `ohnepreis` int(1) NOT NULL DEFAULT 0, + `textalternativpreis` varchar(50) NOT NULL, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, + `steuerbetrag` decimal(14,4) DEFAULT NULL, + `skontosperre` tinyint(1) NOT NULL DEFAULT 0, + `berechnen_aus_teile` tinyint(1) DEFAULT 0, + `ausblenden_im_pdf` tinyint(1) DEFAULT 0, + `explodiert_parent` int(11) DEFAULT 0, + `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `angebot` (`angebot`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `angebot_protokoll` -- +DROP TABLE IF EXISTS `angebot_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `angebot_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `angebot` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `angebot` (`angebot`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `angebot_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `angebot` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `angebot` (`angebot`) +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ansprechpartner` -- +DROP TABLE IF EXISTS `ansprechpartner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ansprechpartner` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `typ` varchar(255) NOT NULL, - `sprache` varchar(255) NOT NULL, - `name` varchar(255) NOT NULL, - `bereich` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `sonstiges` text NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `steuer` varchar(255) NOT NULL, - `adresse` int(10) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `mobil` varchar(64) DEFAULT NULL, - `titel` varchar(1024) DEFAULT NULL, - `anschreiben` varchar(1024) DEFAULT NULL, - `ansprechpartner_land` varchar(255) DEFAULT NULL, - `vorname` varchar(1024) DEFAULT NULL, - `geburtstag` date DEFAULT NULL, - `geburtstagkalender` tinyint(1) NOT NULL DEFAULT '0', - `geburtstagskarte` tinyint(1) NOT NULL DEFAULT '0', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `interne_bemerkung` varchar(1024) NOT NULL, - `marketingsperre` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ansprechpartner` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `typ` varchar(255) NOT NULL, + `sprache` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + `bereich` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `sonstiges` text NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `steuer` varchar(255) NOT NULL, + `adresse` int(10) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `mobil` varchar(64) DEFAULT NULL, + `titel` varchar(1024) DEFAULT NULL, + `anschreiben` varchar(1024) DEFAULT NULL, + `ansprechpartner_land` varchar(255) DEFAULT NULL, + `vorname` varchar(1024) DEFAULT NULL, + `geburtstag` date DEFAULT NULL, + `geburtstagkalender` tinyint(1) NOT NULL DEFAULT 0, + `geburtstagskarte` tinyint(1) NOT NULL DEFAULT 0, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `interne_bemerkung` varchar(1024) NOT NULL, + `marketingsperre` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ansprechpartner_gruppen` -- +DROP TABLE IF EXISTS `ansprechpartner_gruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ansprechpartner_gruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ansprechpartner` int(11) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ansprechpartner_gruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ansprechpartner` int(11) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `api_account` -- +DROP TABLE IF EXISTS `api_account`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `api_account` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(64) NOT NULL DEFAULT '', - `initkey` varchar(128) NOT NULL DEFAULT '', - `importwarteschlange_name` varchar(64) NOT NULL DEFAULT '', - `event_url` varchar(128) NOT NULL DEFAULT '', - `remotedomain` varchar(128) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `importwarteschlange` tinyint(1) NOT NULL DEFAULT '1', - `cleanutf8` tinyint(1) NOT NULL DEFAULT '1', - `uebertragung_account` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `permissions` text, - `is_legacy` tinyint(1) NOT NULL DEFAULT '0', - `ishtmltransformation` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `api_account` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(64) NOT NULL, + `initkey` varchar(128) NOT NULL, + `importwarteschlange_name` varchar(64) NOT NULL, + `event_url` varchar(128) NOT NULL, + `remotedomain` varchar(128) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `importwarteschlange` tinyint(1) NOT NULL DEFAULT 1, + `cleanutf8` tinyint(1) NOT NULL DEFAULT 1, + `uebertragung_account` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `permissions` text DEFAULT NULL, + `is_legacy` tinyint(1) NOT NULL DEFAULT 0, + `ishtmltransformation` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `api_keys` -- +DROP TABLE IF EXISTS `api_keys`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `api_keys` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `nonce` varchar(64) NOT NULL DEFAULT '', - `opaque` varchar(64) NOT NULL DEFAULT '', - `nonce_count` int(11) NOT NULL DEFAULT '1', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `api_keys` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `nonce` varchar(64) NOT NULL, + `opaque` varchar(64) NOT NULL, + `nonce_count` int(11) NOT NULL DEFAULT 1, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `api_mapping` -- +DROP TABLE IF EXISTS `api_mapping`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `api_mapping` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `api` int(11) NOT NULL DEFAULT '0', - `uebertragung_account` int(11) NOT NULL DEFAULT '0', - `tabelle` varchar(64) NOT NULL DEFAULT '', - `id_int` int(11) NOT NULL DEFAULT '0', - `id_ext` varchar(64) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `uebertragung_account` (`uebertragung_account`), - KEY `id_ext` (`id_ext`), - KEY `api` (`api`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `api_mapping` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `api` int(11) NOT NULL DEFAULT 0, + `uebertragung_account` int(11) NOT NULL DEFAULT 0, + `tabelle` varchar(64) NOT NULL, + `id_int` int(11) NOT NULL DEFAULT 0, + `id_ext` varchar(64) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `uebertragung_account` (`uebertragung_account`), + KEY `id_ext` (`id_ext`), + KEY `api` (`api`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `api_permission` -- +DROP TABLE IF EXISTS `api_permission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `api_permission` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `key` varchar(255) DEFAULT NULL, - `group` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `key` (`key`) -) ENGINE=InnoDB AUTO_INCREMENT=207 DEFAULT CHARSET=utf8; +CREATE TABLE `api_permission` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `key` varchar(255) DEFAULT NULL, + `group` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `key` (`key`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=207 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `api_regel` -- +DROP TABLE IF EXISTS `api_regel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `api_regel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `api` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `action` varchar(64) NOT NULL DEFAULT '', - `bedingung` varchar(1024) NOT NULL DEFAULT '', - `parameter` varchar(1024) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `sofortuebertragen` tinyint(1) NOT NULL DEFAULT '0', - `prio` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `api_regel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `api` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `action` varchar(64) NOT NULL, + `bedingung` varchar(1024) NOT NULL, + `parameter` varchar(1024) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `sofortuebertragen` tinyint(1) NOT NULL DEFAULT 0, + `prio` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(64) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `api_request` -- +DROP TABLE IF EXISTS `api_request`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `api_request` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `api` int(11) NOT NULL DEFAULT '0', - `uebertragung_account` int(11) NOT NULL DEFAULT '0', - `status` varchar(32) NOT NULL DEFAULT 'angelegt', - `prio` int(11) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `typ` varchar(255) NOT NULL DEFAULT '', - `parameter1` varchar(255) NOT NULL DEFAULT '', - `parameter1int` int(11) NOT NULL DEFAULT '0', - `parameter2` varchar(255) NOT NULL DEFAULT '', - `anzeige` varchar(255) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `uebertragen` tinyint(1) NOT NULL DEFAULT '0', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `datei` varchar(255) NOT NULL DEFAULT '', - `uebertragen_am` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `anzahl_uebertragen` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `uebertragung_account` (`uebertragung_account`), - KEY `parameter1int` (`parameter1int`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `api_request` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `api` int(11) NOT NULL DEFAULT 0, + `uebertragung_account` int(11) NOT NULL DEFAULT 0, + `status` varchar(32) NOT NULL DEFAULT 'angelegt', + `prio` int(11) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `typ` varchar(255) NOT NULL, + `parameter1` varchar(255) NOT NULL, + `parameter1int` int(11) NOT NULL DEFAULT 0, + `parameter2` varchar(255) NOT NULL, + `anzeige` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `uebertragen` tinyint(1) NOT NULL DEFAULT 0, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `datei` varchar(255) NOT NULL, + `uebertragen_am` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `anzahl_uebertragen` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `uebertragung_account` (`uebertragung_account`), + KEY `parameter1int` (`parameter1int`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `api_request_response_log` -- +DROP TABLE IF EXISTS `api_request_response_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `api_request_response_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `api_id` int(11) NOT NULL DEFAULT '0', - `raw_request` mediumtext, - `raw_response` mediumtext, - `type` varchar(64) NOT NULL DEFAULT '', - `status` varchar(64) NOT NULL DEFAULT '', - `doctype` varchar(64) NOT NULL DEFAULT '', - `doctype_id` int(11) NOT NULL DEFAULT '0', - `is_incomming` tinyint(1) NOT NULL DEFAULT '1', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `api_id` (`api_id`), - KEY `created_at` (`created_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `api_request_response_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `api_id` int(11) NOT NULL DEFAULT 0, + `raw_request` mediumtext DEFAULT NULL, + `raw_response` mediumtext DEFAULT NULL, + `type` varchar(64) NOT NULL, + `status` varchar(64) NOT NULL, + `doctype` varchar(64) NOT NULL, + `doctype_id` int(11) NOT NULL DEFAULT 0, + `is_incomming` tinyint(1) NOT NULL DEFAULT 1, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `api_id` (`api_id`), + KEY `created_at` (`created_at`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `arbeitsfreietage` -- +DROP TABLE IF EXISTS `arbeitsfreietage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `arbeitsfreietage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(128) NOT NULL DEFAULT '', - `typ` varchar(128) NOT NULL DEFAULT '', - `datum` date DEFAULT NULL, - `projekt` int(11) NOT NULL DEFAULT '1', - `land` varchar(2) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `datum` (`datum`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `arbeitsfreietage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(128) NOT NULL, + `typ` varchar(128) NOT NULL, + `datum` date DEFAULT NULL, + `projekt` int(11) NOT NULL DEFAULT 1, + `land` varchar(2) NOT NULL, + PRIMARY KEY (`id`), + KEY `datum` (`datum`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `arbeitspaket` -- +DROP TABLE IF EXISTS `arbeitspaket`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `arbeitspaket` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `adresse` int(10) NOT NULL, - `aufgabe` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `beschreibung` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `projekt` int(10) NOT NULL, - `zeit_geplant` decimal(10,2) NOT NULL, - `kostenstelle` int(11) NOT NULL, - `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `abgabe` varchar(255) NOT NULL, - `abgenommen` varchar(255) NOT NULL, - `abgenommen_von` int(10) NOT NULL, - `abgenommen_bemerkung` text NOT NULL, - `initiator` int(10) NOT NULL, - `art` varchar(255) NOT NULL, - `abgabedatum` date NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `geloescht` int(1) DEFAULT NULL, - `vorgaenger` int(11) DEFAULT NULL, - `kosten_geplant` decimal(10,4) DEFAULT NULL, - `artikel_geplant` int(11) DEFAULT NULL, - `auftragid` int(11) DEFAULT NULL, - `abgerechnet` int(1) NOT NULL DEFAULT '0', - `cache_BE` int(11) NOT NULL DEFAULT '0', - `cache_PR` int(11) NOT NULL DEFAULT '0', - `cache_AN` int(11) NOT NULL DEFAULT '0', - `cache_AB` int(11) NOT NULL DEFAULT '0', - `cache_LS` int(11) NOT NULL DEFAULT '0', - `cache_RE` int(11) NOT NULL DEFAULT '0', - `cache_GS` int(11) NOT NULL DEFAULT '0', - `last_cache` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - `startdatum` date NOT NULL, - `sort` int(11) NOT NULL DEFAULT '0', - `ek_geplant` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `vk_geplant` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `kalkulationbasis` varchar(64) NOT NULL DEFAULT 'stundenbasis', - `cache_PF` int(11) NOT NULL DEFAULT '0', - `farbe` varchar(16) NOT NULL DEFAULT '', - `vkkalkulationbasis` varchar(64) DEFAULT NULL, - `projektplanausblenden` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `arbeitspaket` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `adresse` int(10) NOT NULL, + `aufgabe` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `projekt` int(10) NOT NULL, + `zeit_geplant` decimal(10,2) NOT NULL, + `kostenstelle` int(11) NOT NULL, + `status` varchar(64) NOT NULL, + `abgabe` varchar(255) NOT NULL, + `abgenommen` varchar(255) NOT NULL, + `abgenommen_von` int(10) NOT NULL, + `abgenommen_bemerkung` text NOT NULL, + `initiator` int(10) NOT NULL, + `art` varchar(255) NOT NULL, + `abgabedatum` date NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `geloescht` int(1) DEFAULT NULL, + `vorgaenger` int(11) DEFAULT NULL, + `kosten_geplant` decimal(10,4) DEFAULT NULL, + `artikel_geplant` int(11) DEFAULT NULL, + `auftragid` int(11) DEFAULT NULL, + `abgerechnet` int(1) NOT NULL DEFAULT 0, + `cache_BE` int(11) NOT NULL DEFAULT 0, + `cache_PR` int(11) NOT NULL DEFAULT 0, + `cache_AN` int(11) NOT NULL DEFAULT 0, + `cache_AB` int(11) NOT NULL DEFAULT 0, + `cache_LS` int(11) NOT NULL DEFAULT 0, + `cache_RE` int(11) NOT NULL DEFAULT 0, + `cache_GS` int(11) NOT NULL DEFAULT 0, + `last_cache` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + `startdatum` date NOT NULL, + `sort` int(11) NOT NULL DEFAULT 0, + `ek_geplant` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `vk_geplant` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `kalkulationbasis` varchar(64) NOT NULL DEFAULT 'stundenbasis', + `cache_PF` int(11) NOT NULL DEFAULT 0, + `farbe` varchar(16) NOT NULL, + `vkkalkulationbasis` varchar(64) DEFAULT NULL, + `projektplanausblenden` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `article_label` -- +DROP TABLE IF EXISTS `article_label`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `article_label` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) NOT NULL DEFAULT '0', - `label_id` int(11) NOT NULL DEFAULT '0', - `printer_id` int(11) NOT NULL DEFAULT '0', - `amount` int(11) NOT NULL DEFAULT '0', - `type` varchar(64) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `article_label` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) NOT NULL DEFAULT 0, + `label_id` int(11) NOT NULL DEFAULT 0, + `printer_id` int(11) NOT NULL DEFAULT 0, + `amount` int(11) NOT NULL DEFAULT 0, + `type` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `article_property_translation` -- +DROP TABLE IF EXISTS `article_property_translation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `article_property_translation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) NOT NULL DEFAULT '0', - `category_id` int(11) NOT NULL DEFAULT '0', - `shop_id` int(11) NOT NULL DEFAULT '0', - `language_from` varchar(32) NOT NULL DEFAULT '', - `language_to` varchar(32) NOT NULL DEFAULT '', - `property_from` varchar(255) NOT NULL DEFAULT '', - `property_to` varchar(255) NOT NULL DEFAULT '', - `property_value_from` varchar(255) NOT NULL DEFAULT '', - `property_value_to` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `article_id` (`article_id`), - KEY `category_id` (`category_id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `article_property_translation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) NOT NULL DEFAULT 0, + `category_id` int(11) NOT NULL DEFAULT 0, + `shop_id` int(11) NOT NULL DEFAULT 0, + `language_from` varchar(32) NOT NULL, + `language_to` varchar(32) NOT NULL, + `property_from` varchar(255) NOT NULL, + `property_to` varchar(255) NOT NULL, + `property_value_from` varchar(255) NOT NULL, + `property_value_to` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `article_id` (`article_id`), + KEY `category_id` (`category_id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel` -- +DROP TABLE IF EXISTS `artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `typ` varchar(255) NOT NULL, - `nummer` varchar(255) NOT NULL, - `checksum` text NOT NULL, - `projekt` int(11) NOT NULL, - `inaktiv` varchar(255) NOT NULL, - `ausverkauft` int(1) NOT NULL, - `warengruppe` varchar(255) NOT NULL, - `name_de` varchar(255) NOT NULL, - `name_en` varchar(255) NOT NULL, - `kurztext_de` text NOT NULL, - `kurztext_en` text NOT NULL, - `beschreibung_de` text NOT NULL, - `beschreibung_en` text NOT NULL, - `uebersicht_de` text NOT NULL, - `uebersicht_en` text NOT NULL, - `links_de` text NOT NULL, - `links_en` text NOT NULL, - `startseite_de` text NOT NULL, - `startseite_en` text NOT NULL, - `standardbild` varchar(255) NOT NULL, - `herstellerlink` varchar(255) NOT NULL, - `hersteller` varchar(255) NOT NULL, - `teilbar` varchar(255) NOT NULL, - `nteile` varchar(255) NOT NULL, - `seriennummern` varchar(255) NOT NULL, - `lager_platz` varchar(255) NOT NULL, - `lieferzeit` varchar(255) NOT NULL, - `lieferzeitmanuell` varchar(255) NOT NULL, - `sonstiges` text NOT NULL, - `gewicht` varchar(255) NOT NULL, - `endmontage` varchar(255) NOT NULL, - `funktionstest` varchar(255) NOT NULL, - `artikelcheckliste` varchar(255) NOT NULL, - `stueckliste` int(1) NOT NULL, - `juststueckliste` int(1) NOT NULL, - `barcode` varchar(7) NOT NULL, - `hinzugefuegt` varchar(255) NOT NULL, - `pcbdecal` varchar(255) NOT NULL, - `lagerartikel` int(1) NOT NULL, - `porto` int(1) NOT NULL, - `chargenverwaltung` int(1) NOT NULL, - `provisionsartikel` int(1) NOT NULL, - `gesperrt` int(1) NOT NULL, - `sperrgrund` varchar(255) NOT NULL, - `geloescht` int(1) NOT NULL, - `gueltigbis` date NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `klasse` varchar(255) NOT NULL, - `adresse` int(11) NOT NULL, - `shopartikel` int(1) NOT NULL, - `unishopartikel` int(1) NOT NULL, - `journalshopartikel` int(11) NOT NULL, - `shop` int(11) NOT NULL, - `katalog` int(1) NOT NULL, - `katalogtext_de` text NOT NULL, - `katalogtext_en` text NOT NULL, - `katalogbezeichnung_de` varchar(255) NOT NULL, - `katalogbezeichnung_en` varchar(255) NOT NULL, - `neu` int(1) NOT NULL, - `topseller` int(1) NOT NULL, - `startseite` int(1) NOT NULL, - `wichtig` int(1) NOT NULL, - `mindestlager` int(11) NOT NULL, - `mindestbestellung` int(11) NOT NULL, - `partnerprogramm_sperre` int(1) NOT NULL, - `internerkommentar` text NOT NULL, - `intern_gesperrt` int(11) NOT NULL, - `intern_gesperrtuser` int(11) NOT NULL, - `intern_gesperrtgrund` text NOT NULL, - `inbearbeitung` int(11) NOT NULL, - `inbearbeitunguser` int(11) NOT NULL, - `cache_lagerplatzinhaltmenge` int(11) NOT NULL, - `internkommentar` text NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `anabregs_text` text, - `autobestellung` int(1) NOT NULL DEFAULT '0', - `produktion` int(1) DEFAULT NULL, - `herstellernummer` varchar(255) DEFAULT NULL, - `restmenge` int(1) DEFAULT NULL, - `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, - `keineeinzelartikelanzeigen` tinyint(1) NOT NULL DEFAULT '0', - `mindesthaltbarkeitsdatum` int(1) NOT NULL DEFAULT '0', - `letzteseriennummer` varchar(255) NOT NULL DEFAULT '', - `individualartikel` int(1) NOT NULL DEFAULT '0', - `keinrabatterlaubt` int(1) DEFAULT NULL, - `rabatt` int(1) NOT NULL DEFAULT '0', - `rabatt_prozent` decimal(10,2) DEFAULT NULL, - `geraet` tinyint(1) NOT NULL DEFAULT '0', - `serviceartikel` tinyint(1) NOT NULL DEFAULT '0', - `autoabgleicherlaubt` int(1) NOT NULL DEFAULT '0', - `pseudopreis` decimal(10,2) DEFAULT NULL, - `freigabenotwendig` int(1) NOT NULL DEFAULT '0', - `freigaberegel` varchar(255) NOT NULL DEFAULT '', - `nachbestellt` int(1) DEFAULT NULL, - `ean` varchar(1024) NOT NULL DEFAULT '', - `mlmpunkte` decimal(10,2) NOT NULL, - `mlmbonuspunkte` decimal(10,2) NOT NULL, - `mlmkeinepunkteeigenkauf` int(1) DEFAULT NULL, - `shop2` int(11) DEFAULT NULL, - `shop3` int(11) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `freifeld1` text NOT NULL, - `freifeld2` text NOT NULL, - `freifeld3` text NOT NULL, - `freifeld4` text NOT NULL, - `freifeld5` text NOT NULL, - `freifeld6` text NOT NULL, - `einheit` varchar(255) NOT NULL DEFAULT '', - `webid` varchar(1024) NOT NULL, - `lieferzeitmanuell_en` varchar(255) DEFAULT NULL, - `variante` int(1) DEFAULT NULL, - `variante_von` int(11) DEFAULT NULL, - `produktioninfo` text, - `sonderaktion` text, - `sonderaktion_en` text, - `autolagerlampe` int(1) NOT NULL DEFAULT '0', - `leerfeld` varchar(64) DEFAULT NULL, - `zolltarifnummer` varchar(64) NOT NULL DEFAULT '', - `herkunftsland` varchar(64) NOT NULL DEFAULT '', - `laenge` decimal(10,2) NOT NULL DEFAULT '0.00', - `breite` decimal(10,2) NOT NULL DEFAULT '0.00', - `hoehe` decimal(10,2) NOT NULL DEFAULT '0.00', - `gebuehr` tinyint(1) NOT NULL DEFAULT '0', - `pseudolager` varchar(255) NOT NULL, - `downloadartikel` tinyint(1) NOT NULL DEFAULT '0', - `matrixprodukt` tinyint(1) NOT NULL DEFAULT '0', - `steuer_erloese_inland_normal` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_normal` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_ermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_ermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_steuerfrei` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_steuerfrei` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_innergemeinschaftlich` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_innergemeinschaftlich` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_eunormal` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_nichtsteuerbar` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_euermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_nichtsteuerbar` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_eunormal` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_euermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_export` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_import` varchar(10) NOT NULL DEFAULT '', - `steuer_art_produkt` int(1) NOT NULL DEFAULT '1', - `steuer_art_produkt_download` int(1) NOT NULL DEFAULT '1', - `metadescription_de` text NOT NULL, - `metadescription_en` text NOT NULL, - `metakeywords_de` text NOT NULL, - `metakeywords_en` text NOT NULL, - `anabregs_text_en` text NOT NULL, - `externeproduktion` tinyint(1) NOT NULL DEFAULT '0', - `bildvorschau` varchar(64) NOT NULL DEFAULT '', - `inventursperre` int(1) NOT NULL DEFAULT '0', - `variante_kopie` tinyint(1) NOT NULL DEFAULT '0', - `unikat` tinyint(1) NOT NULL DEFAULT '0', - `generierenummerbeioption` tinyint(1) NOT NULL DEFAULT '0', - `allelieferanten` tinyint(1) NOT NULL DEFAULT '0', - `tagespreise` tinyint(1) NOT NULL DEFAULT '0', - `rohstoffe` tinyint(1) NOT NULL DEFAULT '0', - `nettogewicht` varchar(64) NOT NULL DEFAULT '', - `xvp` decimal(14,2) NOT NULL DEFAULT '0.00', - `ohnepreisimpdf` tinyint(1) NOT NULL DEFAULT '0', - `provisionssperre` int(1) DEFAULT NULL, - `dienstleistung` tinyint(1) NOT NULL DEFAULT '0', - `inventurekaktiv` int(1) NOT NULL DEFAULT '0', - `inventurek` decimal(18,8) DEFAULT NULL, - `hinweis_einfuegen` text NOT NULL, - `etikettautodruck` int(1) NOT NULL DEFAULT '0', - `lagerkorrekturwert` int(11) NOT NULL DEFAULT '0', - `autodrucketikett` int(11) NOT NULL DEFAULT '0', - `abckategorie` varchar(1) NOT NULL DEFAULT '', - `laststorage_changed` timestamp NOT NULL DEFAULT '1970-01-01 23:00:00', - `laststorage_sync` timestamp NOT NULL DEFAULT '1970-01-01 23:00:00', - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext_innergemeinschaftlich` varchar(1024) DEFAULT NULL, - `steuertext_export` varchar(1024) DEFAULT NULL, - `formelmenge` varchar(255) NOT NULL DEFAULT '', - `formelpreis` varchar(255) NOT NULL DEFAULT '', - `freifeld7` text NOT NULL, - `freifeld8` text NOT NULL, - `freifeld9` text NOT NULL, - `freifeld10` text NOT NULL, - `freifeld11` text NOT NULL, - `freifeld12` text NOT NULL, - `freifeld13` text NOT NULL, - `freifeld14` text NOT NULL, - `freifeld15` text NOT NULL, - `freifeld16` text NOT NULL, - `freifeld17` text NOT NULL, - `freifeld18` text NOT NULL, - `freifeld19` text NOT NULL, - `freifeld20` text NOT NULL, - `freifeld21` text NOT NULL, - `freifeld22` text NOT NULL, - `freifeld23` text NOT NULL, - `freifeld24` text NOT NULL, - `freifeld25` text NOT NULL, - `freifeld26` text NOT NULL, - `freifeld27` text NOT NULL, - `freifeld28` text NOT NULL, - `freifeld29` text NOT NULL, - `freifeld30` text NOT NULL, - `freifeld31` text NOT NULL, - `freifeld32` text NOT NULL, - `freifeld33` text NOT NULL, - `freifeld34` text NOT NULL, - `freifeld35` text NOT NULL, - `freifeld36` text NOT NULL, - `freifeld37` text NOT NULL, - `freifeld38` text NOT NULL, - `freifeld39` text NOT NULL, - `freifeld40` text NOT NULL, - `ursprungsregion` varchar(255) NOT NULL DEFAULT '', - `bestandalternativartikel` int(11) NOT NULL DEFAULT '0', - `metatitle_de` text NOT NULL, - `metatitle_en` text NOT NULL, - `vkmeldungunterdruecken` tinyint(1) NOT NULL DEFAULT '0', - `altersfreigabe` varchar(3) NOT NULL DEFAULT '', - `unikatbeikopie` tinyint(1) NOT NULL DEFAULT '0', - `steuergruppe` int(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `artikelautokalkulation` int(11) NOT NULL DEFAULT '0', - `artikelabschliessenkalkulation` int(11) NOT NULL DEFAULT '0', - `artikelfifokalkulation` int(11) NOT NULL DEFAULT '0', - `keinskonto` tinyint(1) NOT NULL DEFAULT '0', - `berechneterek` decimal(14,4) NOT NULL DEFAULT '0.0000', - `verwendeberechneterek` tinyint(1) NOT NULL DEFAULT '0', - `berechneterekwaehrung` varchar(16) NOT NULL DEFAULT '', - `has_preproduced_partlist` tinyint(1) DEFAULT '0', - `preproduced_partlist` int(11) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`), - KEY `nummer` (`nummer`), - KEY `adresse` (`adresse`), - KEY `laststorage_changed` (`laststorage_changed`), - KEY `laststorage_sync` (`laststorage_sync`), - KEY `variante_von` (`variante_von`), - KEY `herstellernummer` (`herstellernummer`), - KEY `geloescht` (`geloescht`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `typ` varchar(255) NOT NULL, + `nummer` varchar(255) NOT NULL, + `checksum` text NOT NULL, + `projekt` int(11) NOT NULL, + `inaktiv` varchar(255) NOT NULL, + `ausverkauft` int(1) NOT NULL, + `warengruppe` varchar(255) NOT NULL, + `name_de` varchar(255) NOT NULL, + `name_en` varchar(255) NOT NULL, + `kurztext_de` text NOT NULL, + `kurztext_en` text NOT NULL, + `beschreibung_de` text NOT NULL, + `beschreibung_en` text NOT NULL, + `uebersicht_de` text NOT NULL, + `uebersicht_en` text NOT NULL, + `links_de` text NOT NULL, + `links_en` text NOT NULL, + `startseite_de` text NOT NULL, + `startseite_en` text NOT NULL, + `standardbild` varchar(255) NOT NULL, + `herstellerlink` varchar(255) NOT NULL, + `hersteller` varchar(255) NOT NULL, + `teilbar` varchar(255) NOT NULL, + `nteile` varchar(255) NOT NULL, + `seriennummern` varchar(255) NOT NULL, + `lager_platz` varchar(255) NOT NULL, + `lieferzeit` varchar(255) NOT NULL, + `lieferzeitmanuell` varchar(255) NOT NULL, + `sonstiges` text NOT NULL, + `gewicht` varchar(255) NOT NULL, + `endmontage` varchar(255) NOT NULL, + `funktionstest` varchar(255) NOT NULL, + `artikelcheckliste` varchar(255) NOT NULL, + `stueckliste` int(1) NOT NULL, + `juststueckliste` int(1) NOT NULL, + `barcode` varchar(7) NOT NULL, + `hinzugefuegt` varchar(255) NOT NULL, + `pcbdecal` varchar(255) NOT NULL, + `lagerartikel` int(1) NOT NULL, + `porto` int(1) NOT NULL, + `chargenverwaltung` int(1) NOT NULL, + `provisionsartikel` int(1) NOT NULL, + `gesperrt` int(1) NOT NULL, + `sperrgrund` varchar(255) NOT NULL, + `geloescht` int(1) NOT NULL, + `gueltigbis` date NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `klasse` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL, + `shopartikel` int(1) NOT NULL, + `unishopartikel` int(1) NOT NULL, + `journalshopartikel` int(11) NOT NULL, + `shop` int(11) NOT NULL, + `katalog` int(1) NOT NULL, + `katalogtext_de` text NOT NULL, + `katalogtext_en` text NOT NULL, + `katalogbezeichnung_de` varchar(255) NOT NULL, + `katalogbezeichnung_en` varchar(255) NOT NULL, + `neu` int(1) NOT NULL, + `topseller` int(1) NOT NULL, + `startseite` int(1) NOT NULL, + `wichtig` int(1) NOT NULL, + `mindestlager` int(11) NOT NULL, + `mindestbestellung` int(11) NOT NULL, + `partnerprogramm_sperre` int(1) NOT NULL, + `internerkommentar` text NOT NULL, + `intern_gesperrt` int(11) NOT NULL, + `intern_gesperrtuser` int(11) NOT NULL, + `intern_gesperrtgrund` text NOT NULL, + `inbearbeitung` int(11) NOT NULL, + `inbearbeitunguser` int(11) NOT NULL, + `cache_lagerplatzinhaltmenge` int(11) NOT NULL, + `internkommentar` text NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `anabregs_text` text DEFAULT NULL, + `autobestellung` int(1) NOT NULL DEFAULT 0, + `produktion` int(1) DEFAULT NULL, + `herstellernummer` varchar(255) DEFAULT NULL, + `restmenge` int(1) DEFAULT NULL, + `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, + `keineeinzelartikelanzeigen` tinyint(1) NOT NULL DEFAULT 0, + `mindesthaltbarkeitsdatum` int(1) NOT NULL DEFAULT 0, + `letzteseriennummer` varchar(255) NOT NULL, + `individualartikel` int(1) NOT NULL DEFAULT 0, + `keinrabatterlaubt` int(1) DEFAULT NULL, + `rabatt` int(1) NOT NULL DEFAULT 0, + `rabatt_prozent` decimal(10,2) DEFAULT NULL, + `geraet` tinyint(1) NOT NULL DEFAULT 0, + `serviceartikel` tinyint(1) NOT NULL DEFAULT 0, + `autoabgleicherlaubt` int(1) NOT NULL DEFAULT 0, + `pseudopreis` decimal(10,2) DEFAULT NULL, + `freigabenotwendig` int(1) NOT NULL DEFAULT 0, + `freigaberegel` varchar(255) NOT NULL, + `nachbestellt` int(1) DEFAULT NULL, + `ean` varchar(1024) NOT NULL, + `mlmpunkte` decimal(10,2) NOT NULL, + `mlmbonuspunkte` decimal(10,2) NOT NULL, + `mlmkeinepunkteeigenkauf` int(1) DEFAULT NULL, + `shop2` int(11) DEFAULT NULL, + `shop3` int(11) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `freifeld1` text NOT NULL, + `freifeld2` text NOT NULL, + `freifeld3` text NOT NULL, + `freifeld4` text NOT NULL, + `freifeld5` text NOT NULL, + `freifeld6` text NOT NULL, + `einheit` varchar(255) NOT NULL, + `webid` varchar(1024) NOT NULL, + `lieferzeitmanuell_en` varchar(255) DEFAULT NULL, + `variante` int(1) DEFAULT NULL, + `variante_von` int(11) DEFAULT NULL, + `produktioninfo` text DEFAULT NULL, + `sonderaktion` text DEFAULT NULL, + `sonderaktion_en` text DEFAULT NULL, + `autolagerlampe` int(1) NOT NULL DEFAULT 0, + `leerfeld` varchar(64) DEFAULT NULL, + `zolltarifnummer` varchar(64) NOT NULL, + `herkunftsland` varchar(64) NOT NULL, + `laenge` decimal(10,2) NOT NULL DEFAULT 0.00, + `breite` decimal(10,2) NOT NULL DEFAULT 0.00, + `hoehe` decimal(10,2) NOT NULL DEFAULT 0.00, + `gebuehr` tinyint(1) NOT NULL DEFAULT 0, + `pseudolager` varchar(255) NOT NULL, + `downloadartikel` tinyint(1) NOT NULL DEFAULT 0, + `matrixprodukt` tinyint(1) NOT NULL DEFAULT 0, + `steuer_erloese_inland_normal` varchar(10) NOT NULL, + `steuer_aufwendung_inland_normal` varchar(10) NOT NULL, + `steuer_erloese_inland_ermaessigt` varchar(10) NOT NULL, + `steuer_aufwendung_inland_ermaessigt` varchar(10) NOT NULL, + `steuer_erloese_inland_steuerfrei` varchar(10) NOT NULL, + `steuer_aufwendung_inland_steuerfrei` varchar(10) NOT NULL, + `steuer_erloese_inland_innergemeinschaftlich` varchar(10) NOT NULL, + `steuer_aufwendung_inland_innergemeinschaftlich` varchar(10) NOT NULL, + `steuer_erloese_inland_eunormal` varchar(10) NOT NULL, + `steuer_erloese_inland_nichtsteuerbar` varchar(10) NOT NULL, + `steuer_erloese_inland_euermaessigt` varchar(10) NOT NULL, + `steuer_aufwendung_inland_nichtsteuerbar` varchar(10) NOT NULL, + `steuer_aufwendung_inland_eunormal` varchar(10) NOT NULL, + `steuer_aufwendung_inland_euermaessigt` varchar(10) NOT NULL, + `steuer_erloese_inland_export` varchar(10) NOT NULL, + `steuer_aufwendung_inland_import` varchar(10) NOT NULL, + `steuer_art_produkt` int(1) NOT NULL DEFAULT 1, + `steuer_art_produkt_download` int(1) NOT NULL DEFAULT 1, + `metadescription_de` text NOT NULL, + `metadescription_en` text NOT NULL, + `metakeywords_de` text NOT NULL, + `metakeywords_en` text NOT NULL, + `anabregs_text_en` text NOT NULL, + `externeproduktion` tinyint(1) NOT NULL DEFAULT 0, + `bildvorschau` varchar(64) NOT NULL, + `inventursperre` int(1) NOT NULL DEFAULT 0, + `variante_kopie` tinyint(1) NOT NULL DEFAULT 0, + `unikat` tinyint(1) NOT NULL DEFAULT 0, + `generierenummerbeioption` tinyint(1) NOT NULL DEFAULT 0, + `allelieferanten` tinyint(1) NOT NULL DEFAULT 0, + `tagespreise` tinyint(1) NOT NULL DEFAULT 0, + `rohstoffe` tinyint(1) NOT NULL DEFAULT 0, + `nettogewicht` varchar(64) NOT NULL, + `xvp` decimal(14,2) NOT NULL DEFAULT 0.00, + `ohnepreisimpdf` tinyint(1) NOT NULL DEFAULT 0, + `provisionssperre` int(1) DEFAULT NULL, + `dienstleistung` tinyint(1) NOT NULL DEFAULT 0, + `inventurekaktiv` int(1) NOT NULL DEFAULT 0, + `inventurek` decimal(18,8) DEFAULT NULL, + `hinweis_einfuegen` text NOT NULL, + `etikettautodruck` int(1) NOT NULL DEFAULT 0, + `lagerkorrekturwert` int(11) NOT NULL DEFAULT 0, + `autodrucketikett` int(11) NOT NULL DEFAULT 0, + `abckategorie` varchar(1) NOT NULL, + `laststorage_changed` timestamp NOT NULL DEFAULT '1970-01-01 23:00:00', + `laststorage_sync` timestamp NOT NULL DEFAULT '1970-01-01 23:00:00', + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext_innergemeinschaftlich` varchar(1024) DEFAULT NULL, + `steuertext_export` varchar(1024) DEFAULT NULL, + `formelmenge` varchar(255) NOT NULL, + `formelpreis` varchar(255) NOT NULL, + `freifeld7` text NOT NULL, + `freifeld8` text NOT NULL, + `freifeld9` text NOT NULL, + `freifeld10` text NOT NULL, + `freifeld11` text NOT NULL, + `freifeld12` text NOT NULL, + `freifeld13` text NOT NULL, + `freifeld14` text NOT NULL, + `freifeld15` text NOT NULL, + `freifeld16` text NOT NULL, + `freifeld17` text NOT NULL, + `freifeld18` text NOT NULL, + `freifeld19` text NOT NULL, + `freifeld20` text NOT NULL, + `freifeld21` text NOT NULL, + `freifeld22` text NOT NULL, + `freifeld23` text NOT NULL, + `freifeld24` text NOT NULL, + `freifeld25` text NOT NULL, + `freifeld26` text NOT NULL, + `freifeld27` text NOT NULL, + `freifeld28` text NOT NULL, + `freifeld29` text NOT NULL, + `freifeld30` text NOT NULL, + `freifeld31` text NOT NULL, + `freifeld32` text NOT NULL, + `freifeld33` text NOT NULL, + `freifeld34` text NOT NULL, + `freifeld35` text NOT NULL, + `freifeld36` text NOT NULL, + `freifeld37` text NOT NULL, + `freifeld38` text NOT NULL, + `freifeld39` text NOT NULL, + `freifeld40` text NOT NULL, + `ursprungsregion` varchar(255) NOT NULL, + `bestandalternativartikel` int(11) NOT NULL DEFAULT 0, + `metatitle_de` text NOT NULL, + `metatitle_en` text NOT NULL, + `vkmeldungunterdruecken` tinyint(1) NOT NULL DEFAULT 0, + `altersfreigabe` varchar(3) NOT NULL, + `unikatbeikopie` tinyint(1) NOT NULL DEFAULT 0, + `steuergruppe` int(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `artikelautokalkulation` int(11) NOT NULL DEFAULT 0, + `artikelabschliessenkalkulation` int(11) NOT NULL DEFAULT 0, + `artikelfifokalkulation` int(11) NOT NULL DEFAULT 0, + `keinskonto` tinyint(1) NOT NULL DEFAULT 0, + `berechneterek` decimal(14,4) NOT NULL DEFAULT 0.0000, + `verwendeberechneterek` tinyint(1) NOT NULL DEFAULT 0, + `berechneterekwaehrung` varchar(16) NOT NULL, + `has_preproduced_partlist` tinyint(1) DEFAULT 0, + `preproduced_partlist` int(11) DEFAULT 0, + `kontorahmen` int(11) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`), + KEY `nummer` (`nummer`), + KEY `adresse` (`adresse`), + KEY `laststorage_changed` (`laststorage_changed`), + KEY `laststorage_sync` (`laststorage_sync`), + KEY `variante_von` (`variante_von`), + KEY `herstellernummer` (`herstellernummer`), + KEY `geloescht` (`geloescht`) +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_arbeitsanweisung` -- +DROP TABLE IF EXISTS `artikel_arbeitsanweisung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_arbeitsanweisung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `name` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `bild` longblob NOT NULL, - `einzelzeit` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `arbeitsplatzgruppe` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_arbeitsanweisung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `bild` longblob NOT NULL, + `einzelzeit` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `arbeitsplatzgruppe` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_artikelgruppe` -- +DROP TABLE IF EXISTS `artikel_artikelgruppe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_artikelgruppe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `artikelgruppe` int(11) NOT NULL, - `position` int(11) NOT NULL, - `geloescht` int(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_artikelgruppe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `artikelgruppe` int(11) NOT NULL, + `position` int(11) NOT NULL, + `geloescht` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_cached_fields` -- +DROP TABLE IF EXISTS `artikel_cached_fields`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_cached_fields` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `project_id` int(11) NOT NULL DEFAULT '0', - `project_name` varchar(64) NOT NULL DEFAULT '', - `number` varchar(64) NOT NULL DEFAULT '', - `ean` varchar(64) NOT NULL DEFAULT '', - `factory_number` varchar(64) NOT NULL DEFAULT '', - `name` varchar(255) NOT NULL DEFAULT '', - `manufactor` varchar(255) NOT NULL DEFAULT '', - `customfield1` varchar(255) NOT NULL DEFAULT '', - `customfield2` varchar(255) NOT NULL DEFAULT '', - `ek_customnumber` varchar(1024) NOT NULL DEFAULT '', - `vk_customnumber` varchar(1024) NOT NULL DEFAULT '', - `eigenschaften` varchar(1024) NOT NULL DEFAULT '', - `is_storage_article` tinyint(1) NOT NULL DEFAULT '0', - `is_variant` tinyint(1) NOT NULL DEFAULT '0', - `variant_from_id` int(11) NOT NULL DEFAULT '0', - `variant_from_name` varchar(64) NOT NULL DEFAULT '', - `is_partlist` tinyint(1) NOT NULL DEFAULT '0', - `is_shipping` tinyint(1) NOT NULL DEFAULT '0', - `locked` tinyint(1) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `lager_verfuegbar` decimal(14,4) NOT NULL DEFAULT '0.0000', - `ek_netto` decimal(14,4) NOT NULL DEFAULT '0.0000', - `ek_brutto` decimal(14,4) NOT NULL DEFAULT '0.0000', - `vk_netto` decimal(14,4) NOT NULL DEFAULT '0.0000', - `vk_brutto` decimal(14,4) NOT NULL DEFAULT '0.0000', - `inzulauf` decimal(14,4) NOT NULL DEFAULT '0.0000', - `imsperrlager` decimal(14,4) NOT NULL DEFAULT '0.0000', - `inproduktion` decimal(14,4) NOT NULL DEFAULT '0.0000', - `lager_gesamt` decimal(14,4) NOT NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_cached_fields` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `project_id` int(11) NOT NULL DEFAULT 0, + `project_name` varchar(64) NOT NULL, + `number` varchar(64) NOT NULL, + `ean` varchar(64) NOT NULL, + `factory_number` varchar(64) NOT NULL, + `name` varchar(255) NOT NULL, + `manufactor` varchar(255) NOT NULL, + `customfield1` varchar(255) NOT NULL, + `customfield2` varchar(255) NOT NULL, + `ek_customnumber` varchar(1024) NOT NULL, + `vk_customnumber` varchar(1024) NOT NULL, + `eigenschaften` varchar(1024) NOT NULL, + `is_storage_article` tinyint(1) NOT NULL DEFAULT 0, + `is_variant` tinyint(1) NOT NULL DEFAULT 0, + `variant_from_id` int(11) NOT NULL DEFAULT 0, + `variant_from_name` varchar(64) NOT NULL, + `is_partlist` tinyint(1) NOT NULL DEFAULT 0, + `is_shipping` tinyint(1) NOT NULL DEFAULT 0, + `locked` tinyint(1) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `lager_verfuegbar` decimal(14,4) NOT NULL DEFAULT 0.0000, + `ek_netto` decimal(14,4) NOT NULL DEFAULT 0.0000, + `ek_brutto` decimal(14,4) NOT NULL DEFAULT 0.0000, + `vk_netto` decimal(14,4) NOT NULL DEFAULT 0.0000, + `vk_brutto` decimal(14,4) NOT NULL DEFAULT 0.0000, + `inzulauf` decimal(14,4) NOT NULL DEFAULT 0.0000, + `imsperrlager` decimal(14,4) NOT NULL DEFAULT 0.0000, + `inproduktion` decimal(14,4) NOT NULL DEFAULT 0.0000, + `lager_gesamt` decimal(14,4) NOT NULL DEFAULT 0.0000, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_freifelder` -- +DROP TABLE IF EXISTS `artikel_freifelder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_freifelder` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `sprache` varchar(255) NOT NULL, - `nummer` int(11) NOT NULL, - `wert` text NOT NULL, - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_freifelder` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `sprache` varchar(255) NOT NULL, + `nummer` int(11) NOT NULL, + `wert` text NOT NULL, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_onlineshops` -- +DROP TABLE IF EXISTS `artikel_onlineshops`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_onlineshops` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `shop` int(11) NOT NULL DEFAULT '0', - `aktiv` int(11) NOT NULL DEFAULT '0', - `ausartikel` int(11) NOT NULL DEFAULT '1', - `lagerkorrekturwert` int(11) NOT NULL DEFAULT '0', - `pseudolager` varchar(255) NOT NULL, - `autolagerlampe` tinyint(1) NOT NULL DEFAULT '0', - `restmenge` tinyint(1) NOT NULL DEFAULT '0', - `lieferzeitmanuell` varchar(255) NOT NULL DEFAULT '', - `pseudopreis` decimal(10,2) NOT NULL DEFAULT '0.00', - `generierenummerbeioption` tinyint(1) NOT NULL DEFAULT '0', - `variante_kopie` tinyint(1) NOT NULL DEFAULT '0', - `unikat` tinyint(1) NOT NULL DEFAULT '0', - `unikatbeikopie` tinyint(1) NOT NULL DEFAULT '0', - `autoabgeleicherlaubt` tinyint(1) NOT NULL DEFAULT '0', - `last_article_hash` varchar(64) NOT NULL DEFAULT '', - `last_article_transfer` timestamp NULL DEFAULT NULL, - `last_storage_transfer` timestamp NULL DEFAULT NULL, - `storage_cache` int(11) DEFAULT NULL, - `pseudostorage_cache` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`,`shop`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_onlineshops` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `shop` int(11) NOT NULL DEFAULT 0, + `aktiv` int(11) NOT NULL DEFAULT 0, + `ausartikel` int(11) NOT NULL DEFAULT 1, + `lagerkorrekturwert` int(11) NOT NULL DEFAULT 0, + `pseudolager` varchar(255) NOT NULL, + `autolagerlampe` tinyint(1) NOT NULL DEFAULT 0, + `restmenge` tinyint(1) NOT NULL DEFAULT 0, + `lieferzeitmanuell` varchar(255) NOT NULL, + `pseudopreis` decimal(10,2) NOT NULL DEFAULT 0.00, + `generierenummerbeioption` tinyint(1) NOT NULL DEFAULT 0, + `variante_kopie` tinyint(1) NOT NULL DEFAULT 0, + `unikat` tinyint(1) NOT NULL DEFAULT 0, + `unikatbeikopie` tinyint(1) NOT NULL DEFAULT 0, + `autoabgeleicherlaubt` tinyint(1) NOT NULL DEFAULT 0, + `last_article_hash` varchar(64) NOT NULL, + `last_article_transfer` timestamp NULL DEFAULT NULL, + `last_storage_transfer` timestamp NULL DEFAULT NULL, + `storage_cache` int(11) DEFAULT NULL, + `pseudostorage_cache` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`,`shop`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_permanenteinventur` -- +DROP TABLE IF EXISTS `artikel_permanenteinventur`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_permanenteinventur` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `zeitstempel` datetime DEFAULT NULL, - `bearbeiter` varchar(128) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `lager_platz` (`lager_platz`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_permanenteinventur` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `zeitstempel` datetime DEFAULT NULL, + `bearbeiter` varchar(128) NOT NULL, + PRIMARY KEY (`id`), + KEY `lager_platz` (`lager_platz`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_shop` -- +DROP TABLE IF EXISTS `artikel_shop`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_shop` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `shop` int(11) NOT NULL, - `checksum` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_shop` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `shop` int(11) NOT NULL, + `checksum` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_texte` -- +DROP TABLE IF EXISTS `artikel_texte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_texte` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `sprache` varchar(11) NOT NULL, - `name` varchar(255) NOT NULL, - `kurztext` text NOT NULL, - `beschreibung` text NOT NULL, - `beschreibung_online` text NOT NULL, - `meta_title` varchar(255) NOT NULL, - `meta_description` text NOT NULL, - `meta_keywords` text NOT NULL, - `katalogartikel` tinyint(1) NOT NULL DEFAULT '0', - `katalog_bezeichnung` text NOT NULL, - `katalog_text` text NOT NULL, - `shop` int(11) NOT NULL, - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shop` (`shop`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_texte` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `sprache` varchar(11) NOT NULL, + `name` varchar(255) NOT NULL, + `kurztext` text NOT NULL, + `beschreibung` text NOT NULL, + `beschreibung_online` text NOT NULL, + `meta_title` varchar(255) NOT NULL, + `meta_description` text NOT NULL, + `meta_keywords` text NOT NULL, + `katalogartikel` tinyint(1) NOT NULL DEFAULT 0, + `katalog_bezeichnung` text NOT NULL, + `katalog_text` text NOT NULL, + `shop` int(11) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shop` (`shop`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_zu_optionen` -- +DROP TABLE IF EXISTS `artikel_zu_optionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_zu_optionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikeloption` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_zu_optionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikeloption` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikel_zu_optionengruppe` -- +DROP TABLE IF EXISTS `artikel_zu_optionengruppe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikel_zu_optionengruppe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikeloptionengruppe` int(11) NOT NULL, - `position` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `name_de` varchar(255) NOT NULL, - `name_en` varchar(255) NOT NULL, - `preisadd` decimal(8,4) NOT NULL DEFAULT '0.0000', - `preisart` varchar(20) NOT NULL DEFAULT 'absolut', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikel_zu_optionengruppe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikeloptionengruppe` int(11) NOT NULL, + `position` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `name_de` varchar(255) NOT NULL, + `name_en` varchar(255) NOT NULL, + `preisadd` decimal(8,4) NOT NULL DEFAULT 0.0000, + `preisart` varchar(20) NOT NULL DEFAULT 'absolut', + `bearbeiter` varchar(255) NOT NULL, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelbaum_artikel` -- +DROP TABLE IF EXISTS `artikelbaum_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelbaum_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `kategorie` int(11) NOT NULL DEFAULT '0', - `haupt` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`,`kategorie`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikelbaum_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `kategorie` int(11) NOT NULL DEFAULT 0, + `haupt` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`,`kategorie`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikeleigenschaften` -- +DROP TABLE IF EXISTS `artikeleigenschaften`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikeleigenschaften` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `name` varchar(64) DEFAULT '', - `typ` varchar(64) DEFAULT 'einzeilig', - `projekt` int(11) NOT NULL DEFAULT '0', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikeleigenschaften` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `name` varchar(64) DEFAULT NULL, + `typ` varchar(64) DEFAULT 'einzeilig', + `projekt` int(11) NOT NULL DEFAULT 0, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikeleigenschaftenwerte` -- +DROP TABLE IF EXISTS `artikeleigenschaftenwerte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikeleigenschaftenwerte` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikeleigenschaften` int(11) NOT NULL DEFAULT '0', - `vorlage` int(11) NOT NULL DEFAULT '0', - `name` varchar(64) DEFAULT '', - `einheit` varchar(64) DEFAULT '', - `wert` text, - `artikel` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `artikeleigenschaften` (`artikeleigenschaften`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikeleigenschaftenwerte` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikeleigenschaften` int(11) NOT NULL DEFAULT 0, + `vorlage` int(11) NOT NULL DEFAULT 0, + `name` varchar(64) DEFAULT NULL, + `einheit` varchar(64) DEFAULT NULL, + `wert` text DEFAULT NULL, + `artikel` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `artikeleigenschaften` (`artikeleigenschaften`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikeleinheit` -- +DROP TABLE IF EXISTS `artikeleinheit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikeleinheit` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `einheit_de` varchar(255) DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; +CREATE TABLE `artikeleinheit` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `einheit_de` varchar(255) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelgruppen` -- +DROP TABLE IF EXISTS `artikelgruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelgruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `bezeichnung_en` varchar(255) NOT NULL, - `shop` int(11) NOT NULL, - `aktiv` int(1) NOT NULL, - `beschreibung_de` text, - `beschreibung_en` text, - PRIMARY KEY (`id`), - KEY `id` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikelgruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `bezeichnung_en` varchar(255) NOT NULL, + `shop` int(11) NOT NULL, + `aktiv` int(1) NOT NULL, + `beschreibung_de` text DEFAULT NULL, + `beschreibung_en` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `id` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelkalkulation` -- +DROP TABLE IF EXISTS `artikelkalkulation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelkalkulation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `bestellung` int(11) NOT NULL DEFAULT '0', - `datum` date NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `kostenart` varchar(255) NOT NULL, - `kosten` decimal(14,4) NOT NULL DEFAULT '0.0000', - `menge` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) NOT NULL, - `gesamtkosten` decimal(14,4) NOT NULL DEFAULT '0.0000', - `kommentar` varchar(255) NOT NULL, - `waehrung` varchar(16) NOT NULL DEFAULT '', - `gesperrt` tinyint(1) NOT NULL, - `automatischneuberechnen` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikelkalkulation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `bestellung` int(11) NOT NULL DEFAULT 0, + `datum` date NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `kostenart` varchar(255) NOT NULL, + `kosten` decimal(14,4) NOT NULL DEFAULT 0.0000, + `menge` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) NOT NULL, + `gesamtkosten` decimal(14,4) NOT NULL DEFAULT 0.0000, + `kommentar` varchar(255) NOT NULL, + `waehrung` varchar(16) NOT NULL, + `gesperrt` tinyint(1) NOT NULL, + `automatischneuberechnen` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelkalkulation_menge` -- +DROP TABLE IF EXISTS `artikelkalkulation_menge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelkalkulation_menge` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikelkalkulation_menge` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelkalkulation_tag` -- +DROP TABLE IF EXISTS `artikelkalkulation_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelkalkulation_tag` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `datum` date NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `preis` decimal(14,4) NOT NULL DEFAULT '0.0000', - `waehrung` varchar(16) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `json` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikelkalkulation_tag` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `datum` date NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `preis` decimal(14,4) NOT NULL DEFAULT 0.0000, + `waehrung` varchar(16) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `json` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelkategorien` -- +DROP TABLE IF EXISTS `artikelkategorien`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelkategorien` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(64) NOT NULL DEFAULT '', - `next_nummer` varchar(128) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `externenummer` tinyint(1) NOT NULL DEFAULT '0', - `parent` int(11) NOT NULL DEFAULT '0', - `steuer_erloese_inland_normal` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_normal` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_ermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_ermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_steuerfrei` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_steuerfrei` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_innergemeinschaftlich` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_innergemeinschaftlich` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_eunormal` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_nichtsteuerbar` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_euermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_nichtsteuerbar` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_eunormal` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_euermaessigt` varchar(10) NOT NULL DEFAULT '', - `steuer_erloese_inland_export` varchar(10) NOT NULL DEFAULT '', - `steuer_aufwendung_inland_import` varchar(10) NOT NULL DEFAULT '', - `steuertext_innergemeinschaftlich` varchar(1024) DEFAULT NULL, - `steuertext_export` varchar(1024) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `parent` (`parent`) -) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; +CREATE TABLE `artikelkategorien` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(64) NOT NULL, + `next_nummer` varchar(128) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `externenummer` tinyint(1) NOT NULL DEFAULT 0, + `parent` int(11) NOT NULL DEFAULT 0, + `steuer_erloese_inland_normal` varchar(10) NOT NULL, + `steuer_aufwendung_inland_normal` varchar(10) NOT NULL, + `steuer_erloese_inland_ermaessigt` varchar(10) NOT NULL, + `steuer_aufwendung_inland_ermaessigt` varchar(10) NOT NULL, + `steuer_erloese_inland_steuerfrei` varchar(10) NOT NULL, + `steuer_aufwendung_inland_steuerfrei` varchar(10) NOT NULL, + `steuer_erloese_inland_innergemeinschaftlich` varchar(10) NOT NULL, + `steuer_aufwendung_inland_innergemeinschaftlich` varchar(10) NOT NULL, + `steuer_erloese_inland_eunormal` varchar(10) NOT NULL, + `steuer_erloese_inland_nichtsteuerbar` varchar(10) NOT NULL, + `steuer_erloese_inland_euermaessigt` varchar(10) NOT NULL, + `steuer_aufwendung_inland_nichtsteuerbar` varchar(10) NOT NULL, + `steuer_aufwendung_inland_eunormal` varchar(10) NOT NULL, + `steuer_aufwendung_inland_euermaessigt` varchar(10) NOT NULL, + `steuer_erloese_inland_export` varchar(10) NOT NULL, + `steuer_aufwendung_inland_import` varchar(10) NOT NULL, + `steuertext_innergemeinschaftlich` varchar(1024) DEFAULT NULL, + `steuertext_export` varchar(1024) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `parent` (`parent`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelkontingente` -- +DROP TABLE IF EXISTS `artikelkontingente`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelkontingente` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `menge` decimal(10,2) NOT NULL DEFAULT '0.00', - `datum` date DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikelkontingente` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `menge` decimal(10,2) NOT NULL DEFAULT 0.00, + `datum` date DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikelnummer_fremdnummern` -- +DROP TABLE IF EXISTS `artikelnummer_fremdnummern`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikelnummer_fremdnummern` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) DEFAULT '', - `nummer` varchar(255) DEFAULT '', - `shopid` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `scannable` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`), - KEY `shopid` (`shopid`), - KEY `nummer` (`nummer`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikelnummer_fremdnummern` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) DEFAULT NULL, + `nummer` varchar(255) DEFAULT NULL, + `shopid` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) DEFAULT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `scannable` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`), + KEY `shopid` (`shopid`), + KEY `nummer` (`nummer`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikeloptionen` -- +DROP TABLE IF EXISTS `artikeloptionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikeloptionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `gruppe` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `name_de` varchar(255) NOT NULL, - `name_en` varchar(255) NOT NULL, - `preisadd` decimal(8,4) NOT NULL DEFAULT '0.0000', - `preisart` varchar(20) NOT NULL DEFAULT 'absolut', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikeloptionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `gruppe` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `name_de` varchar(255) NOT NULL, + `name_en` varchar(255) NOT NULL, + `preisadd` decimal(8,4) NOT NULL DEFAULT 0.0000, + `preisart` varchar(20) NOT NULL DEFAULT 'absolut', + `bearbeiter` varchar(255) NOT NULL, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `artikeloptionengruppe` -- +DROP TABLE IF EXISTS `artikeloptionengruppe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `artikeloptionengruppe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `name_de` varchar(255) NOT NULL, - `name_en` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `standardoption` tinyint(1) DEFAULT NULL, - `artikel` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `artikeloptionengruppe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `name_de` varchar(255) NOT NULL, + `name_en` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `standardoption` tinyint(1) DEFAULT NULL, + `artikel` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `aufgabe` -- +DROP TABLE IF EXISTS `aufgabe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `aufgabe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `aufgabe` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `prio` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `kostenstelle` int(11) NOT NULL, - `initiator` int(11) NOT NULL, - `angelegt_am` date NOT NULL, - `startdatum` date NOT NULL, - `startzeit` time NOT NULL, - `intervall_tage` int(11) NOT NULL, - `stunden` decimal(10,2) DEFAULT NULL, - `abgabe_bis` date NOT NULL, - `abgeschlossen` int(1) NOT NULL, - `abgeschlossen_am` date NOT NULL, - `sonstiges` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `startseite` int(1) DEFAULT NULL, - `oeffentlich` int(1) DEFAULT NULL, - `emailerinnerung` int(1) DEFAULT NULL, - `emailerinnerung_tage` int(11) DEFAULT NULL, - `note_x` int(11) DEFAULT NULL, - `note_y` int(11) DEFAULT NULL, - `note_z` int(11) DEFAULT NULL, - `note_color` varchar(255) DEFAULT NULL, - `pinwand` int(1) DEFAULT NULL, - `vorankuendigung` int(11) DEFAULT NULL, - `status` varchar(64) DEFAULT NULL, - `ganztags` int(1) NOT NULL DEFAULT '1', - `zeiterfassung_pflicht` tinyint(1) NOT NULL DEFAULT '0', - `zeiterfassung_abrechnung` tinyint(1) NOT NULL DEFAULT '0', - `kunde` int(11) DEFAULT NULL, - `pinwand_id` int(11) NOT NULL DEFAULT '0', - `sort` int(11) DEFAULT NULL, - `abgabe_bis_zeit` time DEFAULT NULL, - `email_gesendet_vorankuendigung` tinyint(1) NOT NULL DEFAULT '0', - `email_gesendet` tinyint(1) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `note_w` int(11) DEFAULT NULL, - `note_h` int(11) DEFAULT NULL, - `ansprechpartner_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `aufgabe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `aufgabe` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `prio` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `kostenstelle` int(11) NOT NULL, + `initiator` int(11) NOT NULL, + `angelegt_am` date NOT NULL, + `startdatum` date NOT NULL, + `startzeit` time NOT NULL, + `intervall_tage` int(11) NOT NULL, + `stunden` decimal(10,2) DEFAULT NULL, + `abgabe_bis` date NOT NULL, + `abgeschlossen` int(1) NOT NULL, + `abgeschlossen_am` date NOT NULL, + `sonstiges` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `startseite` int(1) DEFAULT NULL, + `oeffentlich` int(1) DEFAULT NULL, + `emailerinnerung` int(1) DEFAULT NULL, + `emailerinnerung_tage` int(11) DEFAULT NULL, + `note_x` int(11) DEFAULT NULL, + `note_y` int(11) DEFAULT NULL, + `note_z` int(11) DEFAULT NULL, + `note_color` varchar(255) DEFAULT NULL, + `pinwand` int(1) DEFAULT NULL, + `vorankuendigung` int(11) DEFAULT NULL, + `status` varchar(64) DEFAULT NULL, + `ganztags` int(1) NOT NULL DEFAULT 1, + `zeiterfassung_pflicht` tinyint(1) NOT NULL DEFAULT 0, + `zeiterfassung_abrechnung` tinyint(1) NOT NULL DEFAULT 0, + `kunde` int(11) DEFAULT NULL, + `pinwand_id` int(11) NOT NULL DEFAULT 0, + `sort` int(11) DEFAULT NULL, + `abgabe_bis_zeit` time DEFAULT NULL, + `email_gesendet_vorankuendigung` tinyint(1) NOT NULL DEFAULT 0, + `email_gesendet` tinyint(1) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `note_w` int(11) DEFAULT NULL, + `note_h` int(11) DEFAULT NULL, + `ansprechpartner_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `aufgabe_erledigt` -- +DROP TABLE IF EXISTS `aufgabe_erledigt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `aufgabe_erledigt` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `aufgabe` int(11) NOT NULL, - `abgeschlossen_am` date NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `aufgabe_erledigt` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `aufgabe` int(11) NOT NULL, + `abgeschlossen_am` date NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `auftrag` -- +DROP TABLE IF EXISTS `auftrag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `auftrag` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `art` varchar(255) NOT NULL, - `projekt` varchar(222) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `internet` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `angebot` varchar(255) NOT NULL, - `freitext` text NOT NULL, - `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `ust_befreit` int(1) NOT NULL, - `ust_inner` int(1) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(64) DEFAULT NULL, - `versandart` varchar(255) NOT NULL, - `vertrieb` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` decimal(10,2) NOT NULL, - `bank_inhaber` varchar(255) NOT NULL, - `bank_institut` varchar(255) NOT NULL, - `bank_blz` varchar(255) NOT NULL, - `bank_konto` varchar(255) NOT NULL, - `kreditkarte_typ` varchar(255) NOT NULL, - `kreditkarte_inhaber` varchar(255) NOT NULL, - `kreditkarte_nummer` varchar(255) NOT NULL, - `kreditkarte_pruefnummer` varchar(255) NOT NULL, - `kreditkarte_monat` varchar(255) NOT NULL, - `kreditkarte_jahr` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `autoversand` int(1) NOT NULL, - `keinporto` int(1) NOT NULL, - `keinestornomail` int(1) NOT NULL, - `abweichendelieferadresse` int(1) NOT NULL, - `liefername` varchar(255) NOT NULL, - `lieferabteilung` varchar(255) NOT NULL, - `lieferunterabteilung` varchar(255) NOT NULL, - `lieferland` varchar(255) NOT NULL, - `lieferstrasse` varchar(255) NOT NULL, - `lieferort` varchar(255) NOT NULL, - `lieferplz` varchar(255) NOT NULL, - `lieferadresszusatz` varchar(255) NOT NULL, - `lieferansprechpartner` varchar(255) NOT NULL, - `packstation_inhaber` varchar(255) NOT NULL, - `packstation_station` varchar(255) NOT NULL, - `packstation_ident` varchar(255) NOT NULL, - `packstation_plz` varchar(255) NOT NULL, - `packstation_ort` varchar(255) NOT NULL, - `autofreigabe` int(1) NOT NULL, - `freigabe` int(1) NOT NULL, - `nachbesserung` int(1) NOT NULL, - `gesamtsumme` decimal(18,2) NOT NULL DEFAULT '0.00', - `inbearbeitung` int(1) NOT NULL, - `abgeschlossen` int(1) NOT NULL, - `nachlieferung` int(1) NOT NULL, - `lager_ok` int(1) NOT NULL, - `porto_ok` int(1) NOT NULL, - `ust_ok` int(1) NOT NULL, - `check_ok` int(1) NOT NULL, - `vorkasse_ok` int(1) NOT NULL, - `nachnahme_ok` int(1) NOT NULL, - `reserviert_ok` int(1) NOT NULL, - `partnerid` int(11) NOT NULL, - `folgebestaetigung` date NOT NULL, - `zahlungsmail` date NOT NULL, - `stornogrund` varchar(255) NOT NULL, - `stornosonstiges` varchar(255) NOT NULL, - `stornorueckzahlung` varchar(255) NOT NULL, - `stornobetrag` decimal(18,2) NOT NULL DEFAULT '0.00', - `stornobankinhaber` varchar(255) NOT NULL, - `stornobankkonto` varchar(255) NOT NULL, - `stornobankblz` varchar(255) NOT NULL, - `stornobankbank` varchar(255) NOT NULL, - `stornogutschrift` int(1) NOT NULL, - `stornogutschriftbeleg` varchar(255) NOT NULL, - `stornowareerhalten` int(1) NOT NULL, - `stornomanuellebearbeitung` varchar(255) NOT NULL, - `stornokommentar` text NOT NULL, - `stornobezahlt` varchar(255) NOT NULL, - `stornobezahltam` date NOT NULL, - `stornobezahltvon` varchar(255) NOT NULL, - `stornoabgeschlossen` int(1) NOT NULL, - `stornorueckzahlungper` varchar(255) NOT NULL, - `stornowareerhaltenretour` int(1) NOT NULL, - `partnerausgezahlt` int(1) NOT NULL, - `partnerausgezahltam` date NOT NULL, - `kennen` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `keinetrackingmail` int(1) DEFAULT NULL, - `zahlungsmailcounter` int(1) DEFAULT NULL, - `rma` int(1) NOT NULL DEFAULT '0', - `transaktionsnummer` varchar(255) NOT NULL DEFAULT '', - `vorabbezahltmarkieren` int(1) NOT NULL DEFAULT '0', - `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT '0', - `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `erloes_netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `umsatz_netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `lieferdatum` date DEFAULT NULL, - `tatsaechlicheslieferdatum` date DEFAULT NULL, - `liefertermin_ok` int(1) NOT NULL DEFAULT '1', - `teillieferung_moeglich` int(1) NOT NULL DEFAULT '0', - `kreditlimit_ok` int(1) NOT NULL DEFAULT '1', - `kreditlimit_freigabe` int(1) NOT NULL DEFAULT '0', - `liefersperre_ok` int(1) NOT NULL DEFAULT '1', - `teillieferungvon` int(11) NOT NULL DEFAULT '0', - `teillieferungnummer` int(11) NOT NULL DEFAULT '0', - `vertriebid` int(11) DEFAULT NULL, - `aktion` varchar(64) NOT NULL DEFAULT '', - `provision` decimal(10,2) DEFAULT NULL, - `provision_summe` decimal(10,2) DEFAULT NULL, - `anfrageid` int(11) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - `shopextid` varchar(1024) NOT NULL DEFAULT '', - `shopextstatus` varchar(1024) NOT NULL DEFAULT '', - `ihrebestellnummer` varchar(255) DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `realrabatt` decimal(10,2) DEFAULT NULL, - `rabatt` decimal(10,2) DEFAULT NULL, - `einzugsdatum` date DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `shop` int(11) NOT NULL DEFAULT '0', - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `keinsteuersatz` int(1) DEFAULT NULL, - `angebotid` int(11) DEFAULT NULL, - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `ohne_briefpapier` int(1) DEFAULT NULL, - `auftragseingangper` varchar(64) NOT NULL DEFAULT '', - `lieferid` int(11) NOT NULL DEFAULT '0', - `ansprechpartnerid` int(11) NOT NULL DEFAULT '0', - `systemfreitext` text NOT NULL, - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `lieferungtrotzsperre` int(1) NOT NULL DEFAULT '0', - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `saldo` decimal(10,2) NOT NULL DEFAULT '0.00', - `saldogeprueft` datetime DEFAULT NULL, - `lieferantenauftrag` tinyint(1) NOT NULL DEFAULT '0', - `lieferant` int(11) NOT NULL DEFAULT '0', - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT '0', - `rabatteportofestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `sprache` varchar(32) NOT NULL DEFAULT '', - `bundesland` varchar(64) NOT NULL DEFAULT '', - `gln` varchar(64) NOT NULL DEFAULT '', - `liefergln` varchar(64) NOT NULL DEFAULT '', - `lieferemail` varchar(200) NOT NULL DEFAULT '', - `reservationdate` date DEFAULT NULL, - `rechnungid` int(11) NOT NULL DEFAULT '0', - `deliverythresholdvatid` varchar(64) NOT NULL DEFAULT '', - `fastlane` tinyint(1) DEFAULT '0', - `bearbeiterid` int(11) DEFAULT NULL, - `kurs` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `lieferantennummer` varchar(255) NOT NULL DEFAULT '', - `lieferantkdrnummer` varchar(255) NOT NULL DEFAULT '', - `ohne_artikeltext` int(1) DEFAULT NULL, - `webid` int(11) DEFAULT NULL, - `anzeigesteuer` tinyint(11) NOT NULL DEFAULT '0', - `cronjobkommissionierung` int(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `liefertitel` varchar(64) NOT NULL DEFAULT '', - `standardlager` int(11) NOT NULL DEFAULT '0', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontoberechnet` tinyint(1) NOT NULL DEFAULT '0', - `kommissionskonsignationslager` int(11) NOT NULL DEFAULT '0', - `extsoll` decimal(10,2) NOT NULL DEFAULT '0.00', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `lieferbundesstaat` varchar(32) NOT NULL DEFAULT '', - `kundennummer_buchhaltung` varchar(32) NOT NULL DEFAULT '', - `storage_country` varchar(3) NOT NULL DEFAULT '', - `shop_status_update_attempt` int(3) NOT NULL DEFAULT '0', - `shop_status_update_last_attempt_at` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`), - KEY `adresse` (`adresse`), - KEY `vertriebid` (`vertriebid`), - KEY `status` (`status`), - KEY `datum` (`datum`), - KEY `belegnr` (`belegnr`), - KEY `gesamtsumme` (`gesamtsumme`), - KEY `transaktionsnummer` (`transaktionsnummer`), - KEY `internet` (`internet`), - KEY `lieferantkdrnummer` (`lieferantkdrnummer`), - KEY `teillieferungvon` (`teillieferungvon`), - KEY `versandart` (`versandart`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `auftrag` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `art` varchar(255) NOT NULL, + `projekt` varchar(222) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `internet` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `angebot` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `internebemerkung` text NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `ust_befreit` int(1) NOT NULL, + `ust_inner` int(1) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(64) DEFAULT NULL, + `versandart` varchar(255) NOT NULL, + `vertrieb` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` decimal(10,2) NOT NULL, + `bank_inhaber` varchar(255) NOT NULL, + `bank_institut` varchar(255) NOT NULL, + `bank_blz` varchar(255) NOT NULL, + `bank_konto` varchar(255) NOT NULL, + `kreditkarte_typ` varchar(255) NOT NULL, + `kreditkarte_inhaber` varchar(255) NOT NULL, + `kreditkarte_nummer` varchar(255) NOT NULL, + `kreditkarte_pruefnummer` varchar(255) NOT NULL, + `kreditkarte_monat` varchar(255) NOT NULL, + `kreditkarte_jahr` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `autoversand` int(1) NOT NULL, + `keinporto` int(1) NOT NULL, + `keinestornomail` int(1) NOT NULL, + `abweichendelieferadresse` int(1) NOT NULL, + `liefername` varchar(255) NOT NULL, + `lieferabteilung` varchar(255) NOT NULL, + `lieferunterabteilung` varchar(255) NOT NULL, + `lieferland` varchar(255) NOT NULL, + `lieferstrasse` varchar(255) NOT NULL, + `lieferort` varchar(255) NOT NULL, + `lieferplz` varchar(255) NOT NULL, + `lieferadresszusatz` varchar(255) NOT NULL, + `lieferansprechpartner` varchar(255) NOT NULL, + `packstation_inhaber` varchar(255) NOT NULL, + `packstation_station` varchar(255) NOT NULL, + `packstation_ident` varchar(255) NOT NULL, + `packstation_plz` varchar(255) NOT NULL, + `packstation_ort` varchar(255) NOT NULL, + `autofreigabe` int(1) NOT NULL, + `freigabe` int(1) NOT NULL, + `nachbesserung` int(1) NOT NULL, + `gesamtsumme` decimal(18,2) NOT NULL DEFAULT 0.00, + `inbearbeitung` int(1) NOT NULL, + `abgeschlossen` int(1) NOT NULL, + `nachlieferung` int(1) NOT NULL, + `lager_ok` int(1) NOT NULL, + `porto_ok` int(1) NOT NULL, + `ust_ok` int(1) NOT NULL, + `check_ok` int(1) NOT NULL, + `vorkasse_ok` int(1) NOT NULL, + `nachnahme_ok` int(1) NOT NULL, + `reserviert_ok` int(1) NOT NULL, + `partnerid` int(11) NOT NULL, + `folgebestaetigung` date NOT NULL, + `zahlungsmail` date NOT NULL, + `stornogrund` varchar(255) NOT NULL, + `stornosonstiges` varchar(255) NOT NULL, + `stornorueckzahlung` varchar(255) NOT NULL, + `stornobetrag` decimal(18,2) NOT NULL DEFAULT 0.00, + `stornobankinhaber` varchar(255) NOT NULL, + `stornobankkonto` varchar(255) NOT NULL, + `stornobankblz` varchar(255) NOT NULL, + `stornobankbank` varchar(255) NOT NULL, + `stornogutschrift` int(1) NOT NULL, + `stornogutschriftbeleg` varchar(255) NOT NULL, + `stornowareerhalten` int(1) NOT NULL, + `stornomanuellebearbeitung` varchar(255) NOT NULL, + `stornokommentar` text NOT NULL, + `stornobezahlt` varchar(255) NOT NULL, + `stornobezahltam` date NOT NULL, + `stornobezahltvon` varchar(255) NOT NULL, + `stornoabgeschlossen` int(1) NOT NULL, + `stornorueckzahlungper` varchar(255) NOT NULL, + `stornowareerhaltenretour` int(1) NOT NULL, + `partnerausgezahlt` int(1) NOT NULL, + `partnerausgezahltam` date NOT NULL, + `kennen` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `keinetrackingmail` int(1) DEFAULT NULL, + `zahlungsmailcounter` int(1) DEFAULT NULL, + `rma` int(1) NOT NULL DEFAULT 0, + `transaktionsnummer` varchar(255) NOT NULL, + `vorabbezahltmarkieren` int(1) NOT NULL DEFAULT 0, + `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT 0, + `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `erloes_netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `umsatz_netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `lieferdatum` date DEFAULT NULL, + `tatsaechlicheslieferdatum` date DEFAULT NULL, + `liefertermin_ok` int(1) NOT NULL DEFAULT 1, + `teillieferung_moeglich` int(1) NOT NULL DEFAULT 0, + `kreditlimit_ok` int(1) NOT NULL DEFAULT 1, + `kreditlimit_freigabe` int(1) NOT NULL DEFAULT 0, + `liefersperre_ok` int(1) NOT NULL DEFAULT 1, + `teillieferungvon` int(11) NOT NULL DEFAULT 0, + `teillieferungnummer` int(11) NOT NULL DEFAULT 0, + `vertriebid` int(11) DEFAULT NULL, + `aktion` varchar(64) NOT NULL, + `provision` decimal(10,2) DEFAULT NULL, + `provision_summe` decimal(10,2) DEFAULT NULL, + `anfrageid` int(11) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + `shopextid` varchar(1024) NOT NULL, + `shopextstatus` varchar(1024) NOT NULL, + `ihrebestellnummer` varchar(255) DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `realrabatt` decimal(10,2) DEFAULT NULL, + `rabatt` decimal(10,2) DEFAULT NULL, + `einzugsdatum` date DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `shop` int(11) NOT NULL DEFAULT 0, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `keinsteuersatz` int(1) DEFAULT NULL, + `angebotid` int(11) DEFAULT NULL, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `ohne_briefpapier` int(1) DEFAULT NULL, + `auftragseingangper` varchar(64) NOT NULL, + `lieferid` int(11) NOT NULL DEFAULT 0, + `ansprechpartnerid` int(11) NOT NULL DEFAULT 0, + `systemfreitext` text NOT NULL, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `lieferungtrotzsperre` int(1) NOT NULL DEFAULT 0, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `angelegtam` datetime DEFAULT NULL, + `saldo` decimal(10,2) NOT NULL DEFAULT 0.00, + `saldogeprueft` datetime DEFAULT NULL, + `lieferantenauftrag` tinyint(1) NOT NULL DEFAULT 0, + `lieferant` int(11) NOT NULL DEFAULT 0, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT 0, + `rabatteportofestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `sprache` varchar(32) NOT NULL, + `bundesland` varchar(64) NOT NULL, + `gln` varchar(64) NOT NULL, + `liefergln` varchar(64) NOT NULL, + `lieferemail` varchar(200) NOT NULL, + `reservationdate` date DEFAULT NULL, + `rechnungid` int(11) NOT NULL DEFAULT 0, + `deliverythresholdvatid` varchar(64) NOT NULL, + `fastlane` tinyint(1) DEFAULT 0, + `bearbeiterid` int(11) DEFAULT NULL, + `kurs` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `lieferantennummer` varchar(255) NOT NULL, + `lieferantkdrnummer` varchar(255) NOT NULL, + `ohne_artikeltext` int(1) DEFAULT NULL, + `webid` int(11) DEFAULT NULL, + `anzeigesteuer` tinyint(11) NOT NULL DEFAULT 0, + `cronjobkommissionierung` int(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `liefertitel` varchar(64) NOT NULL, + `standardlager` int(11) NOT NULL DEFAULT 0, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontoberechnet` tinyint(1) NOT NULL DEFAULT 0, + `kommissionskonsignationslager` int(11) NOT NULL DEFAULT 0, + `extsoll` decimal(10,2) NOT NULL DEFAULT 0.00, + `bundesstaat` varchar(32) NOT NULL, + `lieferbundesstaat` varchar(32) NOT NULL, + `kundennummer_buchhaltung` varchar(32) NOT NULL, + `storage_country` varchar(3) NOT NULL, + `shop_status_update_attempt` int(3) NOT NULL DEFAULT 0, + `shop_status_update_last_attempt_at` datetime DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`), + KEY `adresse` (`adresse`), + KEY `vertriebid` (`vertriebid`), + KEY `status` (`status`), + KEY `datum` (`datum`), + KEY `belegnr` (`belegnr`), + KEY `gesamtsumme` (`gesamtsumme`), + KEY `transaktionsnummer` (`transaktionsnummer`), + KEY `internet` (`internet`), + KEY `lieferantkdrnummer` (`lieferantkdrnummer`), + KEY `teillieferungvon` (`teillieferungvon`), + KEY `versandart` (`versandart`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `auftrag_position` -- +DROP TABLE IF EXISTS `auftrag_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `auftrag_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `auftrag` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `geliefert` int(11) NOT NULL, - `geliefert_menge` decimal(14,4) NOT NULL, - `explodiert` int(1) NOT NULL, - `explodiert_parent` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `punkte` decimal(10,2) NOT NULL, - `bonuspunkte` decimal(10,2) NOT NULL, - `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, - `keinrabatterlaubt` int(1) DEFAULT NULL, - `grundrabatt` decimal(10,2) DEFAULT NULL, - `rabattsync` int(1) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `einheit` varchar(255) NOT NULL DEFAULT '', - `webid` varchar(1024) DEFAULT NULL, - `rabatt` decimal(10,2) NOT NULL, - `nachbestelltexternereinkauf` int(1) DEFAULT NULL, - `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', - `herkunftsland` varchar(128) NOT NULL DEFAULT '0', - `artikelnummerkunde` varchar(128) NOT NULL DEFAULT '', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(1024) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `einkaufspreiswaehrung` varchar(8) NOT NULL DEFAULT '', - `einkaufspreis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisid` int(11) NOT NULL DEFAULT '0', - `ekwaehrung` varchar(8) NOT NULL DEFAULT '', - `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `formelmenge` varchar(255) NOT NULL DEFAULT '', - `formelpreis` varchar(255) NOT NULL DEFAULT '', - `ohnepreis` int(1) NOT NULL DEFAULT '0', - `zolleinzelwert` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `zollgesamtwert` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `zollwaehrung` varchar(3) NOT NULL DEFAULT '', - `zolleinzelgewicht` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `zollgesamtgewicht` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `potentiellerliefertermin` date DEFAULT NULL, - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, - `steuerbetrag` decimal(14,4) DEFAULT NULL, - `skontosperre` tinyint(1) NOT NULL DEFAULT '0', - `ausblenden_im_pdf` tinyint(1) DEFAULT '0', - `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `auftrag` (`auftrag`,`artikel`), - KEY `artikel` (`artikel`), - KEY `auftrag_2` (`auftrag`), - KEY `explodiert_parent` (`explodiert_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `auftrag_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `auftrag` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `geliefert` int(11) NOT NULL, + `geliefert_menge` decimal(14,4) NOT NULL, + `explodiert` int(1) NOT NULL, + `explodiert_parent` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `punkte` decimal(10,2) NOT NULL, + `bonuspunkte` decimal(10,2) NOT NULL, + `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, + `keinrabatterlaubt` int(1) DEFAULT NULL, + `grundrabatt` decimal(10,2) DEFAULT NULL, + `rabattsync` int(1) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `einheit` varchar(255) NOT NULL, + `webid` varchar(1024) DEFAULT NULL, + `rabatt` decimal(10,2) NOT NULL, + `nachbestelltexternereinkauf` int(1) DEFAULT NULL, + `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', + `herkunftsland` varchar(128) NOT NULL DEFAULT '0', + `artikelnummerkunde` varchar(128) NOT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `einkaufspreiswaehrung` varchar(8) NOT NULL, + `einkaufspreis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisid` int(11) NOT NULL DEFAULT 0, + `ekwaehrung` varchar(8) NOT NULL, + `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `formelmenge` varchar(255) NOT NULL, + `formelpreis` varchar(255) NOT NULL, + `ohnepreis` int(1) NOT NULL DEFAULT 0, + `zolleinzelwert` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `zollgesamtwert` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `zollwaehrung` varchar(3) NOT NULL, + `zolleinzelgewicht` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `zollgesamtgewicht` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `potentiellerliefertermin` date DEFAULT NULL, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, + `steuerbetrag` decimal(14,4) DEFAULT NULL, + `skontosperre` tinyint(1) NOT NULL DEFAULT 0, + `ausblenden_im_pdf` tinyint(1) DEFAULT 0, + `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `auftrag` (`auftrag`,`artikel`), + KEY `artikel` (`artikel`), + KEY `auftrag_2` (`auftrag`), + KEY `explodiert_parent` (`explodiert_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `auftrag_protokoll` -- +DROP TABLE IF EXISTS `auftrag_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `auftrag_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `auftrag` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `auftrag` (`auftrag`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `auftrag_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `auftrag` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `auftrag` (`auftrag`) +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `autoresponder_blacklist` -- +DROP TABLE IF EXISTS `autoresponder_blacklist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `autoresponder_blacklist` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `cachetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `mailaddress` varchar(512) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `autoresponder_blacklist` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `cachetime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `mailaddress` varchar(512) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `backup` -- +DROP TABLE IF EXISTS `backup`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `backup` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `name` varchar(255) DEFAULT NULL, - `dateiname` varchar(255) DEFAULT NULL, - `datum` datetime NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `backup` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `name` varchar(255) DEFAULT NULL, + `dateiname` varchar(255) DEFAULT NULL, + `datum` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `beleg_chargesnmhd` -- +DROP TABLE IF EXISTS `beleg_chargesnmhd`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `beleg_chargesnmhd` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype` varchar(255) NOT NULL DEFAULT '', - `doctypeid` int(11) NOT NULL DEFAULT '0', - `pos` int(11) NOT NULL DEFAULT '0', - `type` varchar(10) NOT NULL DEFAULT '', - `type2` varchar(10) NOT NULL DEFAULT '', - `type3` varchar(10) NOT NULL DEFAULT '', - `wert` varchar(255) NOT NULL DEFAULT '', - `wert2` varchar(255) NOT NULL DEFAULT '', - `wert3` varchar(255) NOT NULL DEFAULT '', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `lagerplatz` int(11) NOT NULL DEFAULT '0', - `internebemerkung` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `doctypeid` (`doctypeid`), - KEY `pos` (`pos`), - KEY `type` (`type`), - KEY `type2` (`type2`), - KEY `wert` (`wert`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `beleg_chargesnmhd` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype` varchar(255) NOT NULL, + `doctypeid` int(11) NOT NULL DEFAULT 0, + `pos` int(11) NOT NULL DEFAULT 0, + `type` varchar(10) NOT NULL, + `type2` varchar(10) NOT NULL, + `type3` varchar(10) NOT NULL, + `wert` varchar(255) NOT NULL, + `wert2` varchar(255) NOT NULL, + `wert3` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `lagerplatz` int(11) NOT NULL DEFAULT 0, + `internebemerkung` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `doctypeid` (`doctypeid`), + KEY `pos` (`pos`), + KEY `type` (`type`), + KEY `type2` (`type2`), + KEY `wert` (`wert`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `beleg_zwischenpositionen` -- +DROP TABLE IF EXISTS `beleg_zwischenpositionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `beleg_zwischenpositionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype` varchar(255) NOT NULL, - `doctypeid` int(11) NOT NULL, - `pos` int(11) NOT NULL, - `sort` int(11) NOT NULL, - `postype` varchar(64) NOT NULL, - `wert` text NOT NULL, - PRIMARY KEY (`id`), - KEY `doctypeid` (`doctypeid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `beleg_zwischenpositionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype` varchar(255) NOT NULL, + `doctypeid` int(11) NOT NULL, + `pos` int(11) NOT NULL, + `sort` int(11) NOT NULL, + `postype` varchar(64) NOT NULL, + `wert` text NOT NULL, + PRIMARY KEY (`id`), + KEY `doctypeid` (`doctypeid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Temporary table structure for view `belege` +-- + +DROP TABLE IF EXISTS `belege`; +/*!50001 DROP VIEW IF EXISTS `belege`*/; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +/*!50001 CREATE VIEW `belege` AS SELECT + 1 AS `id`, + 1 AS `adresse`, + 1 AS `datum`, + 1 AS `belegnr`, + 1 AS `status`, + 1 AS `land`, + 1 AS `typ`, + 1 AS `umsatz_netto`, + 1 AS `erloes_netto`, + 1 AS `deckungsbeitrag`, + 1 AS `provision_summe`, + 1 AS `vertriebid`, + 1 AS `gruppe` */; +SET character_set_client = @saved_cs_client; + +-- +-- Temporary table structure for view `belegegesamt` +-- + +DROP TABLE IF EXISTS `belegegesamt`; +/*!50001 DROP VIEW IF EXISTS `belegegesamt`*/; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +/*!50001 CREATE VIEW `belegegesamt` AS SELECT + 1 AS `id`, + 1 AS `adresse`, + 1 AS `datum`, + 1 AS `belegnr`, + 1 AS `status`, + 1 AS `land`, + 1 AS `typ`, + 1 AS `umsatz_netto`, + 1 AS `umsatz_brutto`, + 1 AS `erloes_netto`, + 1 AS `deckungsbeitrag`, + 1 AS `provision_summe`, + 1 AS `vertriebid`, + 1 AS `gruppe`, + 1 AS `projekt` */; +SET character_set_client = @saved_cs_client; + -- -- Table structure for table `belegeimport` -- +DROP TABLE IF EXISTS `belegeimport`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `belegeimport` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `userid` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `art` varchar(20) NOT NULL DEFAULT '', - `status` varchar(24) NOT NULL DEFAULT '', - `beleg_status` varchar(24) NOT NULL DEFAULT '', - `beleg_datum` varchar(24) NOT NULL DEFAULT '', - `beleg_lieferdatum` varchar(24) NOT NULL DEFAULT '', - `beleg_tatsaechlicheslieferdatum` varchar(24) NOT NULL DEFAULT '', - `beleg_versandart` varchar(24) NOT NULL DEFAULT '', - `beleg_zahlungsweise` varchar(32) NOT NULL DEFAULT '', - `beleg_belegnr` varchar(20) NOT NULL DEFAULT '', - `beleg_hauptbelegnr` varchar(20) NOT NULL DEFAULT '', - `beleg_kundennummer` varchar(64) NOT NULL DEFAULT '', - `beleg_lieferantennummer` varchar(64) NOT NULL DEFAULT '', - `beleg_name` varchar(64) NOT NULL DEFAULT '', - `beleg_abteilung` varchar(255) NOT NULL DEFAULT '', - `beleg_unterabteilung` varchar(255) NOT NULL DEFAULT '', - `beleg_adresszusatz` varchar(255) NOT NULL DEFAULT '', - `beleg_ansprechpartner` varchar(255) NOT NULL DEFAULT '', - `beleg_telefon` varchar(255) NOT NULL DEFAULT '', - `beleg_email` varchar(255) NOT NULL DEFAULT '', - `beleg_land` varchar(2) NOT NULL DEFAULT '', - `beleg_strasse` varchar(255) NOT NULL DEFAULT '', - `beleg_plz` varchar(64) NOT NULL DEFAULT '', - `beleg_ort` varchar(255) NOT NULL DEFAULT '', - `beleg_projekt` int(11) NOT NULL DEFAULT '0', - `beleg_aktion` varchar(255) NOT NULL DEFAULT '', - `beleg_internebemerkung` text NOT NULL, - `beleg_internebezeichnung` text NOT NULL, - `beleg_freitext` text NOT NULL, - `beleg_ihrebestellnummer` varchar(255) NOT NULL DEFAULT '', - `beleg_lieferbedingung` varchar(255) NOT NULL DEFAULT '', - `beleg_art` varchar(32) NOT NULL DEFAULT '', - `beleg_auftragid` int(11) NOT NULL DEFAULT '0', - `artikel_nummer` varchar(255) NOT NULL DEFAULT '', - `artikel_ean` varchar(255) NOT NULL DEFAULT '', - `artikel_bezeichnung` varchar(255) NOT NULL DEFAULT '', - `artikel_beschreibung` text NOT NULL, - `artikel_menge` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `artikel_preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `artikel_preisfuermenge` decimal(18,8) NOT NULL DEFAULT '1.00000000', - `artikel_rabatt` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `artikel_waehrung` varchar(3) NOT NULL DEFAULT '', - `artikel_lieferdatum` date DEFAULT NULL, - `artikel_sort` int(11) NOT NULL DEFAULT '1', - `artikel_umsatzsteuer` varchar(255) NOT NULL DEFAULT '', - `artikel_einheit` varchar(255) NOT NULL DEFAULT '', - `artikel_zolltarifnummer` varchar(255) NOT NULL DEFAULT '', - `artikel_herkunftsland` varchar(255) NOT NULL DEFAULT '', - `artikel_artikelnummerkunde` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld1` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld2` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld3` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld4` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld5` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld6` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld7` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld8` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld9` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld10` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld11` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld12` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld13` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld14` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld15` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld16` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld17` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld18` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld19` varchar(255) NOT NULL DEFAULT '', - `artikel_freifeld20` varchar(255) NOT NULL DEFAULT '', - `beleg_unterlistenexplodieren` int(11) NOT NULL DEFAULT '0', - `artikel_steuersatz` int(11) DEFAULT '-1', - `adresse_typ` varchar(255) NOT NULL DEFAULT '', - `adresse_ustid` varchar(255) NOT NULL DEFAULT '', - `adresse_anschreiben` varchar(255) NOT NULL DEFAULT '', - `adresscounter` int(11) DEFAULT '0', - `adresse_freifeld1` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld2` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld3` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld4` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld5` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld6` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld7` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld8` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld9` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld10` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld11` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld12` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld13` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld14` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld15` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld16` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld17` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld18` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld19` varchar(255) NOT NULL DEFAULT '', - `adresse_freifeld20` varchar(255) NOT NULL DEFAULT '', - `beleg_sprache` varchar(20) NOT NULL DEFAULT '', - `beleg_auftragsnummer` varchar(20) NOT NULL DEFAULT '', - `beleg_rechnungsnumer` varchar(20) NOT NULL DEFAULT '', - `beleg_liefername` varchar(64) NOT NULL DEFAULT '', - `beleg_lieferabteilung` varchar(255) NOT NULL DEFAULT '', - `beleg_lieferunterabteilung` varchar(255) NOT NULL DEFAULT '', - `beleg_lieferland` varchar(2) NOT NULL DEFAULT '', - `beleg_lieferstrasse` varchar(255) NOT NULL DEFAULT '', - `beleg_lieferort` varchar(255) NOT NULL DEFAULT '', - `beleg_lieferplz` varchar(64) NOT NULL DEFAULT '', - `beleg_lieferadresszusatz` varchar(255) NOT NULL DEFAULT '', - `beleg_lieferansprechpartner` varchar(255) NOT NULL DEFAULT '', - `beleg_abschlagauftrag` varchar(20) NOT NULL DEFAULT '', - `beleg_abschlagauftragbezeichnung` varchar(255) NOT NULL DEFAULT '', - `beleg_zahlungszieltage` int(11) NOT NULL DEFAULT '0', - `beleg_zahlungszieltageskonto` int(11) NOT NULL DEFAULT '0', - `beleg_zahlungszielskonto` decimal(10,2) NOT NULL DEFAULT '0.00', - `beleg_bodyzusatz` text NOT NULL, - `beleg_bearbeiter` varchar(255) NOT NULL DEFAULT '', - `beleg_waehrung` varchar(20) NOT NULL DEFAULT '', - `beleg_bundesstaat` varchar(20) NOT NULL DEFAULT '', - `beleg_internet` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `belegeimport` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `userid` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `art` varchar(20) NOT NULL, + `status` varchar(24) NOT NULL, + `beleg_status` varchar(24) NOT NULL, + `beleg_datum` varchar(24) NOT NULL, + `beleg_lieferdatum` varchar(24) NOT NULL, + `beleg_tatsaechlicheslieferdatum` varchar(24) NOT NULL, + `beleg_versandart` varchar(24) NOT NULL, + `beleg_zahlungsweise` varchar(32) NOT NULL, + `beleg_belegnr` varchar(20) NOT NULL, + `beleg_hauptbelegnr` varchar(20) NOT NULL, + `beleg_kundennummer` varchar(64) NOT NULL, + `beleg_lieferantennummer` varchar(64) NOT NULL, + `beleg_name` varchar(64) NOT NULL, + `beleg_abteilung` varchar(255) NOT NULL, + `beleg_unterabteilung` varchar(255) NOT NULL, + `beleg_adresszusatz` varchar(255) NOT NULL, + `beleg_ansprechpartner` varchar(255) NOT NULL, + `beleg_telefon` varchar(255) NOT NULL, + `beleg_email` varchar(255) NOT NULL, + `beleg_land` varchar(2) NOT NULL, + `beleg_strasse` varchar(255) NOT NULL, + `beleg_plz` varchar(64) NOT NULL, + `beleg_ort` varchar(255) NOT NULL, + `beleg_projekt` int(11) NOT NULL DEFAULT 0, + `beleg_aktion` varchar(255) NOT NULL, + `beleg_internebemerkung` text NOT NULL, + `beleg_internebezeichnung` text NOT NULL, + `beleg_freitext` text NOT NULL, + `beleg_ihrebestellnummer` varchar(255) NOT NULL, + `beleg_lieferbedingung` varchar(255) NOT NULL, + `beleg_art` varchar(32) NOT NULL, + `beleg_auftragid` int(11) NOT NULL DEFAULT 0, + `artikel_nummer` varchar(255) NOT NULL, + `artikel_ean` varchar(255) NOT NULL, + `artikel_bezeichnung` varchar(255) NOT NULL, + `artikel_beschreibung` text NOT NULL, + `artikel_menge` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `artikel_preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `artikel_preisfuermenge` decimal(18,8) NOT NULL DEFAULT 1.00000000, + `artikel_rabatt` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `artikel_waehrung` varchar(3) NOT NULL, + `artikel_lieferdatum` date DEFAULT NULL, + `artikel_sort` int(11) NOT NULL DEFAULT 1, + `artikel_umsatzsteuer` varchar(255) NOT NULL, + `artikel_einheit` varchar(255) NOT NULL, + `artikel_zolltarifnummer` varchar(255) NOT NULL, + `artikel_herkunftsland` varchar(255) NOT NULL, + `artikel_artikelnummerkunde` varchar(255) NOT NULL, + `artikel_freifeld1` varchar(255) NOT NULL, + `artikel_freifeld2` varchar(255) NOT NULL, + `artikel_freifeld3` varchar(255) NOT NULL, + `artikel_freifeld4` varchar(255) NOT NULL, + `artikel_freifeld5` varchar(255) NOT NULL, + `artikel_freifeld6` varchar(255) NOT NULL, + `artikel_freifeld7` varchar(255) NOT NULL, + `artikel_freifeld8` varchar(255) NOT NULL, + `artikel_freifeld9` varchar(255) NOT NULL, + `artikel_freifeld10` varchar(255) NOT NULL, + `artikel_freifeld11` varchar(255) NOT NULL, + `artikel_freifeld12` varchar(255) NOT NULL, + `artikel_freifeld13` varchar(255) NOT NULL, + `artikel_freifeld14` varchar(255) NOT NULL, + `artikel_freifeld15` varchar(255) NOT NULL, + `artikel_freifeld16` varchar(255) NOT NULL, + `artikel_freifeld17` varchar(255) NOT NULL, + `artikel_freifeld18` varchar(255) NOT NULL, + `artikel_freifeld19` varchar(255) NOT NULL, + `artikel_freifeld20` varchar(255) NOT NULL, + `beleg_unterlistenexplodieren` int(11) NOT NULL DEFAULT 0, + `artikel_steuersatz` int(11) DEFAULT -1, + `adresse_typ` varchar(255) NOT NULL, + `adresse_ustid` varchar(255) NOT NULL, + `adresse_anschreiben` varchar(255) NOT NULL, + `adresscounter` int(11) DEFAULT 0, + `adresse_freifeld1` varchar(255) NOT NULL, + `adresse_freifeld2` varchar(255) NOT NULL, + `adresse_freifeld3` varchar(255) NOT NULL, + `adresse_freifeld4` varchar(255) NOT NULL, + `adresse_freifeld5` varchar(255) NOT NULL, + `adresse_freifeld6` varchar(255) NOT NULL, + `adresse_freifeld7` varchar(255) NOT NULL, + `adresse_freifeld8` varchar(255) NOT NULL, + `adresse_freifeld9` varchar(255) NOT NULL, + `adresse_freifeld10` varchar(255) NOT NULL, + `adresse_freifeld11` varchar(255) NOT NULL, + `adresse_freifeld12` varchar(255) NOT NULL, + `adresse_freifeld13` varchar(255) NOT NULL, + `adresse_freifeld14` varchar(255) NOT NULL, + `adresse_freifeld15` varchar(255) NOT NULL, + `adresse_freifeld16` varchar(255) NOT NULL, + `adresse_freifeld17` varchar(255) NOT NULL, + `adresse_freifeld18` varchar(255) NOT NULL, + `adresse_freifeld19` varchar(255) NOT NULL, + `adresse_freifeld20` varchar(255) NOT NULL, + `beleg_sprache` varchar(20) NOT NULL, + `beleg_auftragsnummer` varchar(20) NOT NULL, + `beleg_rechnungsnumer` varchar(20) NOT NULL, + `beleg_liefername` varchar(64) NOT NULL, + `beleg_lieferabteilung` varchar(255) NOT NULL, + `beleg_lieferunterabteilung` varchar(255) NOT NULL, + `beleg_lieferland` varchar(2) NOT NULL, + `beleg_lieferstrasse` varchar(255) NOT NULL, + `beleg_lieferort` varchar(255) NOT NULL, + `beleg_lieferplz` varchar(64) NOT NULL, + `beleg_lieferadresszusatz` varchar(255) NOT NULL, + `beleg_lieferansprechpartner` varchar(255) NOT NULL, + `beleg_abschlagauftrag` varchar(20) NOT NULL, + `beleg_abschlagauftragbezeichnung` varchar(255) NOT NULL, + `beleg_zahlungszieltage` int(11) NOT NULL DEFAULT 0, + `beleg_zahlungszieltageskonto` int(11) NOT NULL DEFAULT 0, + `beleg_zahlungszielskonto` decimal(10,2) NOT NULL DEFAULT 0.00, + `beleg_bodyzusatz` text NOT NULL, + `beleg_bearbeiter` varchar(255) NOT NULL, + `beleg_waehrung` varchar(20) NOT NULL, + `beleg_bundesstaat` varchar(20) NOT NULL, + `beleg_internet` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `belegeimport_running` -- +DROP TABLE IF EXISTS `belegeimport_running`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `belegeimport_running` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `userid` int(11) NOT NULL DEFAULT '0', - `art` varchar(20) NOT NULL DEFAULT '', - `status` varchar(20) NOT NULL DEFAULT '', - `filename` varchar(256) NOT NULL DEFAULT '', - `command` varchar(20) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `belegeimport_running` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `userid` int(11) NOT NULL DEFAULT 0, + `art` varchar(20) NOT NULL, + `status` varchar(20) NOT NULL, + `filename` varchar(256) NOT NULL, + `command` varchar(20) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Temporary table structure for view `belegeregs` +-- + +DROP TABLE IF EXISTS `belegeregs`; +/*!50001 DROP VIEW IF EXISTS `belegeregs`*/; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +/*!50001 CREATE VIEW `belegeregs` AS SELECT + 1 AS `id`, + 1 AS `adresse`, + 1 AS `datum`, + 1 AS `belegnr`, + 1 AS `status`, + 1 AS `land`, + 1 AS `typ`, + 1 AS `umsatz_netto`, + 1 AS `erloes_netto`, + 1 AS `deckungsbeitrag`, + 1 AS `provision_summe`, + 1 AS `vertriebid`, + 1 AS `gruppe`, + 1 AS `projekt` */; +SET character_set_client = @saved_cs_client; + -- -- Table structure for table `belegevorlagen` -- +DROP TABLE IF EXISTS `belegevorlagen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `belegevorlagen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `belegtyp` varchar(255) NOT NULL DEFAULT '', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `json` mediumtext NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `belegevorlagen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `belegtyp` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `json` mediumtext NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `berichte` -- +DROP TABLE IF EXISTS `berichte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `berichte` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) DEFAULT NULL, - `beschreibung` text, - `internebemerkung` text, - `struktur` text, - `spaltennamen` varchar(1024) DEFAULT NULL, - `spaltenbreite` varchar(1024) DEFAULT NULL, - `spaltenausrichtung` varchar(1024) DEFAULT NULL, - `variablen` text, - `sumcols` varchar(1024) DEFAULT NULL, - `doctype` varchar(64) DEFAULT NULL, - `doctype_actionmenu` int(1) NOT NULL DEFAULT '0', - `doctype_actionmenuname` varchar(256) NOT NULL DEFAULT '', - `doctype_actionmenufiletype` varchar(256) NOT NULL DEFAULT 'csv', - `project` int(11) NOT NULL DEFAULT '0', - `ftpuebertragung` int(1) NOT NULL DEFAULT '0', - `ftppassivemode` int(1) NOT NULL DEFAULT '0', - `ftphost` varchar(512) DEFAULT NULL, - `ftpport` int(11) DEFAULT NULL, - `ftpuser` varchar(512) DEFAULT NULL, - `ftppassword` varchar(512) DEFAULT NULL, - `ftpuhrzeit` time DEFAULT NULL, - `ftpletzteuebertragung` datetime DEFAULT NULL, - `ftpnamealternativ` varchar(512) DEFAULT '', - `emailuebertragung` int(1) NOT NULL DEFAULT '0', - `emailempfaenger` varchar(512) DEFAULT NULL, - `emailbetreff` varchar(512) DEFAULT NULL, - `emailuhrzeit` time DEFAULT NULL, - `emailletzteuebertragung` datetime DEFAULT NULL, - `emailnamealternativ` varchar(512) DEFAULT '', - `typ` varchar(16) NOT NULL DEFAULT 'ftp', - PRIMARY KEY (`id`), - KEY `doctype` (`doctype`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `berichte` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) DEFAULT NULL, + `beschreibung` text DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + `struktur` text DEFAULT NULL, + `spaltennamen` varchar(1024) DEFAULT NULL, + `spaltenbreite` varchar(1024) DEFAULT NULL, + `spaltenausrichtung` varchar(1024) DEFAULT NULL, + `variablen` text DEFAULT NULL, + `sumcols` varchar(1024) DEFAULT NULL, + `doctype` varchar(64) DEFAULT NULL, + `doctype_actionmenu` int(1) NOT NULL DEFAULT 0, + `doctype_actionmenuname` varchar(256) NOT NULL, + `doctype_actionmenufiletype` varchar(256) NOT NULL DEFAULT 'csv', + `project` int(11) NOT NULL DEFAULT 0, + `ftpuebertragung` int(1) NOT NULL DEFAULT 0, + `ftppassivemode` int(1) NOT NULL DEFAULT 0, + `ftphost` varchar(512) DEFAULT NULL, + `ftpport` int(11) DEFAULT NULL, + `ftpuser` varchar(512) DEFAULT NULL, + `ftppassword` varchar(512) DEFAULT NULL, + `ftpuhrzeit` time DEFAULT NULL, + `ftpletzteuebertragung` datetime DEFAULT NULL, + `ftpnamealternativ` varchar(512) DEFAULT NULL, + `emailuebertragung` int(1) NOT NULL DEFAULT 0, + `emailempfaenger` varchar(512) DEFAULT NULL, + `emailbetreff` varchar(512) DEFAULT NULL, + `emailuhrzeit` time DEFAULT NULL, + `emailletzteuebertragung` datetime DEFAULT NULL, + `emailnamealternativ` varchar(512) DEFAULT NULL, + `typ` varchar(16) NOT NULL DEFAULT 'ftp', + PRIMARY KEY (`id`), + KEY `doctype` (`doctype`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bestbeforebatchtoposition` -- +DROP TABLE IF EXISTS `bestbeforebatchtoposition`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `bestbeforebatchtoposition` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype` varchar(64) NOT NULL DEFAULT '', - `doctype_id` int(11) NOT NULL DEFAULT '0', - `position_id` int(11) NOT NULL DEFAULT '0', - `bestbeforedatebatch` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `doctype` (`doctype`,`doctype_id`,`position_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `bestbeforebatchtoposition` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype` varchar(64) NOT NULL, + `doctype_id` int(11) NOT NULL DEFAULT 0, + `position_id` int(11) NOT NULL DEFAULT 0, + `bestbeforedatebatch` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + KEY `doctype` (`doctype`,`doctype_id`,`position_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bestellung` -- +DROP TABLE IF EXISTS `bestellung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `bestellung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `projekt` varchar(222) NOT NULL, - `bestellungsart` varchar(255) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `angebot` varchar(255) NOT NULL, - `freitext` text NOT NULL, - `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `vorname` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `abweichendelieferadresse` int(1) NOT NULL, - `liefername` varchar(255) NOT NULL, - `lieferabteilung` varchar(255) NOT NULL, - `lieferunterabteilung` varchar(255) NOT NULL, - `lieferland` varchar(255) NOT NULL, - `lieferstrasse` varchar(255) NOT NULL, - `lieferort` varchar(255) NOT NULL, - `lieferplz` varchar(255) NOT NULL, - `lieferadresszusatz` varchar(255) NOT NULL, - `lieferansprechpartner` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `ust_befreit` int(1) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(255) NOT NULL, - `lieferantennummer` varchar(255) NOT NULL, - `versandart` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `einkaeufer` varchar(255) NOT NULL, - `keineartikelnummern` int(1) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungsstatus` varchar(255) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` decimal(10,2) NOT NULL, - `gesamtsumme` decimal(18,4) NOT NULL DEFAULT '0.0000', - `bank_inhaber` varchar(255) NOT NULL, - `bank_institut` varchar(255) NOT NULL, - `bank_blz` int(11) NOT NULL, - `bank_konto` int(11) NOT NULL, - `paypalaccount` varchar(255) NOT NULL, - `bestellbestaetigung` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `artikelnummerninfotext` int(1) DEFAULT NULL, - `ansprechpartner` varchar(255) DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `bestellungohnepreis` tinyint(1) NOT NULL DEFAULT '0', - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `verbindlichkeiteninfo` varchar(255) NOT NULL DEFAULT '', - `ohne_briefpapier` int(1) DEFAULT NULL, - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `bestellung_bestaetigt` tinyint(1) NOT NULL DEFAULT '0', - `bestaetigteslieferdatum` date DEFAULT NULL, - `bestellungbestaetigtper` varchar(64) NOT NULL DEFAULT '', - `bestellungbestaetigtabnummer` varchar(64) NOT NULL DEFAULT '', - `gewuenschteslieferdatum` date DEFAULT NULL, - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `preisanfrageid` int(11) NOT NULL DEFAULT '0', - `sprache` varchar(32) NOT NULL DEFAULT '', - `kundennummerlieferant` varchar(64) NOT NULL DEFAULT '', - `ohne_artikeltext` int(1) DEFAULT NULL, - `langeartikelnummern` tinyint(1) NOT NULL DEFAULT '0', - `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT '0', - `anzeigesteuer` tinyint(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `liefertitel` varchar(64) NOT NULL DEFAULT '', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontoberechnet` tinyint(1) NOT NULL DEFAULT '0', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `lieferbundesstaat` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`), - KEY `adresse` (`adresse`), - KEY `status` (`status`), - KEY `datum` (`datum`), - KEY `belegnr` (`belegnr`), - KEY `versandart` (`versandart`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `bestellung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `projekt` varchar(222) NOT NULL, + `bestellungsart` varchar(255) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `angebot` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `internebemerkung` text NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `vorname` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `abweichendelieferadresse` int(1) NOT NULL, + `liefername` varchar(255) NOT NULL, + `lieferabteilung` varchar(255) NOT NULL, + `lieferunterabteilung` varchar(255) NOT NULL, + `lieferland` varchar(255) NOT NULL, + `lieferstrasse` varchar(255) NOT NULL, + `lieferort` varchar(255) NOT NULL, + `lieferplz` varchar(255) NOT NULL, + `lieferadresszusatz` varchar(255) NOT NULL, + `lieferansprechpartner` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `ust_befreit` int(1) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(255) NOT NULL, + `lieferantennummer` varchar(255) NOT NULL, + `versandart` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `einkaeufer` varchar(255) NOT NULL, + `keineartikelnummern` int(1) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungsstatus` varchar(255) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` decimal(10,2) NOT NULL, + `gesamtsumme` decimal(18,4) NOT NULL DEFAULT 0.0000, + `bank_inhaber` varchar(255) NOT NULL, + `bank_institut` varchar(255) NOT NULL, + `bank_blz` int(11) NOT NULL, + `bank_konto` int(11) NOT NULL, + `paypalaccount` varchar(255) NOT NULL, + `bestellbestaetigung` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `artikelnummerninfotext` int(1) DEFAULT NULL, + `ansprechpartner` varchar(255) DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `bestellungohnepreis` tinyint(1) NOT NULL DEFAULT 0, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `verbindlichkeiteninfo` varchar(255) NOT NULL, + `ohne_briefpapier` int(1) DEFAULT NULL, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `bestellung_bestaetigt` tinyint(1) NOT NULL DEFAULT 0, + `bestaetigteslieferdatum` date DEFAULT NULL, + `bestellungbestaetigtper` varchar(64) NOT NULL, + `bestellungbestaetigtabnummer` varchar(64) NOT NULL, + `gewuenschteslieferdatum` date DEFAULT NULL, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `angelegtam` datetime DEFAULT NULL, + `preisanfrageid` int(11) NOT NULL DEFAULT 0, + `sprache` varchar(32) NOT NULL, + `kundennummerlieferant` varchar(64) NOT NULL, + `ohne_artikeltext` int(1) DEFAULT NULL, + `langeartikelnummern` tinyint(1) NOT NULL DEFAULT 0, + `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT 0, + `anzeigesteuer` tinyint(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `liefertitel` varchar(64) NOT NULL, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontoberechnet` tinyint(1) NOT NULL DEFAULT 0, + `bundesstaat` varchar(32) NOT NULL, + `lieferbundesstaat` varchar(32) NOT NULL, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`), + KEY `adresse` (`adresse`), + KEY `status` (`status`), + KEY `datum` (`datum`), + KEY `belegnr` (`belegnr`), + KEY `versandart` (`versandart`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bestellung_position` -- +DROP TABLE IF EXISTS `bestellung_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `bestellung_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `bestellung` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnunglieferant` varchar(255) NOT NULL, - `bestellnummer` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `menge` decimal(14,4) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `geliefert` decimal(14,4) NOT NULL, - `mengemanuellgeliefertaktiviert` int(11) NOT NULL, - `manuellgeliefertbearbeiter` varchar(255) NOT NULL, - `abgerechnet` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `abgeschlossen` int(1) DEFAULT NULL, - `einheit` varchar(255) NOT NULL DEFAULT '', - `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', - `herkunftsland` varchar(128) NOT NULL DEFAULT '0', - `artikelnummerkunde` varchar(128) NOT NULL DEFAULT '', - `auftrag_position_id` int(11) NOT NULL DEFAULT '0', - `preisanfrage_position_id` int(11) NOT NULL DEFAULT '0', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `auswahlmenge` decimal(14,4) DEFAULT NULL, - `auswahletiketten` int(11) DEFAULT NULL, - `auswahllagerplatz` int(11) DEFAULT NULL, - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(1024) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `bestellung` (`bestellung`,`artikel`), - KEY `artikel` (`artikel`), - KEY `bestellung_2` (`bestellung`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `bestellung_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `bestellung` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnunglieferant` varchar(255) NOT NULL, + `bestellnummer` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `menge` decimal(14,4) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `geliefert` decimal(14,4) NOT NULL, + `mengemanuellgeliefertaktiviert` int(11) NOT NULL, + `manuellgeliefertbearbeiter` varchar(255) NOT NULL, + `abgerechnet` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `abgeschlossen` int(1) DEFAULT NULL, + `einheit` varchar(255) NOT NULL, + `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', + `herkunftsland` varchar(128) NOT NULL DEFAULT '0', + `artikelnummerkunde` varchar(128) NOT NULL, + `auftrag_position_id` int(11) NOT NULL DEFAULT 0, + `preisanfrage_position_id` int(11) NOT NULL DEFAULT 0, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `auswahlmenge` decimal(14,4) DEFAULT NULL, + `auswahletiketten` int(11) DEFAULT NULL, + `auswahllagerplatz` int(11) DEFAULT NULL, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, + `explodiert_parent` int(11) NOT NULL DEFAULT 0, + `keinrabatterlaubt` int(1) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `bestellung` (`bestellung`,`artikel`), + KEY `artikel` (`artikel`), + KEY `bestellung_2` (`bestellung`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bestellung_protokoll` -- +DROP TABLE IF EXISTS `bestellung_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `bestellung_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bestellung` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `bestellung` (`bestellung`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `bestellung_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bestellung` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `bestellung` (`bestellung`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `bestellvorschlag` +-- + +DROP TABLE IF EXISTS `bestellvorschlag`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `bestellvorschlag` ( + `user` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `menge` int(11) NOT NULL, + PRIMARY KEY (`artikel`,`user`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bestellvorschlag_app` -- +DROP TABLE IF EXISTS `bestellvorschlag_app`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `bestellvorschlag_app` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '-1.0000', - `bedarf` decimal(14,4) NOT NULL DEFAULT '0.0000', - `imauftrag` decimal(14,4) NOT NULL DEFAULT '0.0000', - `inproduktion` decimal(14,4) NOT NULL DEFAULT '0.0000', - `inbestellung` decimal(14,4) NOT NULL DEFAULT '0.0000', - `inbestellung_nichtversendet` decimal(14,4) NOT NULL DEFAULT '0.0000', - `promonat` decimal(14,4) NOT NULL DEFAULT '0.0000', - `verkauf` decimal(14,2) NOT NULL DEFAULT '0.00', - `einkauf` decimal(14,2) NOT NULL DEFAULT '0.00', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `kommentar` text NOT NULL, - `status` int(11) NOT NULL DEFAULT '0', - `typ` varchar(32) NOT NULL DEFAULT '', - `lieferant` int(11) NOT NULL DEFAULT '0', - `auswahl` tinyint(1) NOT NULL DEFAULT '0', - `von` date NOT NULL DEFAULT '0000-00-00', - `bis` date NOT NULL DEFAULT '0000-00-00', - `nr` int(11) NOT NULL DEFAULT '0', - `einkaufsid` int(11) NOT NULL DEFAULT '0', - `bedarfgesamt` decimal(14,4) NOT NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`), - KEY `user` (`user`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `bestellvorschlag_app` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT -1.0000, + `bedarf` decimal(14,4) NOT NULL DEFAULT 0.0000, + `imauftrag` decimal(14,4) NOT NULL DEFAULT 0.0000, + `inproduktion` decimal(14,4) NOT NULL DEFAULT 0.0000, + `inbestellung` decimal(14,4) NOT NULL DEFAULT 0.0000, + `inbestellung_nichtversendet` decimal(14,4) NOT NULL DEFAULT 0.0000, + `promonat` decimal(14,4) NOT NULL DEFAULT 0.0000, + `verkauf` decimal(14,2) NOT NULL DEFAULT 0.00, + `einkauf` decimal(14,2) NOT NULL DEFAULT 0.00, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `kommentar` text NOT NULL, + `status` int(11) NOT NULL DEFAULT 0, + `typ` varchar(32) NOT NULL, + `lieferant` int(11) NOT NULL DEFAULT 0, + `auswahl` tinyint(1) NOT NULL DEFAULT 0, + `von` date NOT NULL DEFAULT '0000-00-00', + `bis` date NOT NULL DEFAULT '0000-00-00', + `nr` int(11) NOT NULL DEFAULT 0, + `einkaufsid` int(11) NOT NULL DEFAULT 0, + `bedarfgesamt` decimal(14,4) NOT NULL DEFAULT 0.0000, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`), + KEY `user` (`user`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bestellvorschlag_app_staffeln` -- +DROP TABLE IF EXISTS `bestellvorschlag_app_staffeln`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `bestellvorschlag_app_staffeln` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `tage` int(11) NOT NULL DEFAULT '0', - `bedarfstaffel` decimal(14,4) NOT NULL DEFAULT '0.0000', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `bestellvorschlag_app_staffeln` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `tage` int(11) NOT NULL DEFAULT 0, + `bedarfstaffel` decimal(14,4) NOT NULL DEFAULT 0.0000, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `boxnachrichten` -- +DROP TABLE IF EXISTS `boxnachrichten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `boxnachrichten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `nachricht` text NOT NULL, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `prio` int(11) NOT NULL DEFAULT '0', - `ablaufzeit` int(11) NOT NULL DEFAULT '0', - `objekt` varchar(255) NOT NULL DEFAULT '', - `parameter` int(11) NOT NULL DEFAULT '0', - `beep` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `boxnachrichten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) NOT NULL, + `nachricht` text NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `prio` int(11) NOT NULL DEFAULT 0, + `ablaufzeit` int(11) NOT NULL DEFAULT 0, + `objekt` varchar(255) NOT NULL, + `parameter` int(11) NOT NULL DEFAULT 0, + `beep` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `bundesstaaten` -- +DROP TABLE IF EXISTS `bundesstaaten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `bundesstaaten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `land` varchar(255) NOT NULL, - `iso` varchar(255) NOT NULL, - `bundesstaat` varchar(255) NOT NULL, - `aktiv` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=115 DEFAULT CHARSET=utf8; +CREATE TABLE `bundesstaaten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `land` varchar(255) NOT NULL, + `iso` varchar(255) NOT NULL, + `bundesstaat` varchar(255) NOT NULL, + `aktiv` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=115 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `caldav_changes` -- +DROP TABLE IF EXISTS `caldav_changes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `caldav_changes` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uri` text, - `change_type` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `caldav_changes` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uri` text DEFAULT NULL, + `change_type` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `calendar` -- +DROP TABLE IF EXISTS `calendar`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `calendar` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `date` date NOT NULL DEFAULT '0000-00-00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `calendar` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `date` date NOT NULL DEFAULT '0000-00-00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `change_log` -- +DROP TABLE IF EXISTS `change_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bearbeiter` varchar(32) NOT NULL DEFAULT '', - `module` varchar(32) NOT NULL DEFAULT '', - `action` varchar(32) NOT NULL DEFAULT '', - `tabelle` varchar(64) NOT NULL DEFAULT '', - `tableid` int(11) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `tableid` (`tableid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `change_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bearbeiter` varchar(32) NOT NULL, + `module` varchar(32) NOT NULL, + `action` varchar(32) NOT NULL, + `tabelle` varchar(64) NOT NULL, + `tableid` int(11) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `tableid` (`tableid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `change_log_field` -- +DROP TABLE IF EXISTS `change_log_field`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_log_field` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `change_log` int(11) NOT NULL DEFAULT '0', - `fieldname` varchar(64) NOT NULL DEFAULT '', - `oldvalue` text NOT NULL, - `newvalue` text NOT NULL, - PRIMARY KEY (`id`), - KEY `change_log` (`change_log`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `change_log_field` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `change_log` int(11) NOT NULL DEFAULT 0, + `fieldname` varchar(64) NOT NULL, + `oldvalue` text NOT NULL, + `newvalue` text NOT NULL, + PRIMARY KEY (`id`), + KEY `change_log` (`change_log`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `chargen` -- +DROP TABLE IF EXISTS `chargen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `chargen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `charge` text NOT NULL, - `adresse` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `beschreibung` varchar(255) NOT NULL, - `lieferung` date NOT NULL, - `lieferschein` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` datetime NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `chargen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `charge` text NOT NULL, + `adresse` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `beschreibung` varchar(255) NOT NULL, + `lieferung` date NOT NULL, + `lieferschein` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `chargen_log` -- +DROP TABLE IF EXISTS `chargen_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `chargen_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `eingang` int(1) NOT NULL DEFAULT '0', - `bezeichnung` text NOT NULL, - `internebemerkung` text NOT NULL, - `zeit` datetime DEFAULT NULL, - `adresse_mitarbeiter` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `doctype` varchar(32) NOT NULL DEFAULT '', - `doctypeid` int(11) NOT NULL DEFAULT '0', - `bestand` decimal(14,4) NOT NULL DEFAULT '0.0000', - `is_interim` tinyint(1) NOT NULL DEFAULT '0', - `storage_movement_id` int(11) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `doctypeid` (`doctypeid`), - KEY `doctype` (`doctype`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `chargen_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `eingang` int(1) NOT NULL DEFAULT 0, + `bezeichnung` text NOT NULL, + `internebemerkung` text NOT NULL, + `zeit` datetime DEFAULT NULL, + `adresse_mitarbeiter` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `doctype` varchar(32) NOT NULL, + `doctypeid` int(11) NOT NULL DEFAULT 0, + `bestand` decimal(14,4) NOT NULL DEFAULT 0.0000, + `is_interim` tinyint(1) NOT NULL DEFAULT 0, + `storage_movement_id` int(11) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `doctypeid` (`doctypeid`), + KEY `doctype` (`doctype`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `chargenverwaltung` -- +DROP TABLE IF EXISTS `chargenverwaltung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `chargenverwaltung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `bestellung` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `vpe` varchar(255) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `chargenverwaltung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `bestellung` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `vpe` varchar(255) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `chat` -- +DROP TABLE IF EXISTS `chat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `chat` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_from` int(11) NOT NULL DEFAULT '0', - `user_to` int(11) NOT NULL DEFAULT '0', - `message` text NOT NULL, - `zeitstempel` datetime DEFAULT NULL, - `prio` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `user_from` (`user_from`), - KEY `user_to` (`user_to`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `chat` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_from` int(11) NOT NULL DEFAULT 0, + `user_to` int(11) NOT NULL DEFAULT 0, + `message` text NOT NULL, + `zeitstempel` datetime DEFAULT NULL, + `prio` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `user_from` (`user_from`), + KEY `user_to` (`user_to`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `chat_gelesen` -- +DROP TABLE IF EXISTS `chat_gelesen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `chat_gelesen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL DEFAULT '0', - `message` int(11) NOT NULL DEFAULT '0', - `zeitstempel` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `user` (`user`,`message`), - KEY `message` (`message`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `chat_gelesen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL DEFAULT 0, + `message` int(11) NOT NULL DEFAULT 0, + `zeitstempel` datetime DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `user` (`user`,`message`), + KEY `message` (`message`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `checkaltertable` +-- + +DROP TABLE IF EXISTS `checkaltertable`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `checkaltertable` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `checksum` varchar(128) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=586 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `collectivedebitor` -- +DROP TABLE IF EXISTS `collectivedebitor`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `collectivedebitor` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `paymentmethod_id` int(11) DEFAULT NULL, - `channel_id` int(11) NOT NULL DEFAULT '0', - `country` varchar(255) DEFAULT NULL, - `project_id` int(11) DEFAULT NULL, - `group_id` int(11) DEFAULT NULL, - `account` varchar(255) DEFAULT NULL, - `store_in_address` tinyint(1) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `collectivedebitor` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `paymentmethod_id` int(11) DEFAULT NULL, + `channel_id` int(11) NOT NULL DEFAULT 0, + `country` varchar(255) DEFAULT NULL, + `project_id` int(11) DEFAULT NULL, + `group_id` int(11) DEFAULT NULL, + `account` varchar(255) DEFAULT NULL, + `store_in_address` tinyint(1) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `cronjob_kommissionierung` -- +DROP TABLE IF EXISTS `cronjob_kommissionierung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `cronjob_kommissionierung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `bezeichnung` varchar(40) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `cronjob_kommissionierung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `bezeichnung` varchar(40) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `cronjob_log` -- +DROP TABLE IF EXISTS `cronjob_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `cronjob_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `parent_id` int(11) NOT NULL DEFAULT '0', - `cronjob_id` int(11) NOT NULL DEFAULT '0', - `memory_usage` int(11) NOT NULL DEFAULT '0', - `memory_peak` int(11) NOT NULL DEFAULT '0', - `cronjob_name` varchar(255) NOT NULL DEFAULT '', - `change_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `status` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `cronjob_id` (`cronjob_id`,`change_time`) -) ENGINE=InnoDB AUTO_INCREMENT=70109 DEFAULT CHARSET=utf8; +CREATE TABLE `cronjob_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `parent_id` int(11) NOT NULL DEFAULT 0, + `cronjob_id` int(11) NOT NULL DEFAULT 0, + `memory_usage` int(11) NOT NULL DEFAULT 0, + `memory_peak` int(11) NOT NULL DEFAULT 0, + `cronjob_name` varchar(255) NOT NULL, + `change_time` timestamp NOT NULL DEFAULT current_timestamp(), + `status` varchar(32) NOT NULL, + PRIMARY KEY (`id`), + KEY `cronjob_id` (`cronjob_id`,`change_time`) +) ENGINE=InnoDB AUTO_INCREMENT=70109 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `cronjob_starter_running` -- +DROP TABLE IF EXISTS `cronjob_starter_running`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `cronjob_starter_running` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uid` varchar(23) NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '0', - `type` varchar(10) NOT NULL, - `task_id` int(11) NOT NULL DEFAULT '0', - `last_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `uid` (`uid`,`type`) -) ENGINE=InnoDB AUTO_INCREMENT=9530 DEFAULT CHARSET=utf8; +CREATE TABLE `cronjob_starter_running` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uid` varchar(23) NOT NULL, + `active` tinyint(1) NOT NULL DEFAULT 0, + `type` varchar(10) NOT NULL, + `task_id` int(11) NOT NULL DEFAULT 0, + `last_time` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `uid` (`uid`,`type`) +) ENGINE=InnoDB AUTO_INCREMENT=9530 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `crossselling_artikel` +-- + +DROP TABLE IF EXISTS `crossselling_artikel`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `crossselling_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `aktiv` int(1) NOT NULL, + `art` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `crosssellingartikel` int(11) NOT NULL, + `shop` int(11) NOT NULL, + `sort` int(11) NOT NULL, + `bemerkung` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `gegenseitigzuweisen` int(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `datei` -- +DROP TABLE IF EXISTS `datei`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `datei` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `titel` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `geloescht` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `firma` int(1) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `datei` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `titel` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `geloescht` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `firma` int(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `datei_stichwoerter` -- +DROP TABLE IF EXISTS `datei_stichwoerter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `datei_stichwoerter` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datei` int(10) NOT NULL, - `subjekt` varchar(255) NOT NULL, - `objekt` varchar(255) NOT NULL, - `parameter` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `sort` int(11) NOT NULL DEFAULT '0', - `parameter2` int(11) NOT NULL DEFAULT '0', - `objekt2` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `datei` (`datei`), - KEY `parameter` (`parameter`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `datei_stichwoerter` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datei` int(10) NOT NULL, + `subjekt` varchar(255) NOT NULL, + `objekt` varchar(255) NOT NULL, + `parameter` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `sort` int(11) NOT NULL DEFAULT 0, + `parameter2` int(11) NOT NULL DEFAULT 0, + `objekt2` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `datei` (`datei`), + KEY `parameter` (`parameter`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `datei_stichwortvorlagen` -- +DROP TABLE IF EXISTS `datei_stichwortvorlagen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `datei_stichwortvorlagen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `beschriftung` varchar(128) NOT NULL DEFAULT '', - `ausblenden` tinyint(1) NOT NULL DEFAULT '0', - `modul` varchar(128) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `datei_stichwortvorlagen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `beschriftung` varchar(128) NOT NULL, + `ausblenden` tinyint(1) NOT NULL DEFAULT 0, + `modul` varchar(128) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `datei_version` -- +DROP TABLE IF EXISTS `datei_version`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `datei_version` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `datei` int(10) NOT NULL, - `ersteller` varchar(255) NOT NULL, - `datum` date NOT NULL, - `version` int(5) NOT NULL, - `dateiname` varchar(255) NOT NULL, - `bemerkung` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `size` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `datei` (`datei`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `datei_version` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `datei` int(10) NOT NULL, + `ersteller` varchar(255) NOT NULL, + `datum` date NOT NULL, + `version` int(5) NOT NULL, + `dateiname` varchar(255) NOT NULL, + `bemerkung` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `size` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `datei` (`datei`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dateibaum` -- +DROP TABLE IF EXISTS `dateibaum`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dateibaum` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datei_stichwoerter` int(11) NOT NULL DEFAULT '0', - `pfad` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dateibaum` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datei_stichwoerter` int(11) NOT NULL DEFAULT 0, + `pfad` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `datev_buchungen` -- +DROP TABLE IF EXISTS `datev_buchungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `datev_buchungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wkz` varchar(255) NOT NULL, - `umsatz` decimal(10,2) NOT NULL, - `gegenkonto` int(255) NOT NULL, - `belegfeld1` varchar(255) NOT NULL, - `belegfeld2` varchar(255) NOT NULL, - `datum` date NOT NULL, - `konto` varchar(255) NOT NULL, - `haben` int(1) NOT NULL, - `kost1` varchar(255) NOT NULL, - `kost2` varchar(255) NOT NULL, - `kostmenge` varchar(255) NOT NULL, - `skonto` decimal(10,2) NOT NULL, - `buchungstext` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `exportiert` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `kontoauszug` int(11) DEFAULT NULL, - `parent` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `datev_buchungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `wkz` varchar(255) NOT NULL, + `umsatz` decimal(10,2) NOT NULL, + `gegenkonto` int(255) NOT NULL, + `belegfeld1` varchar(255) NOT NULL, + `belegfeld2` varchar(255) NOT NULL, + `datum` date NOT NULL, + `konto` varchar(255) NOT NULL, + `haben` int(1) NOT NULL, + `kost1` varchar(255) NOT NULL, + `kost2` varchar(255) NOT NULL, + `kostmenge` varchar(255) NOT NULL, + `skonto` decimal(10,2) NOT NULL, + `buchungstext` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `exportiert` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `kontoauszug` int(11) DEFAULT NULL, + `parent` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `datevconnect_online_export` -- +DROP TABLE IF EXISTS `datevconnect_online_export`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `datevconnect_online_export` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` text, - `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `status` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `datevconnect_online_export` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` text DEFAULT NULL, + `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), + `status` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `delivery_problemcase` -- +DROP TABLE IF EXISTS `delivery_problemcase`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `delivery_problemcase` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `problemcase` varchar(255) NOT NULL DEFAULT '', - `sort` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; +CREATE TABLE `delivery_problemcase` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `problemcase` varchar(255) NOT NULL, + `sort` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `device_jobs` -- +DROP TABLE IF EXISTS `device_jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `device_jobs` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `deviceidsource` varchar(64) DEFAULT '', - `deviceiddest` varchar(64) DEFAULT '', - `job` longtext NOT NULL, - `zeitstempel` datetime DEFAULT NULL, - `abgeschlossen` tinyint(1) NOT NULL DEFAULT '0', - `art` varchar(64) DEFAULT '', - `request_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `device_jobs` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `deviceidsource` varchar(64) DEFAULT NULL, + `deviceiddest` varchar(64) DEFAULT NULL, + `job` longtext NOT NULL, + `zeitstempel` datetime DEFAULT NULL, + `abgeschlossen` tinyint(1) NOT NULL DEFAULT 0, + `art` varchar(64) DEFAULT NULL, + `request_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `docscan` -- +DROP TABLE IF EXISTS `docscan`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `docscan` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datei` int(11) DEFAULT NULL, - `kategorie` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `docscan` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datei` int(11) DEFAULT NULL, + `kategorie` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `docscan_metadata` -- +DROP TABLE IF EXISTS `docscan_metadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `docscan_metadata` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `docscan_id` int(10) unsigned NOT NULL, - `meta_key` varchar(32) NOT NULL, - `meta_value` varchar(32) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `docscan_metadata` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `docscan_id` int(10) unsigned NOT NULL, + `meta_key` varchar(32) NOT NULL, + `meta_value` varchar(32) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `document_customization_infoblock` -- +DROP TABLE IF EXISTS `document_customization_infoblock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `document_customization_infoblock` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `keyword` varchar(32) NOT NULL DEFAULT '', - `doctype` varchar(32) NOT NULL DEFAULT '', - `fontstyle` varchar(2) NOT NULL DEFAULT '', - `alignment` varchar(2) NOT NULL DEFAULT '', - `content` text, - `project_id` int(11) NOT NULL DEFAULT '0', - `active` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `document_customization_infoblock` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `keyword` varchar(32) NOT NULL, + `doctype` varchar(32) NOT NULL, + `fontstyle` varchar(2) NOT NULL, + `alignment` varchar(2) NOT NULL, + `content` text DEFAULT NULL, + `project_id` int(11) NOT NULL DEFAULT 0, + `active` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `document_customization_infoblock_translation` -- +DROP TABLE IF EXISTS `document_customization_infoblock_translation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `document_customization_infoblock_translation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `document_customization_infoblock_id` int(11) NOT NULL DEFAULT '0', - `language_code` varchar(2) NOT NULL DEFAULT '', - `content` text, - `active` tinyint(1) NOT NULL DEFAULT '0', - `fontstyle` varchar(2) NOT NULL DEFAULT '', - `alignment` varchar(2) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `document_customization_infoblock_id` (`document_customization_infoblock_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `document_customization_infoblock_translation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `document_customization_infoblock_id` int(11) NOT NULL DEFAULT 0, + `language_code` varchar(2) NOT NULL, + `content` text DEFAULT NULL, + `active` tinyint(1) NOT NULL DEFAULT 0, + `fontstyle` varchar(2) NOT NULL, + `alignment` varchar(2) NOT NULL, + PRIMARY KEY (`id`), + KEY `document_customization_infoblock_id` (`document_customization_infoblock_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dokumente` -- +DROP TABLE IF EXISTS `dokumente`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dokumente` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `adresse_from` int(11) NOT NULL, - `adresse_to` int(11) NOT NULL, - `typ` varchar(24) NOT NULL, - `von` varchar(512) NOT NULL, - `firma` varchar(512) NOT NULL, - `an` varchar(512) NOT NULL, - `email_an` varchar(255) NOT NULL, - `firma_an` varchar(255) NOT NULL, - `adresse` varchar(255) NOT NULL, - `plz` varchar(16) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(32) NOT NULL, - `datum` date NOT NULL, - `betreff` varchar(1023) NOT NULL, - `content` text NOT NULL, - `signatur` tinyint(1) NOT NULL, - `send_as` varchar(24) NOT NULL, - `email` varchar(255) NOT NULL, - `printer` int(2) NOT NULL, - `fax` tinyint(2) NOT NULL, - `sent` tinyint(1) NOT NULL DEFAULT '0', - `deleted` tinyint(1) NOT NULL DEFAULT '0', - `created` datetime NOT NULL, - `ansprechpartner` varchar(512) DEFAULT NULL, - `email_cc` varchar(255) DEFAULT NULL, - `email_bcc` varchar(255) DEFAULT NULL, - `bearbeiter` varchar(128) DEFAULT NULL, - `uhrzeit` time DEFAULT NULL, - `projekt` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `adresse_to` (`adresse_to`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dokumente` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `adresse_from` int(11) NOT NULL, + `adresse_to` int(11) NOT NULL, + `typ` varchar(24) NOT NULL, + `von` varchar(512) NOT NULL, + `firma` varchar(512) NOT NULL, + `an` varchar(512) NOT NULL, + `email_an` varchar(255) NOT NULL, + `firma_an` varchar(255) NOT NULL, + `adresse` varchar(255) NOT NULL, + `plz` varchar(16) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(32) NOT NULL, + `datum` date NOT NULL, + `betreff` varchar(1023) NOT NULL, + `content` text NOT NULL, + `signatur` tinyint(1) NOT NULL, + `send_as` varchar(24) NOT NULL, + `email` varchar(255) NOT NULL, + `printer` int(2) NOT NULL, + `fax` tinyint(2) NOT NULL, + `sent` tinyint(1) NOT NULL DEFAULT 0, + `deleted` tinyint(1) NOT NULL DEFAULT 0, + `created` datetime NOT NULL, + `ansprechpartner` varchar(512) DEFAULT NULL, + `email_cc` varchar(255) DEFAULT NULL, + `email_bcc` varchar(255) DEFAULT NULL, + `bearbeiter` varchar(128) DEFAULT NULL, + `uhrzeit` time DEFAULT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `adresse_to` (`adresse_to`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dokumente_send` -- +DROP TABLE IF EXISTS `dokumente_send`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dokumente_send` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `dokument` varchar(255) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `adresse` int(11) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `parameter` int(11) NOT NULL, - `art` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `text` text NOT NULL, - `geloescht` int(1) NOT NULL, - `versendet` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `dateiid` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dokumente_send` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `dokument` varchar(255) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `parameter` int(11) NOT NULL, + `art` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `text` text NOT NULL, + `geloescht` int(1) NOT NULL, + `versendet` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `dateiid` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dropshipping` -- +DROP TABLE IF EXISTS `dropshipping`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dropshipping` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `gruppe` (`gruppe`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dropshipping` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `gruppe` (`gruppe`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dropshipping_gruppe` -- +DROP TABLE IF EXISTS `dropshipping_gruppe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dropshipping_gruppe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(200) NOT NULL DEFAULT '', - `adresse` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `autoversand` int(1) NOT NULL DEFAULT '0', - `zahlungok` tinyint(1) NOT NULL DEFAULT '0', - `lieferdatumberechnen` int(1) NOT NULL DEFAULT '0', - `bestellunganlegen` int(1) NOT NULL DEFAULT '0', - `abweichendelieferadresse` int(1) NOT NULL DEFAULT '0', - `lieferscheinanhaengen` int(1) NOT NULL DEFAULT '0', - `rechnunganhaengen` int(1) NOT NULL DEFAULT '0', - `auftraganhaengen` int(1) NOT NULL DEFAULT '0', - `bestellungmail` int(1) NOT NULL DEFAULT '0', - `lieferscheinmail` int(1) NOT NULL DEFAULT '0', - `rechnungmail` int(1) NOT NULL DEFAULT '0', - `rueckmeldungshop` int(1) NOT NULL DEFAULT '0', - `bestellungdrucken` int(11) NOT NULL DEFAULT '0', - `lieferscheindrucken` int(11) NOT NULL DEFAULT '0', - `rechnungdrucken` int(11) NOT NULL DEFAULT '0', - `lieferscheincsv` tinyint(1) NOT NULL DEFAULT '0', - `auftragcsv` tinyint(1) NOT NULL DEFAULT '0', - `bestellungabschliessen` tinyint(1) NOT NULL DEFAULT '0', - `belegeautoversandkunde` tinyint(1) NOT NULL DEFAULT '0', - `belegeautoversand` varchar(16) NOT NULL DEFAULT 'standardauftrag', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dropshipping_gruppe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(200) NOT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `autoversand` int(1) NOT NULL DEFAULT 0, + `zahlungok` tinyint(1) NOT NULL DEFAULT 0, + `lieferdatumberechnen` int(1) NOT NULL DEFAULT 0, + `bestellunganlegen` int(1) NOT NULL DEFAULT 0, + `abweichendelieferadresse` int(1) NOT NULL DEFAULT 0, + `lieferscheinanhaengen` int(1) NOT NULL DEFAULT 0, + `rechnunganhaengen` int(1) NOT NULL DEFAULT 0, + `auftraganhaengen` int(1) NOT NULL DEFAULT 0, + `bestellungmail` int(1) NOT NULL DEFAULT 0, + `lieferscheinmail` int(1) NOT NULL DEFAULT 0, + `rechnungmail` int(1) NOT NULL DEFAULT 0, + `rueckmeldungshop` int(1) NOT NULL DEFAULT 0, + `bestellungdrucken` int(11) NOT NULL DEFAULT 0, + `lieferscheindrucken` int(11) NOT NULL DEFAULT 0, + `rechnungdrucken` int(11) NOT NULL DEFAULT 0, + `lieferscheincsv` tinyint(1) NOT NULL DEFAULT 0, + `auftragcsv` tinyint(1) NOT NULL DEFAULT 0, + `bestellungabschliessen` tinyint(1) NOT NULL DEFAULT 0, + `belegeautoversandkunde` tinyint(1) NOT NULL DEFAULT 0, + `belegeautoversand` varchar(16) NOT NULL DEFAULT 'standardauftrag', + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `drucker` -- +DROP TABLE IF EXISTS `drucker`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `drucker` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `befehl` varchar(255) NOT NULL, - `aktiv` int(1) NOT NULL, - `firma` int(1) NOT NULL, - `tomail` varchar(255) NOT NULL DEFAULT '', - `tomailtext` text NOT NULL, - `tomailsubject` text NOT NULL, - `adapterboxip` varchar(255) NOT NULL DEFAULT '', - `adapterboxseriennummer` varchar(255) NOT NULL DEFAULT '', - `adapterboxpasswort` varchar(255) NOT NULL DEFAULT '', - `anbindung` varchar(255) NOT NULL DEFAULT '', - `art` int(1) NOT NULL DEFAULT '0', - `faxserver` int(1) NOT NULL DEFAULT '0', - `format` varchar(64) NOT NULL DEFAULT '', - `keinhintergrund` tinyint(1) NOT NULL DEFAULT '0', - `json` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; +CREATE TABLE `drucker` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `befehl` varchar(255) NOT NULL, + `aktiv` int(1) NOT NULL, + `firma` int(1) NOT NULL, + `tomail` varchar(255) NOT NULL, + `tomailtext` text NOT NULL, + `tomailsubject` text NOT NULL, + `adapterboxip` varchar(255) NOT NULL, + `adapterboxseriennummer` varchar(255) NOT NULL, + `adapterboxpasswort` varchar(255) NOT NULL, + `anbindung` varchar(255) NOT NULL, + `art` int(1) NOT NULL DEFAULT 0, + `faxserver` int(1) NOT NULL DEFAULT 0, + `format` varchar(64) NOT NULL, + `keinhintergrund` tinyint(1) NOT NULL DEFAULT 0, + `json` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `drucker_spooler` -- +DROP TABLE IF EXISTS `drucker_spooler`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `drucker_spooler` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `drucker` int(11) NOT NULL DEFAULT '0', - `filename` varchar(128) NOT NULL DEFAULT '', - `content` longblob NOT NULL, - `description` varchar(128) NOT NULL DEFAULT '', - `anzahl` varchar(128) NOT NULL DEFAULT '', - `befehl` varchar(128) NOT NULL DEFAULT '', - `anbindung` varchar(128) NOT NULL DEFAULT '', - `zeitstempel` datetime DEFAULT NULL, - `user` int(11) NOT NULL DEFAULT '0', - `gedruckt` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `drucker` (`drucker`), - KEY `user` (`user`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `drucker_spooler` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `drucker` int(11) NOT NULL DEFAULT 0, + `filename` varchar(128) NOT NULL, + `content` longblob NOT NULL, + `description` varchar(128) NOT NULL, + `anzahl` varchar(128) NOT NULL, + `befehl` varchar(128) NOT NULL, + `anbindung` varchar(128) NOT NULL, + `zeitstempel` datetime DEFAULT NULL, + `user` int(11) NOT NULL DEFAULT 0, + `gedruckt` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `drucker` (`drucker`), + KEY `user` (`user`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dsgvo_loeschauftrag` -- +DROP TABLE IF EXISTS `dsgvo_loeschauftrag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dsgvo_loeschauftrag` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `loeschauftrag_vom` date NOT NULL, - `kommentar` varchar(512) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dsgvo_loeschauftrag` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `loeschauftrag_vom` date NOT NULL, + `kommentar` varchar(512) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dta` -- +DROP TABLE IF EXISTS `dta`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dta` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `datum` date NOT NULL, - `name` varchar(255) NOT NULL, - `konto` varchar(64) NOT NULL, - `blz` varchar(64) NOT NULL, - `betrag` decimal(10,2) NOT NULL, - `vz1` varchar(255) NOT NULL, - `vz2` varchar(255) NOT NULL, - `vz3` varchar(255) NOT NULL, - `lastschrift` int(1) NOT NULL, - `gutschrift` int(1) NOT NULL, - `kontointern` int(10) NOT NULL, - `datei` int(11) NOT NULL, - `status` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', - `verbindlichkeit` int(11) NOT NULL DEFAULT '0', - `rechnung` int(11) NOT NULL DEFAULT '0', - `mandatsreferenzaenderung` tinyint(1) NOT NULL DEFAULT '0', - `mandatsreferenzart` varchar(64) NOT NULL DEFAULT '', - `mandatsreferenzwdhart` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dta` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `datum` date NOT NULL, + `name` varchar(255) NOT NULL, + `konto` varchar(64) NOT NULL, + `blz` varchar(64) NOT NULL, + `betrag` decimal(10,2) NOT NULL, + `vz1` varchar(255) NOT NULL, + `vz2` varchar(255) NOT NULL, + `vz3` varchar(255) NOT NULL, + `lastschrift` int(1) NOT NULL, + `gutschrift` int(1) NOT NULL, + `kontointern` int(10) NOT NULL, + `datei` int(11) NOT NULL, + `status` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', + `verbindlichkeit` int(11) NOT NULL DEFAULT 0, + `rechnung` int(11) NOT NULL DEFAULT 0, + `mandatsreferenzaenderung` tinyint(1) NOT NULL DEFAULT 0, + `mandatsreferenzart` varchar(64) NOT NULL, + `mandatsreferenzwdhart` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dta_datei` -- +DROP TABLE IF EXISTS `dta_datei`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dta_datei` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `inhalt` text NOT NULL, - `datum` datetime NOT NULL, - `status` varchar(64) NOT NULL, - `art` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `konto` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dta_datei` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `inhalt` text NOT NULL, + `datum` datetime NOT NULL, + `status` varchar(64) NOT NULL, + `art` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `konto` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `dta_datei_verband` -- +DROP TABLE IF EXISTS `dta_datei_verband`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `dta_datei_verband` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date DEFAULT NULL, - `bemerkung` text NOT NULL, - `dateiname` varchar(255) NOT NULL DEFAULT '', - `email` varchar(255) NOT NULL DEFAULT '', - `betreff` varchar(255) NOT NULL DEFAULT '', - `nachricht` text NOT NULL, - `datum_versendet` date DEFAULT NULL, - `status` varchar(255) NOT NULL DEFAULT '', - `verband` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `variante` int(11) NOT NULL DEFAULT '0', - `partnerid` varchar(255) NOT NULL DEFAULT '', - `kundennummer` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `dta_datei_verband` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date DEFAULT NULL, + `bemerkung` text NOT NULL, + `dateiname` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `nachricht` text NOT NULL, + `datum_versendet` date DEFAULT NULL, + `status` varchar(255) NOT NULL, + `verband` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `variante` int(11) NOT NULL DEFAULT 0, + `partnerid` varchar(255) NOT NULL, + `kundennummer` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `eangenerator` -- +DROP TABLE IF EXISTS `eangenerator`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `eangenerator` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ean` varchar(255) NOT NULL, - `available` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `eangenerator` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ean` varchar(255) NOT NULL, + `available` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_articles_to_sync` -- +DROP TABLE IF EXISTS `ebay_articles_to_sync`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_articles_to_sync` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) NOT NULL, - `request` varchar(255) NOT NULL DEFAULT '', - `type` varchar(255) NOT NULL DEFAULT '', - `shop_id` int(11) NOT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `article_id` (`article_id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_articles_to_sync` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) NOT NULL, + `request` varchar(255) NOT NULL, + `type` varchar(255) NOT NULL, + `shop_id` int(11) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `article_id` (`article_id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_artikelzuordnungen` -- +DROP TABLE IF EXISTS `ebay_artikelzuordnungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_artikelzuordnungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `itemid` varchar(255) NOT NULL, - `shop` int(10) NOT NULL, - `bezeichnung` varchar(255) DEFAULT '', - `variation` varchar(255) DEFAULT '', - `sku` varchar(255) DEFAULT '', - `artikel` int(11) DEFAULT NULL, - `erledigt` int(1) DEFAULT '0', - `verkauft` int(11) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_artikelzuordnungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `itemid` varchar(255) NOT NULL, + `shop` int(10) NOT NULL, + `bezeichnung` varchar(255) DEFAULT NULL, + `variation` varchar(255) DEFAULT NULL, + `sku` varchar(255) DEFAULT NULL, + `artikel` int(11) DEFAULT NULL, + `erledigt` int(1) DEFAULT 0, + `verkauft` int(11) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_auktionen` -- +DROP TABLE IF EXISTS `ebay_auktionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_auktionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bild` varchar(255) NOT NULL DEFAULT '', - `url` varchar(255) NOT NULL DEFAULT '', - `itemid` varchar(255) NOT NULL DEFAULT '', - `sku` varchar(255) NOT NULL DEFAULT '', - `artikel` int(11) NOT NULL, - `typ` varchar(255) NOT NULL DEFAULT '', - `startdatum` datetime NOT NULL, - `dauer` varchar(255) NOT NULL, - `letzteaktualisierung` date NOT NULL, - `eingestellt` int(11) NOT NULL DEFAULT '0', - `verfuegbar` int(11) NOT NULL DEFAULT '0', - `verkauf` float NOT NULL DEFAULT '0', - `sofortkauf` float NOT NULL DEFAULT '0', - `beobachtet` int(11) NOT NULL DEFAULT '0', - `shop` int(11) NOT NULL, - `aktiv` int(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_auktionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bild` varchar(255) NOT NULL, + `url` varchar(255) NOT NULL, + `itemid` varchar(255) NOT NULL, + `sku` varchar(255) NOT NULL, + `artikel` int(11) NOT NULL, + `typ` varchar(255) NOT NULL, + `startdatum` datetime NOT NULL, + `dauer` varchar(255) NOT NULL, + `letzteaktualisierung` date NOT NULL, + `eingestellt` int(11) NOT NULL DEFAULT 0, + `verfuegbar` int(11) NOT NULL DEFAULT 0, + `verkauf` float NOT NULL DEFAULT 0, + `sofortkauf` float NOT NULL DEFAULT 0, + `beobachtet` int(11) NOT NULL DEFAULT 0, + `shop` int(11) NOT NULL, + `aktiv` int(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_bulk_call` -- +DROP TABLE IF EXISTS `ebay_bulk_call`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_bulk_call` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `request` varchar(255) NOT NULL DEFAULT '', - `type` varchar(255) NOT NULL DEFAULT '', - `parameter` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_bulk_call` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `request` varchar(255) NOT NULL, + `type` varchar(255) NOT NULL, + `parameter` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_bulk_jobs` -- +DROP TABLE IF EXISTS `ebay_bulk_jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_bulk_jobs` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `job_id` varchar(255) DEFAULT NULL, - `file_id` varchar(255) DEFAULT NULL, - `response_file_id` varchar(255) DEFAULT NULL, - `shop_id` int(11) NOT NULL, - `uuid` varchar(255) NOT NULL, - `type` varchar(255) NOT NULL, - `description` varchar(255) NOT NULL DEFAULT '', - `notes` varchar(255) NOT NULL DEFAULT '', - `status` varchar(255) NOT NULL, - `next_action` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `last_updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `job_id` (`job_id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_bulk_jobs` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `job_id` varchar(255) DEFAULT NULL, + `file_id` varchar(255) DEFAULT NULL, + `response_file_id` varchar(255) DEFAULT NULL, + `shop_id` int(11) NOT NULL, + `uuid` varchar(255) NOT NULL, + `type` varchar(255) NOT NULL, + `description` varchar(255) NOT NULL, + `notes` varchar(255) NOT NULL, + `status` varchar(255) NOT NULL, + `next_action` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `last_updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `job_id` (`job_id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_fee_overview` -- +DROP TABLE IF EXISTS `ebay_fee_overview`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_fee_overview` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `itemid` varchar(255) NOT NULL DEFAULT '', - `fee_date` datetime NOT NULL, - `fee_type` varchar(255) NOT NULL DEFAULT '', - `fee_description` varchar(255) NOT NULL DEFAULT '', - `fee_amount` varchar(255) NOT NULL DEFAULT '', - `fee_vat` float NOT NULL DEFAULT '0', - `fee_memo` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_fee_overview` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `itemid` varchar(255) NOT NULL, + `fee_date` datetime NOT NULL, + `fee_type` varchar(255) NOT NULL, + `fee_description` varchar(255) NOT NULL, + `fee_amount` varchar(255) NOT NULL, + `fee_vat` float NOT NULL DEFAULT 0, + `fee_memo` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_kategoriespezifisch` -- +DROP TABLE IF EXISTS `ebay_kategoriespezifisch`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_kategoriespezifisch` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `artikel` int(11) NOT NULL, - `shop` int(11) NOT NULL, - `primsec` int(11) NOT NULL, - `spec` int(11) NOT NULL, - `specname` varchar(255) DEFAULT NULL, - `typ` varchar(255) DEFAULT NULL, - `cardinality` varchar(255) DEFAULT NULL, - `maxvalues` int(11) DEFAULT '1', - `options` text, - `val` varchar(255) DEFAULT NULL, - `mandatory` int(1) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_kategoriespezifisch` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `artikel` int(11) NOT NULL, + `shop` int(11) NOT NULL, + `primsec` int(11) NOT NULL, + `spec` int(11) NOT NULL, + `specname` varchar(255) DEFAULT NULL, + `typ` varchar(255) DEFAULT NULL, + `cardinality` varchar(255) DEFAULT NULL, + `maxvalues` int(11) DEFAULT 1, + `options` text DEFAULT NULL, + `val` varchar(255) DEFAULT NULL, + `mandatory` int(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_kategorievorschlag` -- +DROP TABLE IF EXISTS `ebay_kategorievorschlag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_kategorievorschlag` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `kategorie` varchar(255) NOT NULL, - `vorschlagcategoryid` int(11) DEFAULT NULL, - `vorschlagbezeichnung` varchar(255) DEFAULT NULL, - `vorschlagparentsid` varchar(255) DEFAULT NULL, - `vorschlagparentsbezeichnung` varchar(255) DEFAULT NULL, - `wahrscheinlichkeit` int(11) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_kategorievorschlag` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `kategorie` varchar(255) NOT NULL, + `vorschlagcategoryid` int(11) DEFAULT NULL, + `vorschlagbezeichnung` varchar(255) DEFAULT NULL, + `vorschlagparentsid` varchar(255) DEFAULT NULL, + `vorschlagparentsbezeichnung` varchar(255) DEFAULT NULL, + `wahrscheinlichkeit` int(11) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_kategoriezustand` -- +DROP TABLE IF EXISTS `ebay_kategoriezustand`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_kategoriezustand` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `kategorie` varchar(255) NOT NULL, - `wert` int(11) NOT NULL, - `name` varchar(255) DEFAULT NULL, - `datum` date NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_kategoriezustand` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `kategorie` varchar(255) NOT NULL, + `wert` int(11) NOT NULL, + `name` varchar(255) DEFAULT NULL, + `datum` date NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_picture_hosting_service` -- +DROP TABLE IF EXISTS `ebay_picture_hosting_service`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_picture_hosting_service` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ebay_staging_listing_id` int(11) DEFAULT NULL, - `ebay_staging_listing_variation_id` int(11) DEFAULT NULL, - `file_id` int(11) DEFAULT NULL, - `url` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `ebay_staging_listing_id` (`ebay_staging_listing_id`), - KEY `ebay_staging_listing_variation_id` (`ebay_staging_listing_variation_id`), - KEY `file_id` (`file_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_picture_hosting_service` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ebay_staging_listing_id` int(11) DEFAULT NULL, + `ebay_staging_listing_variation_id` int(11) DEFAULT NULL, + `file_id` int(11) DEFAULT NULL, + `url` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `ebay_staging_listing_id` (`ebay_staging_listing_id`), + KEY `ebay_staging_listing_variation_id` (`ebay_staging_listing_variation_id`), + KEY `file_id` (`file_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_rahmenbedingungen` -- +DROP TABLE IF EXISTS `ebay_rahmenbedingungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_rahmenbedingungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(10) NOT NULL, - `aktiv` int(1) DEFAULT '0', - `profilid` varchar(255) NOT NULL, - `profiltype` varchar(255) NOT NULL, - `profilname` varchar(255) NOT NULL, - `profilsummary` varchar(255) NOT NULL, - `category` varchar(255) NOT NULL, - `defaultwert` int(1) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_rahmenbedingungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(10) NOT NULL, + `aktiv` int(1) DEFAULT 0, + `profilid` varchar(255) NOT NULL, + `profiltype` varchar(255) NOT NULL, + `profilname` varchar(255) NOT NULL, + `profilsummary` varchar(255) NOT NULL, + `category` varchar(255) NOT NULL, + `defaultwert` int(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_rest_token` -- +DROP TABLE IF EXISTS `ebay_rest_token`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_rest_token` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopexport_id` int(11) NOT NULL, - `token` text NOT NULL, - `scope` varchar(255) NOT NULL, - `valid_until` datetime NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_rest_token` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopexport_id` int(11) NOT NULL, + `token` text NOT NULL, + `scope` varchar(255) NOT NULL, + `valid_until` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_staging_listing` -- +DROP TABLE IF EXISTS `ebay_staging_listing`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_staging_listing` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) DEFAULT NULL, - `shop_id` int(11) NOT NULL, - `template_id` int(11) DEFAULT '0', - `item_id_external` varchar(255) DEFAULT NULL, - `ebay_primary_category_id_external` varchar(255) DEFAULT NULL, - `ebay_primary_store_category_id_external` varchar(255) DEFAULT NULL, - `ebay_secondary_store_category_id_external` varchar(255) DEFAULT NULL, - `ebay_secondary_category_id_external` varchar(255) DEFAULT NULL, - `ebay_shipping_profile_id_external` varchar(255) DEFAULT NULL, - `ebay_return_profile_id_external` varchar(255) DEFAULT NULL, - `ebay_payment_profile_id_external` varchar(255) DEFAULT NULL, - `ebay_private_listing` int(1) DEFAULT '0', - `ebay_price_suggestion` int(1) DEFAULT '0', - `ebay_plus` int(1) DEFAULT '0', - `type` varchar(255) DEFAULT NULL, - `status` varchar(255) DEFAULT NULL, - `sku` varchar(255) DEFAULT NULL, - `ean` varchar(255) DEFAULT NULL, - `title` varchar(255) DEFAULT NULL, - `listing_duration` varchar(255) DEFAULT NULL, - `inventory_tracking_method` varchar(255) DEFAULT NULL, - `condition_display_name` varchar(255) DEFAULT NULL, - `condition_id_external` varchar(255) DEFAULT NULL, - `condition_description` varchar(255) DEFAULT NULL, - `delivery_time` varchar(255) DEFAULT NULL, - `description` text, - PRIMARY KEY (`id`), - KEY `article_id` (`article_id`), - KEY `template_id` (`template_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_staging_listing` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) DEFAULT NULL, + `shop_id` int(11) NOT NULL, + `template_id` int(11) DEFAULT 0, + `item_id_external` varchar(255) DEFAULT NULL, + `ebay_primary_category_id_external` varchar(255) DEFAULT NULL, + `ebay_primary_store_category_id_external` varchar(255) DEFAULT NULL, + `ebay_secondary_store_category_id_external` varchar(255) DEFAULT NULL, + `ebay_secondary_category_id_external` varchar(255) DEFAULT NULL, + `ebay_shipping_profile_id_external` varchar(255) DEFAULT NULL, + `ebay_return_profile_id_external` varchar(255) DEFAULT NULL, + `ebay_payment_profile_id_external` varchar(255) DEFAULT NULL, + `ebay_private_listing` int(1) DEFAULT 0, + `ebay_price_suggestion` int(1) DEFAULT 0, + `ebay_plus` int(1) DEFAULT 0, + `type` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `sku` varchar(255) DEFAULT NULL, + `ean` varchar(255) DEFAULT NULL, + `title` varchar(255) DEFAULT NULL, + `listing_duration` varchar(255) DEFAULT NULL, + `inventory_tracking_method` varchar(255) DEFAULT NULL, + `condition_display_name` varchar(255) DEFAULT NULL, + `condition_id_external` varchar(255) DEFAULT NULL, + `condition_description` varchar(255) DEFAULT NULL, + `delivery_time` varchar(255) DEFAULT NULL, + `description` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `article_id` (`article_id`), + KEY `template_id` (`template_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_staging_listing_specific` -- +DROP TABLE IF EXISTS `ebay_staging_listing_specific`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_staging_listing_specific` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ebay_staging_listing_id` int(11) DEFAULT NULL, - `property` varchar(255) DEFAULT NULL, - `value` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `ebay_staging_listing_id` (`ebay_staging_listing_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_staging_listing_specific` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ebay_staging_listing_id` int(11) DEFAULT NULL, + `property` varchar(255) DEFAULT NULL, + `value` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `ebay_staging_listing_id` (`ebay_staging_listing_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_staging_listing_variant` -- +DROP TABLE IF EXISTS `ebay_staging_listing_variant`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_staging_listing_variant` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) DEFAULT NULL, - `ebay_staging_listing_id` int(11) DEFAULT NULL, - `sku` varchar(255) DEFAULT NULL, - `title` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `article_id` (`article_id`), - KEY `ebay_staging_listing_id` (`ebay_staging_listing_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_staging_listing_variant` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) DEFAULT NULL, + `ebay_staging_listing_id` int(11) DEFAULT NULL, + `sku` varchar(255) DEFAULT NULL, + `title` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `article_id` (`article_id`), + KEY `ebay_staging_listing_id` (`ebay_staging_listing_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_staging_listing_variant_specific` -- +DROP TABLE IF EXISTS `ebay_staging_listing_variant_specific`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_staging_listing_variant_specific` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ebay_staging_listing_variant_id` int(11) DEFAULT NULL, - `property` varchar(255) DEFAULT NULL, - `value` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_staging_listing_variant_specific` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ebay_staging_listing_variant_id` int(11) DEFAULT NULL, + `property` varchar(255) DEFAULT NULL, + `value` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_storekategorien` -- +DROP TABLE IF EXISTS `ebay_storekategorien`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_storekategorien` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `shop` int(11) NOT NULL, - `kategorie` varchar(255) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_storekategorien` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `shop` int(11) NOT NULL, + `kategorie` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_template` -- +DROP TABLE IF EXISTS `ebay_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_template` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `aktiv` int(1) DEFAULT NULL, - `bezeichnung` varchar(255) NOT NULL, - `template` longtext NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_template` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `aktiv` int(1) DEFAULT NULL, + `bezeichnung` varchar(255) NOT NULL, + `template` longtext NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_variantenbilder` -- +DROP TABLE IF EXISTS `ebay_variantenbilder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_variantenbilder` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datei` int(11) NOT NULL, - `url` varchar(255) NOT NULL, - `datum` date NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_variantenbilder` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datei` int(11) NOT NULL, + `url` varchar(255) NOT NULL, + `datum` date NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_versand` -- +DROP TABLE IF EXISTS `ebay_versand`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_versand` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `beschreibung` varchar(255) NOT NULL, - `carrier` varchar(255) NOT NULL, - `customcarrier` varchar(255) NOT NULL DEFAULT '', - `zeitmin` int(11) DEFAULT '0', - `zeitmax` int(11) DEFAULT '0', - `service` varchar(255) DEFAULT '', - `kategorie` varchar(255) DEFAULT '', - `aktiv` int(1) DEFAULT '0', - `shop` int(11) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_versand` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `beschreibung` varchar(255) NOT NULL, + `carrier` varchar(255) NOT NULL, + `customcarrier` varchar(255) NOT NULL, + `zeitmin` int(11) DEFAULT 0, + `zeitmax` int(11) DEFAULT 0, + `service` varchar(255) DEFAULT NULL, + `kategorie` varchar(255) DEFAULT NULL, + `aktiv` int(1) DEFAULT 0, + `shop` int(11) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ebay_versand_zuordnung` -- +DROP TABLE IF EXISTS `ebay_versand_zuordnung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ebay_versand_zuordnung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ebayversand` int(11) DEFAULT '0', - `versandart` int(11) DEFAULT '0', - `shop` int(11) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ebay_versand_zuordnung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ebayversand` int(11) DEFAULT 0, + `versandart` int(11) DEFAULT 0, + `shop` int(11) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `eigenschaften` -- +DROP TABLE IF EXISTS `eigenschaften`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `eigenschaften` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `art` int(11) NOT NULL DEFAULT '0', - `hauptkategorie` varchar(128) DEFAULT '', - `unterkategorie` varchar(128) DEFAULT '', - `einheit` varchar(64) DEFAULT '', - `wert` varchar(64) DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `eigenschaften` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `art` int(11) NOT NULL DEFAULT 0, + `hauptkategorie` varchar(128) DEFAULT NULL, + `unterkategorie` varchar(128) DEFAULT NULL, + `einheit` varchar(64) DEFAULT NULL, + `wert` varchar(64) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `einkaufspreise` -- +DROP TABLE IF EXISTS `einkaufspreise`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `einkaufspreise` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - `objekt` varchar(255) NOT NULL, - `projekt` varchar(255) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `ab_menge` decimal(14,4) NOT NULL DEFAULT '1.0000', - `vpe` varchar(64) NOT NULL DEFAULT '1', - `preis_anfrage_vom` date NOT NULL, - `gueltig_bis` date NOT NULL, - `lieferzeit_standard` int(11) NOT NULL, - `lieferzeit_aktuell` int(11) NOT NULL, - `lager_lieferant` int(11) NOT NULL, - `datum_lagerlieferant` date NOT NULL, - `bestellnummer` varchar(255) NOT NULL, - `bezeichnunglieferant` varchar(255) NOT NULL, - `sicherheitslager` int(11) NOT NULL, - `bemerkung` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `standard` int(1) NOT NULL, - `geloescht` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `apichange` tinyint(1) NOT NULL DEFAULT '0', - `rahmenvertrag` tinyint(1) NOT NULL DEFAULT '0', - `rahmenvertrag_von` date DEFAULT NULL, - `rahmenvertrag_bis` date DEFAULT NULL, - `rahmenvertrag_menge` int(11) NOT NULL DEFAULT '0', - `beschreibung` text NOT NULL, - `nichtberechnet` tinyint(1) NOT NULL DEFAULT '1', - `lieferzeit_standard_einheit` varchar(64) NOT NULL, - `lieferzeit_aktuell_einheit` varchar(64) NOT NULL, - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`), - KEY `adresse` (`adresse`), - KEY `projekt` (`projekt`), - KEY `bestellnummer` (`bestellnummer`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `einkaufspreise` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + `objekt` varchar(255) NOT NULL, + `projekt` varchar(255) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `ab_menge` decimal(14,4) NOT NULL DEFAULT 1.0000, + `vpe` varchar(64) NOT NULL DEFAULT '1', + `preis_anfrage_vom` date NOT NULL, + `gueltig_bis` date NOT NULL, + `lieferzeit_standard` int(11) NOT NULL, + `lieferzeit_aktuell` int(11) NOT NULL, + `lager_lieferant` int(11) NOT NULL, + `datum_lagerlieferant` date NOT NULL, + `bestellnummer` varchar(255) NOT NULL, + `bezeichnunglieferant` varchar(255) NOT NULL, + `sicherheitslager` int(11) NOT NULL, + `bemerkung` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `standard` int(1) NOT NULL, + `geloescht` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `apichange` tinyint(1) NOT NULL DEFAULT 0, + `rahmenvertrag` tinyint(1) NOT NULL DEFAULT 0, + `rahmenvertrag_von` date DEFAULT NULL, + `rahmenvertrag_bis` date DEFAULT NULL, + `rahmenvertrag_menge` int(11) NOT NULL DEFAULT 0, + `beschreibung` text NOT NULL, + `nichtberechnet` tinyint(1) NOT NULL DEFAULT 1, + `lieferzeit_standard_einheit` varchar(64) NOT NULL, + `lieferzeit_aktuell_einheit` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`), + KEY `adresse` (`adresse`), + KEY `projekt` (`projekt`), + KEY `bestellnummer` (`bestellnummer`) +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emailbackup` -- +DROP TABLE IF EXISTS `emailbackup`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `emailbackup` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `angezeigtername` varchar(255) NOT NULL, - `internebeschreibung` varchar(255) NOT NULL DEFAULT '', - `benutzername` varchar(255) NOT NULL, - `passwort` varchar(255) NOT NULL, - `server` varchar(255) NOT NULL, - `smtp` varchar(255) NOT NULL, - `ticket` int(1) NOT NULL, - `imap_sentfolder_aktiv` int(1) NOT NULL, - `imap_sentfolder` varchar(255) NOT NULL DEFAULT 'INBOX.Sent', - `imap_port` int(11) NOT NULL DEFAULT '993', - `imap_type` int(11) NOT NULL DEFAULT '3', - `autoresponder` int(1) NOT NULL, - `geschaeftsbriefvorlage` int(11) NOT NULL, - `autoresponderbetreff` varchar(255) NOT NULL, - `autorespondertext` text NOT NULL, - `projekt` int(11) NOT NULL, - `emailbackup` int(1) NOT NULL, - `adresse` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `loeschtage` varchar(255) NOT NULL, - `geloescht` int(1) NOT NULL, - `ticketloeschen` tinyint(1) NOT NULL DEFAULT '0', - `ticketabgeschlossen` tinyint(1) NOT NULL DEFAULT '0', - `ticketqueue` varchar(255) DEFAULT NULL, - `ticketprojekt` varchar(255) DEFAULT NULL, - `ticketemaileingehend` int(1) NOT NULL DEFAULT '0', - `smtp_extra` int(1) NOT NULL DEFAULT '0', - `smtp_ssl` int(1) NOT NULL DEFAULT '0', - `smtp_port` int(11) NOT NULL DEFAULT '25', - `smtp_frommail` varchar(128) NOT NULL DEFAULT '', - `smtp_fromname` varchar(128) NOT NULL DEFAULT '', - `client_alias` varchar(255) NOT NULL DEFAULT '', - `smtp_authtype` varchar(128) NOT NULL DEFAULT '', - `smtp_authparam` text NOT NULL, - `smtp_loglevel` int(1) NOT NULL DEFAULT '0', - `autosresponder_blacklist` tinyint(1) NOT NULL DEFAULT '1', - `eigenesignatur` tinyint(1) NOT NULL DEFAULT '0', - `signatur` text NOT NULL, - `mutex` tinyint(1) NOT NULL DEFAULT '0', - `abdatum` date DEFAULT NULL, - `email` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `emailbackup` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `angezeigtername` varchar(255) NOT NULL, + `internebeschreibung` varchar(255) NOT NULL, + `benutzername` varchar(255) NOT NULL, + `passwort` varchar(255) NOT NULL, + `server` varchar(255) NOT NULL, + `smtp` varchar(255) NOT NULL, + `ticket` int(1) NOT NULL, + `imap_sentfolder_aktiv` int(1) NOT NULL, + `imap_sentfolder` varchar(255) NOT NULL DEFAULT 'inbox.sent', + `imap_port` int(11) NOT NULL DEFAULT 993, + `imap_type` int(11) NOT NULL DEFAULT 3, + `autoresponder` int(1) NOT NULL, + `geschaeftsbriefvorlage` int(11) NOT NULL, + `autoresponderbetreff` varchar(255) NOT NULL, + `autorespondertext` text NOT NULL, + `projekt` int(11) NOT NULL, + `emailbackup` int(1) NOT NULL, + `adresse` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `loeschtage` varchar(255) NOT NULL, + `geloescht` int(1) NOT NULL, + `ticketloeschen` tinyint(1) NOT NULL DEFAULT 0, + `ticketabgeschlossen` tinyint(1) NOT NULL DEFAULT 0, + `ticketqueue` varchar(255) DEFAULT NULL, + `ticketprojekt` varchar(255) DEFAULT NULL, + `ticketemaileingehend` int(1) NOT NULL DEFAULT 0, + `smtp_extra` int(1) NOT NULL DEFAULT 0, + `smtp_ssl` int(1) NOT NULL DEFAULT 0, + `smtp_port` int(11) NOT NULL DEFAULT 25, + `smtp_frommail` varchar(128) NOT NULL, + `smtp_fromname` varchar(128) NOT NULL, + `client_alias` varchar(255) NOT NULL, + `smtp_authtype` varchar(128) NOT NULL, + `smtp_authparam` text NOT NULL, + `smtp_loglevel` int(1) NOT NULL DEFAULT 0, + `autosresponder_blacklist` tinyint(1) NOT NULL DEFAULT 1, + `eigenesignatur` tinyint(1) NOT NULL DEFAULT 0, + `signatur` text NOT NULL, + `mutex` tinyint(1) NOT NULL DEFAULT 0, + `abdatum` date DEFAULT NULL, + `email` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emailbackup_mails` -- +DROP TABLE IF EXISTS `emailbackup_mails`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `emailbackup_mails` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `webmail` int(10) DEFAULT NULL, - `subject` varchar(255) NOT NULL, - `sender` varchar(255) NOT NULL DEFAULT '', - `action` longtext NOT NULL, - `action_html` longtext NOT NULL, - `empfang` datetime DEFAULT NULL, - `anhang` varchar(255) NOT NULL DEFAULT '', - `gelesen` int(1) NOT NULL DEFAULT '0', - `dsgvo` int(1) NOT NULL DEFAULT '0', - `checksum` varchar(255) NOT NULL, - `adresse` int(11) NOT NULL DEFAULT '0', - `spam` int(1) NOT NULL DEFAULT '0', - `antworten` int(1) NOT NULL DEFAULT '0', - `phpobj` text, - `flattenedparts` longblob, - `attachment` longblob, - `geloescht` int(1) NOT NULL DEFAULT '0', - `warteschlange` int(1) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `ticketnachricht` int(11) NOT NULL DEFAULT '0', - `mail_replyto` varchar(255) NOT NULL DEFAULT '', - `verfasser_replyto` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `webmail` (`webmail`), - KEY `gelesen` (`gelesen`), - KEY `spam` (`spam`), - KEY `geloescht` (`geloescht`), - KEY `antworten` (`antworten`), - KEY `warteschlange` (`warteschlange`), - KEY `adresse` (`adresse`), - KEY `checksum` (`checksum`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `emailbackup_mails` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `webmail` int(10) DEFAULT NULL, + `subject` varchar(255) NOT NULL, + `sender` varchar(255) NOT NULL, + `action` longtext NOT NULL, + `action_html` longtext NOT NULL, + `empfang` datetime DEFAULT NULL, + `anhang` varchar(255) NOT NULL, + `gelesen` int(1) NOT NULL DEFAULT 0, + `dsgvo` int(1) NOT NULL DEFAULT 0, + `checksum` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `spam` int(1) NOT NULL DEFAULT 0, + `antworten` int(1) NOT NULL DEFAULT 0, + `phpobj` text DEFAULT NULL, + `flattenedparts` longblob DEFAULT NULL, + `attachment` longblob DEFAULT NULL, + `geloescht` int(1) NOT NULL DEFAULT 0, + `warteschlange` int(1) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `ticketnachricht` int(11) NOT NULL DEFAULT 0, + `mail_replyto` varchar(255) NOT NULL, + `verfasser_replyto` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `webmail` (`webmail`), + KEY `gelesen` (`gelesen`), + KEY `spam` (`spam`), + KEY `geloescht` (`geloescht`), + KEY `antworten` (`antworten`), + KEY `warteschlange` (`warteschlange`), + KEY `adresse` (`adresse`), + KEY `checksum` (`checksum`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `epost_files` -- +DROP TABLE IF EXISTS `epost_files`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `epost_files` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `rechnung` int(10) unsigned DEFAULT NULL, - `datum` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `status` text, - `datei` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `epost_files` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `rechnung` int(10) unsigned DEFAULT NULL, + `datum` timestamp NOT NULL DEFAULT current_timestamp(), + `status` text DEFAULT NULL, + `datei` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `etiketten` -- +DROP TABLE IF EXISTS `etiketten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `etiketten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL DEFAULT '', - `xml` text NOT NULL, - `bemerkung` text NOT NULL, - `ausblenden` tinyint(1) NOT NULL DEFAULT '0', - `verwendenals` varchar(64) NOT NULL DEFAULT '', - `labelbreite` int(11) NOT NULL DEFAULT '50', - `labelhoehe` int(11) NOT NULL DEFAULT '18', - `labelabstand` int(11) NOT NULL DEFAULT '3', - `labeloffsetx` int(11) NOT NULL DEFAULT '0', - `labeloffsety` int(11) NOT NULL DEFAULT '6', - `format` varchar(64) NOT NULL DEFAULT '', - `manuell` tinyint(1) NOT NULL DEFAULT '0', - `anzahlprozeile` int(11) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `etiketten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL, + `xml` text NOT NULL, + `bemerkung` text NOT NULL, + `ausblenden` tinyint(1) NOT NULL DEFAULT 0, + `verwendenals` varchar(64) NOT NULL, + `labelbreite` int(11) NOT NULL DEFAULT 50, + `labelhoehe` int(11) NOT NULL DEFAULT 18, + `labelabstand` int(11) NOT NULL DEFAULT 3, + `labeloffsetx` int(11) NOT NULL DEFAULT 0, + `labeloffsety` int(11) NOT NULL DEFAULT 6, + `format` varchar(64) NOT NULL, + `manuell` tinyint(1) NOT NULL DEFAULT 0, + `anzahlprozeile` int(11) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `etsy_taxonomy` -- +DROP TABLE IF EXISTS `etsy_taxonomy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `etsy_taxonomy` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) NOT NULL, - `path` varchar(255) NOT NULL DEFAULT '', - `description` varchar(255) NOT NULL, - `version` varchar(255) NOT NULL, - `id_external` varchar(255) NOT NULL, - `parent_id_external` varchar(255) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `etsy_taxonomy` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `title` varchar(255) NOT NULL, + `path` varchar(255) NOT NULL, + `description` varchar(255) NOT NULL, + `version` varchar(255) NOT NULL, + `id_external` varchar(255) NOT NULL, + `parent_id_external` varchar(255) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `etsy_transaction` -- +DROP TABLE IF EXISTS `etsy_transaction`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `etsy_transaction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `etsy_transaction_id` VARCHAR(255) NOT NULL, - `etsy_listing_id` int(11) NOT NULL, - `etsy_title` varchar(255) NOT NULL, - `etsy_buyer_email` varchar(255) NOT NULL, - `etsy_creation_time` datetime NOT NULL, - `fetched_date` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `etsy_transaction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `etsy_transaction_id` varchar(255) NOT NULL, + `etsy_listing_id` int(11) NOT NULL, + `etsy_title` varchar(255) NOT NULL, + `etsy_buyer_email` varchar(255) NOT NULL, + `etsy_creation_time` datetime NOT NULL, + `fetched_date` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `event` -- +DROP TABLE IF EXISTS `event`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `event` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `beschreibung` varchar(255) NOT NULL, - `kategorie` varchar(255) NOT NULL, - `zeit` datetime NOT NULL, - `objekt` varchar(255) NOT NULL, - `parameter` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `event` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `beschreibung` varchar(255) NOT NULL, + `kategorie` varchar(255) NOT NULL, + `zeit` datetime NOT NULL, + `objekt` varchar(255) NOT NULL, + `parameter` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `event_api` -- +DROP TABLE IF EXISTS `event_api`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `event_api` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `cachetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `eventname` varchar(255) DEFAULT NULL, - `parameter` varchar(255) DEFAULT NULL, - `module` varchar(255) DEFAULT NULL, - `action` varchar(255) DEFAULT NULL, - `retries` int(11) DEFAULT NULL, - `kommentar` varchar(255) DEFAULT NULL, - `api` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `event_api` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `cachetime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `eventname` varchar(255) DEFAULT NULL, + `parameter` varchar(255) DEFAULT NULL, + `module` varchar(255) DEFAULT NULL, + `action` varchar(255) DEFAULT NULL, + `retries` int(11) DEFAULT NULL, + `kommentar` varchar(255) DEFAULT NULL, + `api` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `exportlink_sent` -- +DROP TABLE IF EXISTS `exportlink_sent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `exportlink_sent` ( - `id` int(11) NOT NULL, - `reg` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - `objekt` int(11) NOT NULL, - `mail` int(11) NOT NULL, - `ident` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - `datum` date NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `exportlink_sent` ( + `id` int(11) NOT NULL, + `reg` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + `objekt` int(11) NOT NULL, + `mail` int(11) NOT NULL, + `ident` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + `datum` date NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `exportvorlage` -- +DROP TABLE IF EXISTS `exportvorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `exportvorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) DEFAULT NULL, - `ziel` varchar(255) DEFAULT NULL, - `internebemerkung` text, - `fields` text, - `fields_where` text, - `letzterexport` datetime DEFAULT NULL, - `mitarbeiterletzterexport` varchar(255) DEFAULT NULL, - `exporttrennzeichen` varchar(255) DEFAULT NULL, - `exporterstezeilenummer` int(11) DEFAULT NULL, - `exportdatenmaskierung` varchar(255) DEFAULT NULL, - `exportzeichensatz` varchar(255) DEFAULT NULL, - `filterdatum` tinyint(1) NOT NULL DEFAULT '0', - `filterprojekt` tinyint(1) NOT NULL DEFAULT '0', - `apifreigabe` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `exportvorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) DEFAULT NULL, + `ziel` varchar(255) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + `fields` text DEFAULT NULL, + `fields_where` text DEFAULT NULL, + `letzterexport` datetime DEFAULT NULL, + `mitarbeiterletzterexport` varchar(255) DEFAULT NULL, + `exporttrennzeichen` varchar(255) DEFAULT NULL, + `exporterstezeilenummer` int(11) DEFAULT NULL, + `exportdatenmaskierung` varchar(255) DEFAULT NULL, + `exportzeichensatz` varchar(255) DEFAULT NULL, + `filterdatum` tinyint(1) NOT NULL DEFAULT 0, + `filterprojekt` tinyint(1) NOT NULL DEFAULT 0, + `apifreigabe` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `extended_approval_protocol` -- +DROP TABLE IF EXISTS `extended_approval_protocol`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `extended_approval_protocol` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype_id` int(11) NOT NULL DEFAULT '0', - `doctype` varchar(255) NOT NULL, - `requestertype` varchar(255) NOT NULL, - `requester_id` int(11) NOT NULL DEFAULT '0', - `moneylimit` decimal(14,2) NOT NULL DEFAULT '0.00', - `releasetype` varchar(255) NOT NULL, - `release_id` int(11) NOT NULL DEFAULT '0', - `type` varchar(255) NOT NULL, - `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `extended_approval_protocol` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype_id` int(11) NOT NULL DEFAULT 0, + `doctype` varchar(255) NOT NULL, + `requestertype` varchar(255) NOT NULL, + `requester_id` int(11) NOT NULL DEFAULT 0, + `moneylimit` decimal(14,2) NOT NULL DEFAULT 0.00, + `releasetype` varchar(255) NOT NULL, + `release_id` int(11) NOT NULL DEFAULT 0, + `type` varchar(255) NOT NULL, + `timestamp` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `extended_approval_responsibility` -- +DROP TABLE IF EXISTS `extended_approval_responsibility`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `extended_approval_responsibility` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype` varchar(255) NOT NULL, - `requestertype` varchar(255) NOT NULL, - `requester_id` int(11) NOT NULL DEFAULT '0', - `moneylimit` decimal(14,2) NOT NULL DEFAULT '0.00', - `releasetype` varchar(255) NOT NULL, - `release_id` int(11) NOT NULL DEFAULT '0', - `email` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `extended_approval_responsibility` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype` varchar(255) NOT NULL, + `requestertype` varchar(255) NOT NULL, + `requester_id` int(11) NOT NULL DEFAULT 0, + `moneylimit` decimal(14,2) NOT NULL DEFAULT 0.00, + `releasetype` varchar(255) NOT NULL, + `release_id` int(11) NOT NULL DEFAULT 0, + `email` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `fee_reduction` -- +DROP TABLE IF EXISTS `fee_reduction`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `fee_reduction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype` varchar(64) NOT NULL DEFAULT '', - `doctype_id` int(11) NOT NULL DEFAULT '0', - `position_id` int(11) NOT NULL DEFAULT '0', - `amount` decimal(14,4) NOT NULL DEFAULT '0.0000', - `price` decimal(14,4) NOT NULL DEFAULT '0.0000', - `price_type` varchar(64) NOT NULL DEFAULT '', - `currency` varchar(8) NOT NULL DEFAULT '', - `comment` varchar(1024) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `doctype` (`doctype`), - KEY `doctype_id` (`doctype_id`), - KEY `price_type` (`price_type`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `fee_reduction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype` varchar(64) NOT NULL, + `doctype_id` int(11) NOT NULL DEFAULT 0, + `position_id` int(11) NOT NULL DEFAULT 0, + `amount` decimal(14,4) NOT NULL DEFAULT 0.0000, + `price` decimal(14,4) NOT NULL DEFAULT 0.0000, + `price_type` varchar(64) NOT NULL, + `currency` varchar(8) NOT NULL, + `comment` varchar(1024) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `doctype` (`doctype`), + KEY `doctype_id` (`doctype_id`), + KEY `price_type` (`price_type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `fibu_buchungen` +-- + +DROP TABLE IF EXISTS `fibu_buchungen`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `fibu_buchungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `von_typ` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `von_id` int(11) NOT NULL, + `nach_typ` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `nach_id` int(11) NOT NULL, + `betrag` decimal(10,2) NOT NULL, + `waehrung` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'EUR', + `benutzer` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `internebemerkung` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `datum` date NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `fibu_buchungen_alle` +-- + +DROP TABLE IF EXISTS `fibu_buchungen_alle`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `fibu_buchungen_alle` ( + `buchungsart` varchar(9) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `typ` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `id` int(11) NOT NULL, + `datum` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `doc_typ` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `doc_id` int(11) NOT NULL, + `doc_info` varchar(513) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `betrag` decimal(18,2) NOT NULL, + `waehrung` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `edit_module` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `edit_id` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Temporary table structure for view `fibu_buchungen_alle_view` +-- + +DROP TABLE IF EXISTS `fibu_buchungen_alle_view`; +/*!50001 DROP VIEW IF EXISTS `fibu_buchungen_alle_view`*/; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +/*!50001 CREATE VIEW `fibu_buchungen_alle_view` AS SELECT + 1 AS `buchungsart`, + 1 AS `typ`, + 1 AS `id`, + 1 AS `datum`, + 1 AS `doc_typ`, + 1 AS `doc_id`, + 1 AS `doc_info`, + 1 AS `betrag`, + 1 AS `waehrung`, + 1 AS `edit_module`, + 1 AS `edit_id` */; +SET character_set_client = @saved_cs_client; + +-- +-- Table structure for table `fibu_objekte` +-- + +DROP TABLE IF EXISTS `fibu_objekte`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `fibu_objekte` ( + `datum` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `typ` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `id` int(11) NOT NULL, + `info` varchar(513) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `parent_typ` varchar(7) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `parent_id` varchar(11) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `parent_info` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `is_beleg` int(1) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Temporary table structure for view `fibu_objekte_view` +-- + +DROP TABLE IF EXISTS `fibu_objekte_view`; +/*!50001 DROP VIEW IF EXISTS `fibu_objekte_view`*/; +SET @saved_cs_client = @@character_set_client; +SET character_set_client = utf8; +/*!50001 CREATE VIEW `fibu_objekte_view` AS SELECT + 1 AS `datum`, + 1 AS `typ`, + 1 AS `id`, + 1 AS `info`, + 1 AS `parent_typ`, + 1 AS `parent_id`, + 1 AS `parent_info`, + 1 AS `is_beleg` */; +SET character_set_client = @saved_cs_client; + -- -- Table structure for table `file_link` -- +DROP TABLE IF EXISTS `file_link`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `file_link` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) NOT NULL DEFAULT '0', - `label` varchar(255) NOT NULL, - `file_link` varchar(255) NOT NULL, - `internal_note` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `file_link` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) NOT NULL DEFAULT 0, + `label` varchar(255) NOT NULL, + `file_link` varchar(255) NOT NULL, + `internal_note` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `firma` -- +DROP TABLE IF EXISTS `firma`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `firma` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `standardprojekt` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `firma` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `standardprojekt` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `firmendaten` -- +DROP TABLE IF EXISTS `firmendaten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `firmendaten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `firma` int(11) NOT NULL, - `logo` longblob NOT NULL, - `briefpapier` longblob NOT NULL, - `benutzername` varchar(64) NOT NULL, - `passwort` varchar(64) NOT NULL, - `host` varchar(64) NOT NULL, - `port` varchar(64) NOT NULL, - `mailssl` int(1) NOT NULL DEFAULT '0', - `signatur` text NOT NULL, - `datum` datetime NOT NULL, - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `deviceserials` text NOT NULL, - `lizenz` text NOT NULL, - `schluessel` text NOT NULL, - `mlm_mindestbetrag` decimal(10,2) NOT NULL DEFAULT '50.00', - `mlm_letzter_tag` date DEFAULT NULL, - `mlm_erster_tag` date DEFAULT NULL, - `mlm_letzte_berechnung` datetime DEFAULT NULL, - `mlm_01` decimal(10,2) NOT NULL DEFAULT '15.00', - `mlm_02` decimal(10,2) NOT NULL DEFAULT '20.00', - `mlm_03` decimal(10,2) NOT NULL DEFAULT '28.00', - `mlm_04` decimal(10,2) NOT NULL DEFAULT '32.00', - `mlm_05` decimal(10,2) NOT NULL DEFAULT '36.00', - `mlm_06` decimal(10,2) NOT NULL DEFAULT '40.00', - `mlm_07` decimal(10,2) NOT NULL DEFAULT '44.00', - `mlm_08` decimal(10,2) NOT NULL DEFAULT '44.00', - `mlm_09` decimal(10,2) NOT NULL DEFAULT '44.00', - `mlm_10` decimal(10,2) NOT NULL DEFAULT '44.00', - `mlm_11` decimal(10,2) NOT NULL DEFAULT '50.00', - `mlm_12` decimal(10,2) NOT NULL DEFAULT '54.00', - `mlm_13` decimal(10,2) NOT NULL DEFAULT '45.00', - `mlm_14` decimal(10,2) NOT NULL DEFAULT '48.00', - `mlm_15` decimal(10,2) NOT NULL DEFAULT '60.00', - `zahlung_rechnung_sofort_de` text NOT NULL, - `zahlung_rechnung_de` text NOT NULL, - `zahlung_vorkasse_de` text NOT NULL, - `zahlung_lastschrift_de` text NOT NULL, - `zahlung_nachnahme_de` text NOT NULL, - `zahlung_bar_de` text NOT NULL, - `zahlung_paypal_de` text NOT NULL, - `zahlung_amazon_de` text NOT NULL, - `zahlung_kreditkarte_de` text NOT NULL, - `zahlung_ratenzahlung_de` text NOT NULL, - `briefpapier2` longblob, - `freifeld1` text NOT NULL, - `freifeld2` text NOT NULL, - `freifeld3` text NOT NULL, - `freifeld4` text NOT NULL, - `freifeld5` text NOT NULL, - `freifeld6` text NOT NULL, - `firmenfarbehell` text NOT NULL, - `firmenfarbedunkel` text NOT NULL, - `firmenfarbeganzdunkel` text NOT NULL, - `navigationfarbe` text NOT NULL, - `navigationfarbeschrift` text NOT NULL, - `unternavigationfarbe` text NOT NULL, - `unternavigationfarbeschrift` text NOT NULL, - `firmenlogo` longblob, - `rechnung_header` text, - `lieferschein_header` text, - `angebot_header` text, - `auftrag_header` text, - `gutschrift_header` text, - `bestellung_header` text, - `arbeitsnachweis_header` text, - `provisionsgutschrift_header` text, - `rechnung_footer` text, - `lieferschein_footer` text, - `angebot_footer` text, - `auftrag_footer` text, - `gutschrift_footer` text, - `bestellung_footer` text, - `arbeitsnachweis_footer` text, - `provisionsgutschrift_footer` text, - `eu_lieferung_vermerk` text NOT NULL, - `export_lieferung_vermerk` text NOT NULL, - `zahlung_amazon_bestellung_de` text NOT NULL, - `zahlung_billsafe_de` text NOT NULL, - `zahlung_sofortueberweisung_de` text NOT NULL, - `zahlung_secupay_de` text NOT NULL, - `adressefreifeld1` text NOT NULL, - `adressefreifeld2` text NOT NULL, - `adressefreifeld3` text NOT NULL, - `adressefreifeld4` text NOT NULL, - `adressefreifeld5` text NOT NULL, - `adressefreifeld6` text NOT NULL, - `adressefreifeld7` text NOT NULL, - `adressefreifeld8` text NOT NULL, - `adressefreifeld9` text NOT NULL, - `adressefreifeld10` text NOT NULL, - `zahlung_eckarte_de` text NOT NULL, - `devicekey` varchar(64) NOT NULL DEFAULT '', - `mailanstellesmtp` int(1) DEFAULT NULL, - `layout_iconbar` int(1) DEFAULT NULL, - `bcc1` varchar(64) NOT NULL, - `bcc2` varchar(64) NOT NULL, - `firmenfarbe` varchar(64) NOT NULL, - `name` varchar(64) NOT NULL, - `betreffszeile` int(1) NOT NULL DEFAULT '0', - `dokumententext` int(1) NOT NULL DEFAULT '0', - `barcode_y` int(11) NOT NULL DEFAULT '265', - `email_html_template` text NOT NULL, - `freifeld7` text NOT NULL, - `freifeld8` text NOT NULL, - `freifeld9` text NOT NULL, - `freifeld10` text NOT NULL, - `freifeld11` text NOT NULL, - `freifeld12` text NOT NULL, - `freifeld13` text NOT NULL, - `freifeld14` text NOT NULL, - `freifeld15` text NOT NULL, - `freifeld16` text NOT NULL, - `freifeld17` text NOT NULL, - `freifeld18` text NOT NULL, - `freifeld19` text NOT NULL, - `freifeld20` text NOT NULL, - `freifeld21` text NOT NULL, - `freifeld22` text NOT NULL, - `freifeld23` text NOT NULL, - `freifeld24` text NOT NULL, - `freifeld25` text NOT NULL, - `freifeld26` text NOT NULL, - `freifeld27` text NOT NULL, - `freifeld28` text NOT NULL, - `freifeld29` text NOT NULL, - `freifeld30` text NOT NULL, - `freifeld31` text NOT NULL, - `freifeld32` text NOT NULL, - `freifeld33` text NOT NULL, - `freifeld34` text NOT NULL, - `freifeld35` text NOT NULL, - `freifeld36` text NOT NULL, - `freifeld37` text NOT NULL, - `freifeld38` text NOT NULL, - `freifeld39` text NOT NULL, - `freifeld40` text NOT NULL, - `adressefreifeld11` text NOT NULL, - `adressefreifeld12` text NOT NULL, - `adressefreifeld13` text NOT NULL, - `adressefreifeld14` text NOT NULL, - `adressefreifeld15` text NOT NULL, - `adressefreifeld16` text NOT NULL, - `adressefreifeld17` text NOT NULL, - `adressefreifeld18` text NOT NULL, - `adressefreifeld19` text NOT NULL, - `adressefreifeld20` text NOT NULL, - `proformarechnung_header` text, - `proformarechnung_footer` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `firmendaten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `firma` int(11) NOT NULL, + `logo` longblob NOT NULL, + `briefpapier` longblob NOT NULL, + `benutzername` varchar(64) NOT NULL, + `passwort` varchar(64) NOT NULL, + `host` varchar(64) NOT NULL, + `port` varchar(64) NOT NULL, + `mailssl` int(1) NOT NULL DEFAULT 0, + `signatur` text NOT NULL, + `datum` datetime NOT NULL, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `deviceserials` text NOT NULL, + `lizenz` text NOT NULL, + `schluessel` text NOT NULL, + `mlm_mindestbetrag` decimal(10,2) NOT NULL DEFAULT 50.00, + `mlm_letzter_tag` date DEFAULT NULL, + `mlm_erster_tag` date DEFAULT NULL, + `mlm_letzte_berechnung` datetime DEFAULT NULL, + `mlm_01` decimal(10,2) NOT NULL DEFAULT 15.00, + `mlm_02` decimal(10,2) NOT NULL DEFAULT 20.00, + `mlm_03` decimal(10,2) NOT NULL DEFAULT 28.00, + `mlm_04` decimal(10,2) NOT NULL DEFAULT 32.00, + `mlm_05` decimal(10,2) NOT NULL DEFAULT 36.00, + `mlm_06` decimal(10,2) NOT NULL DEFAULT 40.00, + `mlm_07` decimal(10,2) NOT NULL DEFAULT 44.00, + `mlm_08` decimal(10,2) NOT NULL DEFAULT 44.00, + `mlm_09` decimal(10,2) NOT NULL DEFAULT 44.00, + `mlm_10` decimal(10,2) NOT NULL DEFAULT 44.00, + `mlm_11` decimal(10,2) NOT NULL DEFAULT 50.00, + `mlm_12` decimal(10,2) NOT NULL DEFAULT 54.00, + `mlm_13` decimal(10,2) NOT NULL DEFAULT 45.00, + `mlm_14` decimal(10,2) NOT NULL DEFAULT 48.00, + `mlm_15` decimal(10,2) NOT NULL DEFAULT 60.00, + `zahlung_rechnung_sofort_de` text NOT NULL, + `zahlung_rechnung_de` text NOT NULL, + `zahlung_vorkasse_de` text NOT NULL, + `zahlung_lastschrift_de` text NOT NULL, + `zahlung_nachnahme_de` text NOT NULL, + `zahlung_bar_de` text NOT NULL, + `zahlung_paypal_de` text NOT NULL, + `zahlung_amazon_de` text NOT NULL, + `zahlung_kreditkarte_de` text NOT NULL, + `zahlung_ratenzahlung_de` text NOT NULL, + `briefpapier2` longblob DEFAULT NULL, + `freifeld1` text NOT NULL, + `freifeld2` text NOT NULL, + `freifeld3` text NOT NULL, + `freifeld4` text NOT NULL, + `freifeld5` text NOT NULL, + `freifeld6` text NOT NULL, + `firmenfarbehell` text NOT NULL, + `firmenfarbedunkel` text NOT NULL, + `firmenfarbeganzdunkel` text NOT NULL, + `navigationfarbe` text NOT NULL, + `navigationfarbeschrift` text NOT NULL, + `unternavigationfarbe` text NOT NULL, + `unternavigationfarbeschrift` text NOT NULL, + `firmenlogo` longblob DEFAULT NULL, + `rechnung_header` text DEFAULT NULL, + `lieferschein_header` text DEFAULT NULL, + `angebot_header` text DEFAULT NULL, + `auftrag_header` text DEFAULT NULL, + `gutschrift_header` text DEFAULT NULL, + `bestellung_header` text DEFAULT NULL, + `arbeitsnachweis_header` text DEFAULT NULL, + `provisionsgutschrift_header` text DEFAULT NULL, + `rechnung_footer` text DEFAULT NULL, + `lieferschein_footer` text DEFAULT NULL, + `angebot_footer` text DEFAULT NULL, + `auftrag_footer` text DEFAULT NULL, + `gutschrift_footer` text DEFAULT NULL, + `bestellung_footer` text DEFAULT NULL, + `arbeitsnachweis_footer` text DEFAULT NULL, + `provisionsgutschrift_footer` text DEFAULT NULL, + `eu_lieferung_vermerk` text NOT NULL, + `export_lieferung_vermerk` text NOT NULL, + `zahlung_amazon_bestellung_de` text NOT NULL, + `zahlung_billsafe_de` text NOT NULL, + `zahlung_sofortueberweisung_de` text NOT NULL, + `zahlung_secupay_de` text NOT NULL, + `adressefreifeld1` text NOT NULL, + `adressefreifeld2` text NOT NULL, + `adressefreifeld3` text NOT NULL, + `adressefreifeld4` text NOT NULL, + `adressefreifeld5` text NOT NULL, + `adressefreifeld6` text NOT NULL, + `adressefreifeld7` text NOT NULL, + `adressefreifeld8` text NOT NULL, + `adressefreifeld9` text NOT NULL, + `adressefreifeld10` text NOT NULL, + `zahlung_eckarte_de` text NOT NULL, + `devicekey` varchar(64) NOT NULL, + `mailanstellesmtp` int(1) DEFAULT NULL, + `layout_iconbar` int(1) DEFAULT NULL, + `bcc1` varchar(64) NOT NULL, + `bcc2` varchar(64) NOT NULL, + `firmenfarbe` varchar(64) NOT NULL, + `name` varchar(64) NOT NULL, + `betreffszeile` int(1) NOT NULL DEFAULT 0, + `dokumententext` int(1) NOT NULL DEFAULT 0, + `barcode_y` int(11) NOT NULL DEFAULT 265, + `email_html_template` text NOT NULL, + `freifeld7` text NOT NULL, + `freifeld8` text NOT NULL, + `freifeld9` text NOT NULL, + `freifeld10` text NOT NULL, + `freifeld11` text NOT NULL, + `freifeld12` text NOT NULL, + `freifeld13` text NOT NULL, + `freifeld14` text NOT NULL, + `freifeld15` text NOT NULL, + `freifeld16` text NOT NULL, + `freifeld17` text NOT NULL, + `freifeld18` text NOT NULL, + `freifeld19` text NOT NULL, + `freifeld20` text NOT NULL, + `freifeld21` text NOT NULL, + `freifeld22` text NOT NULL, + `freifeld23` text NOT NULL, + `freifeld24` text NOT NULL, + `freifeld25` text NOT NULL, + `freifeld26` text NOT NULL, + `freifeld27` text NOT NULL, + `freifeld28` text NOT NULL, + `freifeld29` text NOT NULL, + `freifeld30` text NOT NULL, + `freifeld31` text NOT NULL, + `freifeld32` text NOT NULL, + `freifeld33` text NOT NULL, + `freifeld34` text NOT NULL, + `freifeld35` text NOT NULL, + `freifeld36` text NOT NULL, + `freifeld37` text NOT NULL, + `freifeld38` text NOT NULL, + `freifeld39` text NOT NULL, + `freifeld40` text NOT NULL, + `adressefreifeld11` text NOT NULL, + `adressefreifeld12` text NOT NULL, + `adressefreifeld13` text NOT NULL, + `adressefreifeld14` text NOT NULL, + `adressefreifeld15` text NOT NULL, + `adressefreifeld16` text NOT NULL, + `adressefreifeld17` text NOT NULL, + `adressefreifeld18` text NOT NULL, + `adressefreifeld19` text NOT NULL, + `adressefreifeld20` text NOT NULL, + `proformarechnung_header` text DEFAULT NULL, + `proformarechnung_footer` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `firmendaten_werte` -- +DROP TABLE IF EXISTS `firmendaten_werte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `firmendaten_werte` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL DEFAULT '', - `typ` varchar(64) NOT NULL DEFAULT '', - `typ1` varchar(64) NOT NULL DEFAULT '', - `typ2` varchar(64) NOT NULL DEFAULT '', - `wert` text NOT NULL, - `default_value` text NOT NULL, - `default_null` tinyint(1) NOT NULL DEFAULT '0', - `darf_null` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=1258 DEFAULT CHARSET=utf8; +CREATE TABLE `firmendaten_werte` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL, + `typ` varchar(64) NOT NULL, + `typ1` varchar(64) NOT NULL, + `typ2` varchar(64) NOT NULL, + `wert` text NOT NULL, + `default_value` text NOT NULL, + `default_null` tinyint(1) NOT NULL DEFAULT 0, + `darf_null` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1258 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `formeln` -- +DROP TABLE IF EXISTS `formeln`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `formeln` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `kennung` varchar(255) NOT NULL, - `aktiv` tinyint(1) NOT NULL, - `formel` varchar(500) NOT NULL, - PRIMARY KEY (`id`), - KEY `kennung` (`kennung`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `formeln` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `kennung` varchar(255) NOT NULL, + `aktiv` tinyint(1) NOT NULL, + `formel` varchar(500) NOT NULL, + PRIMARY KEY (`id`), + KEY `kennung` (`kennung`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `formula_position` -- +DROP TABLE IF EXISTS `formula_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `formula_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL DEFAULT '', - `formula` varchar(500) NOT NULL DEFAULT '', - `doctype` varchar(32) NOT NULL DEFAULT '', - `project_id` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `active` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `formula_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL, + `formula` varchar(500) NOT NULL, + `doctype` varchar(32) NOT NULL, + `project_id` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `active` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `free_article` -- +DROP TABLE IF EXISTS `free_article`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `free_article` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) NOT NULL DEFAULT '0', - `project_id` int(11) NOT NULL DEFAULT '0', - `amount` decimal(14,2) NOT NULL DEFAULT '0.00', - `everyone` tinyint(1) NOT NULL DEFAULT '0', - `while_stocks_last` tinyint(1) NOT NULL DEFAULT '0', - `only_new_customer` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `free_article` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) NOT NULL DEFAULT 0, + `project_id` int(11) NOT NULL DEFAULT 0, + `amount` decimal(14,2) NOT NULL DEFAULT 0.00, + `everyone` tinyint(1) NOT NULL DEFAULT 0, + `while_stocks_last` tinyint(1) NOT NULL DEFAULT 0, + `only_new_customer` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `free_article_included` -- +DROP TABLE IF EXISTS `free_article_included`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `free_article_included` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `free_article_id` int(11) NOT NULL DEFAULT '0', - `order_id` int(11) NOT NULL DEFAULT '0', - `order_position_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `free_article_id` (`free_article_id`), - KEY `order_id` (`order_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `free_article_included` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `free_article_id` int(11) NOT NULL DEFAULT 0, + `order_id` int(11) NOT NULL DEFAULT 0, + `order_position_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `free_article_id` (`free_article_id`), + KEY `order_id` (`order_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `geschaeftsbrief_vorlagen` -- +DROP TABLE IF EXISTS `geschaeftsbrief_vorlagen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `geschaeftsbrief_vorlagen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `sprache` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `text` text NOT NULL, - `subjekt` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `firma` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8; +CREATE TABLE `geschaeftsbrief_vorlagen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `sprache` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `text` text NOT NULL, + `subjekt` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `firma` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gls` -- +DROP TABLE IF EXISTS `gls`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gls` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vorlage` varchar(255) NOT NULL, - `name` varchar(255) NOT NULL, - `name2` varchar(255) NOT NULL, - `name3` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `hausnr` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `notiz` varchar(255) NOT NULL, - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gls` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `vorlage` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + `name2` varchar(255) NOT NULL, + `name3` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `hausnr` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `notiz` varchar(255) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `goodspostingdocument` -- +DROP TABLE IF EXISTS `goodspostingdocument`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `goodspostingdocument` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `belegnr` varchar(32) NOT NULL DEFAULT '', - `status` varchar(16) NOT NULL DEFAULT 'angelegt', - `name` varchar(64) NOT NULL DEFAULT '', - `document_date` date DEFAULT NULL, - `project_id` int(11) NOT NULL DEFAULT '0', - `document_type` varchar(32) NOT NULL DEFAULT '', - `storage_location_from_id` int(11) NOT NULL DEFAULT '0', - `storage_location_to_id` int(11) NOT NULL DEFAULT '0', - `schreibschutz` tinyint(1) NOT NULL DEFAULT '0', - `storagesort` varchar(16) NOT NULL DEFAULT '', - `document_info` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `goodspostingdocument` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `belegnr` varchar(32) NOT NULL, + `status` varchar(16) NOT NULL DEFAULT 'angelegt', + `name` varchar(64) NOT NULL, + `document_date` date DEFAULT NULL, + `project_id` int(11) NOT NULL DEFAULT 0, + `document_type` varchar(32) NOT NULL, + `storage_location_from_id` int(11) NOT NULL DEFAULT 0, + `storage_location_to_id` int(11) NOT NULL DEFAULT 0, + `schreibschutz` tinyint(1) NOT NULL DEFAULT 0, + `storagesort` varchar(16) NOT NULL, + `document_info` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `goodspostingdocument_movement` -- +DROP TABLE IF EXISTS `goodspostingdocument_movement`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `goodspostingdocument_movement` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `goodspostingdocument_position_id` int(11) NOT NULL DEFAULT '0', - `quantity_stored` decimal(14,4) NOT NULL DEFAULT '0.0000', - `serial` varchar(64) NOT NULL DEFAULT '', - `batch` varchar(64) NOT NULL DEFAULT '', - `bestbefore` date DEFAULT NULL, - `storage_location_from_id` int(11) NOT NULL DEFAULT '0', - `storage_location_to_id` int(11) NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `goodspostingdocument_position_id` (`goodspostingdocument_position_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `goodspostingdocument_movement` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `goodspostingdocument_position_id` int(11) NOT NULL DEFAULT 0, + `quantity_stored` decimal(14,4) NOT NULL DEFAULT 0.0000, + `serial` varchar(64) NOT NULL, + `batch` varchar(64) NOT NULL, + `bestbefore` date DEFAULT NULL, + `storage_location_from_id` int(11) NOT NULL DEFAULT 0, + `storage_location_to_id` int(11) NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `goodspostingdocument_position_id` (`goodspostingdocument_position_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `goodspostingdocument_position` -- +DROP TABLE IF EXISTS `goodspostingdocument_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `goodspostingdocument_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `goodspostingdocument_id` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `reason` varchar(255) NOT NULL DEFAULT '', - `relation_document` varchar(32) NOT NULL DEFAULT '', - `relation_document_id` int(11) NOT NULL DEFAULT '0', - `relation_document_position_id` int(11) NOT NULL DEFAULT '0', - `article_id` int(11) NOT NULL DEFAULT '0', - `project_id` int(11) NOT NULL DEFAULT '0', - `quantity` decimal(14,4) NOT NULL DEFAULT '0.0000', - `quantity_stored` decimal(14,4) NOT NULL DEFAULT '0.0000', - `storage_location_from_id` int(11) NOT NULL DEFAULT '0', - `storage_location_to_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `goodspostingdocument_id` (`goodspostingdocument_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `goodspostingdocument_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `goodspostingdocument_id` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `reason` varchar(255) NOT NULL, + `relation_document` varchar(32) NOT NULL, + `relation_document_id` int(11) NOT NULL DEFAULT 0, + `relation_document_position_id` int(11) NOT NULL DEFAULT 0, + `article_id` int(11) NOT NULL DEFAULT 0, + `project_id` int(11) NOT NULL DEFAULT 0, + `quantity` decimal(14,4) NOT NULL DEFAULT 0.0000, + `quantity_stored` decimal(14,4) NOT NULL DEFAULT 0.0000, + `storage_location_from_id` int(11) NOT NULL DEFAULT 0, + `storage_location_to_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `goodspostingdocument_id` (`goodspostingdocument_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `goodspostingdocument_protocol` -- +DROP TABLE IF EXISTS `goodspostingdocument_protocol`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `goodspostingdocument_protocol` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `goodspostingdocument_id` int(11) NOT NULL DEFAULT '0', - `message` varchar(255) NOT NULL DEFAULT '', - `created_by` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `goodspostingdocument_id` (`goodspostingdocument_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `goodspostingdocument_protocol` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `goodspostingdocument_id` int(11) NOT NULL DEFAULT 0, + `message` varchar(255) NOT NULL, + `created_by` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `goodspostingdocument_id` (`goodspostingdocument_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `google_access_token` -- +DROP TABLE IF EXISTS `google_access_token`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `google_access_token` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `google_account_id` int(11) unsigned NOT NULL DEFAULT '0', - `token` varchar(255) DEFAULT NULL, - `expires` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `google_account_id` (`google_account_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `google_access_token` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `google_account_id` int(11) unsigned NOT NULL DEFAULT 0, + `token` varchar(255) DEFAULT NULL, + `expires` datetime DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `google_account_id` (`google_account_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `google_account` -- +DROP TABLE IF EXISTS `google_account`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `google_account` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) unsigned NOT NULL DEFAULT '0', - `refresh_token` varchar(255) DEFAULT NULL, - `identifier` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `google_account` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(11) unsigned NOT NULL DEFAULT 0, + `refresh_token` varchar(255) DEFAULT NULL, + `identifier` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `google_account_property` -- +DROP TABLE IF EXISTS `google_account_property`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `google_account_property` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `google_account_id` int(11) unsigned NOT NULL DEFAULT '0', - `varname` varchar(64) DEFAULT NULL, - `value` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `google_account_property` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `google_account_id` int(11) unsigned NOT NULL DEFAULT 0, + `varname` varchar(64) DEFAULT NULL, + `value` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `google_account_scope` -- +DROP TABLE IF EXISTS `google_account_scope`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `google_account_scope` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `google_account_id` int(11) unsigned NOT NULL DEFAULT '0', - `scope` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `google_account_id` (`google_account_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `google_account_scope` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `google_account_id` int(11) unsigned NOT NULL DEFAULT 0, + `scope` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `google_account_id` (`google_account_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `googleapi` -- +DROP TABLE IF EXISTS `googleapi`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `googleapi` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `description` varchar(255) DEFAULT NULL, - `type` varchar(255) DEFAULT NULL, - `active` tinyint(4) NOT NULL DEFAULT '0', - `user` varchar(255) DEFAULT NULL, - `password` varchar(255) DEFAULT NULL, - `redirect_uri` varchar(255) DEFAULT NULL, - `token` varchar(255) DEFAULT NULL, - `token_expires` datetime DEFAULT NULL, - `refresh_token` varchar(255) DEFAULT NULL, - `last_auth` datetime DEFAULT NULL, - `id_name` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `googleapi` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `description` varchar(255) DEFAULT NULL, + `type` varchar(255) DEFAULT NULL, + `active` tinyint(4) NOT NULL DEFAULT 0, + `user` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + `redirect_uri` varchar(255) DEFAULT NULL, + `token` varchar(255) DEFAULT NULL, + `token_expires` datetime DEFAULT NULL, + `refresh_token` varchar(255) DEFAULT NULL, + `last_auth` datetime DEFAULT NULL, + `id_name` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `googleapi_calendar_sync` -- +DROP TABLE IF EXISTS `googleapi_calendar_sync`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `googleapi_calendar_sync` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `event_id` int(11) NOT NULL DEFAULT '0', - `foreign_id` varchar(255) NOT NULL DEFAULT '', - `owner` int(11) NOT NULL DEFAULT '0', - `from_google` tinyint(4) NOT NULL DEFAULT '0', - `event_date` datetime DEFAULT NULL, - `html_link` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `event_id` (`event_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `googleapi_calendar_sync` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `event_id` int(11) NOT NULL DEFAULT 0, + `foreign_id` varchar(255) NOT NULL, + `owner` int(11) NOT NULL DEFAULT 0, + `from_google` tinyint(4) NOT NULL DEFAULT 0, + `event_date` datetime DEFAULT NULL, + `html_link` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `event_id` (`event_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `googleapi_user` -- +DROP TABLE IF EXISTS `googleapi_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `googleapi_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL DEFAULT '0', - `googleapi_id_name` varchar(255) NOT NULL DEFAULT '', - `active` tinyint(4) NOT NULL DEFAULT '0', - `auto_sync` tinyint(4) NOT NULL DEFAULT '0', - `identifier` varchar(255) DEFAULT NULL, - `refresh_token` varchar(255) DEFAULT NULL, - `access_token` varchar(255) DEFAULT NULL, - `token_expires` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `googleapi_user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL DEFAULT 0, + `googleapi_id_name` varchar(255) NOT NULL, + `active` tinyint(4) NOT NULL DEFAULT 0, + `auto_sync` tinyint(4) NOT NULL DEFAULT 0, + `identifier` varchar(255) DEFAULT NULL, + `refresh_token` varchar(255) DEFAULT NULL, + `access_token` varchar(255) DEFAULT NULL, + `token_expires` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gpsstechuhr` -- +DROP TABLE IF EXISTS `gpsstechuhr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gpsstechuhr` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) DEFAULT NULL, - `user` int(11) DEFAULT NULL, - `koordinaten` varchar(512) DEFAULT NULL, - `zeit` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gpsstechuhr` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) DEFAULT NULL, + `user` int(11) DEFAULT NULL, + `koordinaten` varchar(512) DEFAULT NULL, + `zeit` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gruppen` -- +DROP TABLE IF EXISTS `gruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(512) DEFAULT NULL, - `art` varchar(512) DEFAULT NULL, - `kennziffer` varchar(255) DEFAULT NULL, - `internebemerkung` text, - `grundrabatt` decimal(10,2) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `sonderrabatt_skonto` decimal(10,2) DEFAULT NULL, - `provision` decimal(10,2) DEFAULT NULL, - `kundennummer` varchar(255) DEFAULT NULL, - `partnerid` varchar(255) DEFAULT NULL, - `dta_aktiv` tinyint(1) NOT NULL DEFAULT '0', - `dta_periode` tinyint(2) NOT NULL DEFAULT '0', - `dta_dateiname` varchar(255) NOT NULL DEFAULT '', - `dta_mail` varchar(255) NOT NULL DEFAULT '', - `dta_mail_betreff` varchar(255) NOT NULL DEFAULT '', - `dta_mail_text` text, - `dtavariablen` text, - `dta_variante` int(11) NOT NULL DEFAULT '0', - `bonus1` decimal(10,2) DEFAULT NULL, - `bonus1_ab` decimal(10,2) DEFAULT NULL, - `bonus2` decimal(10,2) DEFAULT NULL, - `bonus2_ab` decimal(10,2) DEFAULT NULL, - `bonus3` decimal(10,2) DEFAULT NULL, - `bonus3_ab` decimal(10,2) DEFAULT NULL, - `bonus4` decimal(10,2) DEFAULT NULL, - `bonus4_ab` decimal(10,2) DEFAULT NULL, - `bonus5` decimal(10,2) DEFAULT NULL, - `bonus5_ab` decimal(10,2) DEFAULT NULL, - `bonus6` decimal(10,2) DEFAULT NULL, - `bonus6_ab` decimal(10,2) DEFAULT NULL, - `bonus7` decimal(10,2) DEFAULT NULL, - `bonus7_ab` decimal(10,2) DEFAULT NULL, - `bonus8` decimal(10,2) DEFAULT NULL, - `bonus8_ab` decimal(10,2) DEFAULT NULL, - `bonus9` decimal(10,2) DEFAULT NULL, - `bonus9_ab` decimal(10,2) DEFAULT NULL, - `bonus10` decimal(10,2) DEFAULT NULL, - `bonus10_ab` decimal(10,2) DEFAULT NULL, - `zahlungszieltage` int(11) NOT NULL DEFAULT '14', - `zahlungszielskonto` decimal(10,2) NOT NULL DEFAULT '0.00', - `zahlungszieltageskonto` int(11) NOT NULL DEFAULT '0', - `portoartikel` int(11) DEFAULT NULL, - `portofreiab` decimal(10,2) NOT NULL DEFAULT '0.00', - `erweiterteoptionen` int(1) DEFAULT NULL, - `zentralerechnung` int(1) DEFAULT NULL, - `zentralregulierung` int(1) DEFAULT NULL, - `gruppe` int(1) DEFAULT NULL, - `preisgruppe` int(1) DEFAULT NULL, - `verbandsgruppe` int(1) DEFAULT NULL, - `rechnung_name` varchar(255) DEFAULT NULL, - `rechnung_strasse` varchar(255) DEFAULT NULL, - `rechnung_ort` varchar(255) DEFAULT NULL, - `rechnung_plz` varchar(64) DEFAULT NULL, - `rechnung_abteilung` varchar(255) DEFAULT NULL, - `rechnung_land` varchar(255) DEFAULT NULL, - `rechnung_email` varchar(255) DEFAULT NULL, - `rechnung_periode` int(11) DEFAULT NULL, - `rechnung_anzahlpapier` int(11) DEFAULT NULL, - `rechnung_permail` int(1) DEFAULT NULL, - `webid` varchar(1024) NOT NULL, - `portofrei_aktiv` decimal(10,2) DEFAULT NULL, - `projekt` int(11) NOT NULL DEFAULT '0', - `objektname` varchar(64) NOT NULL DEFAULT '', - `objekttyp` varchar(64) NOT NULL DEFAULT '', - `parameter` varchar(255) NOT NULL DEFAULT '', - `objektname2` varchar(64) NOT NULL DEFAULT '', - `objekttyp2` varchar(64) NOT NULL DEFAULT '', - `parameter2` varchar(255) NOT NULL DEFAULT '', - `objektname3` varchar(64) NOT NULL DEFAULT '', - `objekttyp3` varchar(64) NOT NULL DEFAULT '', - `parameter3` varchar(255) NOT NULL DEFAULT '', - `kategorie` int(1) NOT NULL DEFAULT '0', - `aktiv` int(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(512) DEFAULT NULL, + `art` varchar(512) DEFAULT NULL, + `kennziffer` varchar(255) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + `grundrabatt` decimal(10,2) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `sonderrabatt_skonto` decimal(10,2) DEFAULT NULL, + `provision` decimal(10,2) DEFAULT NULL, + `kundennummer` varchar(255) DEFAULT NULL, + `partnerid` varchar(255) DEFAULT NULL, + `dta_aktiv` tinyint(1) NOT NULL DEFAULT 0, + `dta_periode` tinyint(2) NOT NULL DEFAULT 0, + `dta_dateiname` varchar(255) NOT NULL, + `dta_mail` varchar(255) NOT NULL, + `dta_mail_betreff` varchar(255) NOT NULL, + `dta_mail_text` text DEFAULT NULL, + `dtavariablen` text DEFAULT NULL, + `dta_variante` int(11) NOT NULL DEFAULT 0, + `bonus1` decimal(10,2) DEFAULT NULL, + `bonus1_ab` decimal(10,2) DEFAULT NULL, + `bonus2` decimal(10,2) DEFAULT NULL, + `bonus2_ab` decimal(10,2) DEFAULT NULL, + `bonus3` decimal(10,2) DEFAULT NULL, + `bonus3_ab` decimal(10,2) DEFAULT NULL, + `bonus4` decimal(10,2) DEFAULT NULL, + `bonus4_ab` decimal(10,2) DEFAULT NULL, + `bonus5` decimal(10,2) DEFAULT NULL, + `bonus5_ab` decimal(10,2) DEFAULT NULL, + `bonus6` decimal(10,2) DEFAULT NULL, + `bonus6_ab` decimal(10,2) DEFAULT NULL, + `bonus7` decimal(10,2) DEFAULT NULL, + `bonus7_ab` decimal(10,2) DEFAULT NULL, + `bonus8` decimal(10,2) DEFAULT NULL, + `bonus8_ab` decimal(10,2) DEFAULT NULL, + `bonus9` decimal(10,2) DEFAULT NULL, + `bonus9_ab` decimal(10,2) DEFAULT NULL, + `bonus10` decimal(10,2) DEFAULT NULL, + `bonus10_ab` decimal(10,2) DEFAULT NULL, + `zahlungszieltage` int(11) NOT NULL DEFAULT 14, + `zahlungszielskonto` decimal(10,2) NOT NULL DEFAULT 0.00, + `zahlungszieltageskonto` int(11) NOT NULL DEFAULT 0, + `portoartikel` int(11) DEFAULT NULL, + `portofreiab` decimal(10,2) NOT NULL DEFAULT 0.00, + `erweiterteoptionen` int(1) DEFAULT NULL, + `zentralerechnung` int(1) DEFAULT NULL, + `zentralregulierung` int(1) DEFAULT NULL, + `gruppe` int(1) DEFAULT NULL, + `preisgruppe` int(1) DEFAULT NULL, + `verbandsgruppe` int(1) DEFAULT NULL, + `rechnung_name` varchar(255) DEFAULT NULL, + `rechnung_strasse` varchar(255) DEFAULT NULL, + `rechnung_ort` varchar(255) DEFAULT NULL, + `rechnung_plz` varchar(64) DEFAULT NULL, + `rechnung_abteilung` varchar(255) DEFAULT NULL, + `rechnung_land` varchar(255) DEFAULT NULL, + `rechnung_email` varchar(255) DEFAULT NULL, + `rechnung_periode` int(11) DEFAULT NULL, + `rechnung_anzahlpapier` int(11) DEFAULT NULL, + `rechnung_permail` int(1) DEFAULT NULL, + `webid` varchar(1024) NOT NULL, + `portofrei_aktiv` decimal(10,2) DEFAULT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `objektname` varchar(64) NOT NULL, + `objekttyp` varchar(64) NOT NULL, + `parameter` varchar(255) NOT NULL, + `objektname2` varchar(64) NOT NULL, + `objekttyp2` varchar(64) NOT NULL, + `parameter2` varchar(255) NOT NULL, + `objektname3` varchar(64) NOT NULL, + `objekttyp3` varchar(64) NOT NULL, + `parameter3` varchar(255) NOT NULL, + `kategorie` int(1) NOT NULL DEFAULT 0, + `aktiv` int(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gruppen_kategorien` -- +DROP TABLE IF EXISTS `gruppen_kategorien`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gruppen_kategorien` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gruppen_kategorien` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gruppenmapping` -- +DROP TABLE IF EXISTS `gruppenmapping`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gruppenmapping` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `gruppe` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `parameter1` varchar(255) NOT NULL DEFAULT '0', - `parameter2` varchar(255) NOT NULL DEFAULT '0', - `parameter3` varchar(255) NOT NULL DEFAULT '0', - `von` date NOT NULL, - `bis` date NOT NULL, - PRIMARY KEY (`id`), - KEY `gruppe` (`gruppe`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gruppenmapping` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `gruppe` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `parameter1` varchar(255) NOT NULL DEFAULT '0', + `parameter2` varchar(255) NOT NULL DEFAULT '0', + `parameter3` varchar(255) NOT NULL DEFAULT '0', + `von` date NOT NULL, + `bis` date NOT NULL, + PRIMARY KEY (`id`), + KEY `gruppe` (`gruppe`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gruppenrechnung_auswahl` -- +DROP TABLE IF EXISTS `gruppenrechnung_auswahl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gruppenrechnung_auswahl` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lieferschein` int(11) NOT NULL DEFAULT '0', - `auftrag` int(11) NOT NULL DEFAULT '0', - `user` int(11) NOT NULL DEFAULT '0', - `auswahl` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`), - KEY `lieferschein` (`lieferschein`), - KEY `auftrag` (`auftrag`), - KEY `user` (`user`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gruppenrechnung_auswahl` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lieferschein` int(11) NOT NULL DEFAULT 0, + `auftrag` int(11) NOT NULL DEFAULT 0, + `user` int(11) NOT NULL DEFAULT 0, + `auswahl` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `lieferschein` (`lieferschein`), + KEY `auftrag` (`auftrag`), + KEY `user` (`user`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gutschrift` -- +DROP TABLE IF EXISTS `gutschrift`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gutschrift` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `projekt` varchar(222) NOT NULL, - `anlegeart` varchar(255) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `rechnung` int(11) NOT NULL, - `rechnungid` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `freitext` text NOT NULL, - `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `ustbrief` int(11) NOT NULL, - `ustbrief_eingang` int(11) NOT NULL, - `ustbrief_eingang_am` date NOT NULL, - `ust_befreit` int(1) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(64) DEFAULT NULL, - `lieferschein` int(11) NOT NULL, - `versandart` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `buchhaltung` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungsstatus` varchar(255) NOT NULL, - `ist` decimal(18,2) NOT NULL DEFAULT '0.00', - `soll` decimal(18,2) NOT NULL DEFAULT '0.00', - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` decimal(10,2) NOT NULL, - `gesamtsumme` decimal(10,4) NOT NULL, - `bank_inhaber` varchar(255) NOT NULL, - `bank_institut` varchar(255) NOT NULL, - `bank_blz` int(11) NOT NULL, - `bank_konto` int(11) NOT NULL, - `kreditkarte_typ` varchar(255) NOT NULL, - `kreditkarte_inhaber` varchar(255) NOT NULL, - `kreditkarte_nummer` varchar(255) NOT NULL, - `kreditkarte_pruefnummer` varchar(255) NOT NULL, - `kreditkarte_monat` int(11) NOT NULL, - `kreditkarte_jahr` int(11) NOT NULL, - `paypalaccount` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `inbearbeitung` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `dta_datei_verband` int(11) NOT NULL DEFAULT '0', - `manuell_vorabbezahlt` date DEFAULT NULL, - `manuell_vorabbezahlt_hinweis` varchar(128) NOT NULL DEFAULT '', - `nicht_umsatzmindernd` tinyint(1) NOT NULL DEFAULT '0', - `dta_datei` int(11) NOT NULL DEFAULT '0', - `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT '0', - `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `erloes_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `umsatz_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `vertriebid` int(11) DEFAULT NULL, - `aktion` varchar(64) NOT NULL DEFAULT '', - `vertrieb` varchar(255) NOT NULL DEFAULT '', - `provision` decimal(10,2) DEFAULT NULL, - `provision_summe` decimal(10,2) DEFAULT NULL, - `gruppe` int(11) NOT NULL DEFAULT '0', - `ihrebestellnummer` varchar(255) DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `realrabatt` decimal(10,2) DEFAULT NULL, - `rabatt` decimal(10,2) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `keinsteuersatz` int(1) DEFAULT NULL, - `stornorechnung` int(1) DEFAULT NULL, - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `ohne_briefpapier` int(1) DEFAULT NULL, - `lieferid` int(11) NOT NULL DEFAULT '0', - `ansprechpartnerid` int(11) NOT NULL DEFAULT '0', - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `ansprechpartner` varchar(255) DEFAULT NULL, - `sprache` varchar(32) NOT NULL DEFAULT '', - `gln` varchar(64) NOT NULL DEFAULT '', - `deliverythresholdvatid` varchar(64) NOT NULL DEFAULT '', - `bearbeiterid` int(11) DEFAULT NULL, - `kurs` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `ohne_artikeltext` int(1) DEFAULT NULL, - `anzeigesteuer` tinyint(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontoberechnet` tinyint(1) NOT NULL DEFAULT '0', - `extsoll` decimal(10,2) NOT NULL DEFAULT '0.00', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `kundennummer_buchhaltung` varchar(32) NOT NULL DEFAULT '', - `storage_country` varchar(3) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`), - KEY `adresse` (`adresse`), - KEY `vertriebid` (`vertriebid`), - KEY `status` (`status`), - KEY `datum` (`datum`), - KEY `belegnr` (`belegnr`), - KEY `versandart` (`versandart`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gutschrift` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `projekt` varchar(222) NOT NULL, + `anlegeart` varchar(255) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `rechnung` int(11) NOT NULL, + `rechnungid` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `internebemerkung` text NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `ustbrief` int(11) NOT NULL, + `ustbrief_eingang` int(11) NOT NULL, + `ustbrief_eingang_am` date NOT NULL, + `ust_befreit` int(1) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(64) DEFAULT NULL, + `lieferschein` int(11) NOT NULL, + `versandart` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `buchhaltung` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungsstatus` varchar(255) NOT NULL, + `ist` decimal(18,2) NOT NULL DEFAULT 0.00, + `soll` decimal(18,2) NOT NULL DEFAULT 0.00, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` decimal(10,2) NOT NULL, + `gesamtsumme` decimal(10,4) NOT NULL, + `bank_inhaber` varchar(255) NOT NULL, + `bank_institut` varchar(255) NOT NULL, + `bank_blz` int(11) NOT NULL, + `bank_konto` int(11) NOT NULL, + `kreditkarte_typ` varchar(255) NOT NULL, + `kreditkarte_inhaber` varchar(255) NOT NULL, + `kreditkarte_nummer` varchar(255) NOT NULL, + `kreditkarte_pruefnummer` varchar(255) NOT NULL, + `kreditkarte_monat` int(11) NOT NULL, + `kreditkarte_jahr` int(11) NOT NULL, + `paypalaccount` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `inbearbeitung` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `dta_datei_verband` int(11) NOT NULL DEFAULT 0, + `manuell_vorabbezahlt` date DEFAULT NULL, + `manuell_vorabbezahlt_hinweis` varchar(128) NOT NULL, + `nicht_umsatzmindernd` tinyint(1) NOT NULL DEFAULT 0, + `dta_datei` int(11) NOT NULL DEFAULT 0, + `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT 0, + `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `erloes_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `umsatz_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `vertriebid` int(11) DEFAULT NULL, + `aktion` varchar(64) NOT NULL, + `vertrieb` varchar(255) NOT NULL, + `provision` decimal(10,2) DEFAULT NULL, + `provision_summe` decimal(10,2) DEFAULT NULL, + `gruppe` int(11) NOT NULL DEFAULT 0, + `ihrebestellnummer` varchar(255) DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `realrabatt` decimal(10,2) DEFAULT NULL, + `rabatt` decimal(10,2) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `keinsteuersatz` int(1) DEFAULT NULL, + `stornorechnung` int(1) DEFAULT NULL, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `ohne_briefpapier` int(1) DEFAULT NULL, + `lieferid` int(11) NOT NULL DEFAULT 0, + `ansprechpartnerid` int(11) NOT NULL DEFAULT 0, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `angelegtam` datetime DEFAULT NULL, + `ansprechpartner` varchar(255) DEFAULT NULL, + `sprache` varchar(32) NOT NULL, + `gln` varchar(64) NOT NULL, + `deliverythresholdvatid` varchar(64) NOT NULL, + `bearbeiterid` int(11) DEFAULT NULL, + `kurs` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `ohne_artikeltext` int(1) DEFAULT NULL, + `anzeigesteuer` tinyint(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontoberechnet` tinyint(1) NOT NULL DEFAULT 0, + `extsoll` decimal(10,2) NOT NULL DEFAULT 0.00, + `bundesstaat` varchar(32) NOT NULL, + `kundennummer_buchhaltung` varchar(32) NOT NULL, + `storage_country` varchar(3) NOT NULL, + `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`), + KEY `adresse` (`adresse`), + KEY `vertriebid` (`vertriebid`), + KEY `status` (`status`), + KEY `datum` (`datum`), + KEY `belegnr` (`belegnr`), + KEY `versandart` (`versandart`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gutschrift_position` -- +DROP TABLE IF EXISTS `gutschrift_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gutschrift_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `gutschrift` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `explodiert_parent` int(11) NOT NULL DEFAULT '0', - `explodiert_parent_artikel` int(11) NOT NULL DEFAULT '0', - `keinrabatterlaubt` int(1) DEFAULT NULL, - `grundrabatt` decimal(10,2) DEFAULT NULL, - `rabattsync` int(1) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `einheit` varchar(255) NOT NULL DEFAULT '', - `rabatt` decimal(10,2) NOT NULL, - `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', - `herkunftsland` varchar(128) NOT NULL DEFAULT '0', - `artikelnummerkunde` varchar(128) NOT NULL DEFAULT '', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `auftrag_position_id` int(11) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(1024) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `einkaufspreiswaehrung` varchar(8) NOT NULL DEFAULT '', - `einkaufspreis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisid` int(11) NOT NULL DEFAULT '0', - `ekwaehrung` varchar(8) NOT NULL DEFAULT '', - `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `formelmenge` varchar(255) NOT NULL DEFAULT '', - `formelpreis` varchar(255) NOT NULL DEFAULT '', - `ohnepreis` int(1) NOT NULL DEFAULT '0', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, - `steuerbetrag` decimal(14,4) DEFAULT NULL, - `skontosperre` tinyint(1) NOT NULL DEFAULT '0', - `ausblenden_im_pdf` tinyint(1) DEFAULT '0', - `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `gutschrift` (`gutschrift`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gutschrift_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `gutschrift` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `explodiert_parent` int(11) NOT NULL DEFAULT 0, + `explodiert_parent_artikel` int(11) NOT NULL DEFAULT 0, + `keinrabatterlaubt` int(1) DEFAULT NULL, + `grundrabatt` decimal(10,2) DEFAULT NULL, + `rabattsync` int(1) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `einheit` varchar(255) NOT NULL, + `rabatt` decimal(10,2) NOT NULL, + `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', + `herkunftsland` varchar(128) NOT NULL DEFAULT '0', + `artikelnummerkunde` varchar(128) NOT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `auftrag_position_id` int(11) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `einkaufspreiswaehrung` varchar(8) NOT NULL, + `einkaufspreis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisid` int(11) NOT NULL DEFAULT 0, + `ekwaehrung` varchar(8) NOT NULL, + `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `formelmenge` varchar(255) NOT NULL, + `formelpreis` varchar(255) NOT NULL, + `ohnepreis` int(1) NOT NULL DEFAULT 0, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, + `steuerbetrag` decimal(14,4) DEFAULT NULL, + `skontosperre` tinyint(1) NOT NULL DEFAULT 0, + `ausblenden_im_pdf` tinyint(1) DEFAULT 0, + `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `gutschrift` (`gutschrift`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `gutschrift_protokoll` -- +DROP TABLE IF EXISTS `gutschrift_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `gutschrift_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `gutschrift` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `gutschrift` (`gutschrift`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `gutschrift_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `gutschrift` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `gutschrift` (`gutschrift`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook` -- +DROP TABLE IF EXISTS `hook`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL DEFAULT '', - `alias` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `parametercount` int(11) NOT NULL DEFAULT '1', - `description` varchar(1024) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `name` (`name`), - KEY `alias` (`alias`) -) ENGINE=InnoDB AUTO_INCREMENT=183 DEFAULT CHARSET=utf8; +CREATE TABLE `hook` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL, + `alias` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `parametercount` int(11) NOT NULL DEFAULT 1, + `description` varchar(1024) NOT NULL, + PRIMARY KEY (`id`), + KEY `name` (`name`), + KEY `alias` (`alias`) +) ENGINE=InnoDB AUTO_INCREMENT=223 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook_action` -- +DROP TABLE IF EXISTS `hook_action`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook_action` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `hook_module` int(11) NOT NULL DEFAULT '0', - `action` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `hook_action` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `hook_module` int(11) NOT NULL DEFAULT 0, + `action` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook_layout` -- +DROP TABLE IF EXISTS `hook_layout`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook_layout` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL DEFAULT '', - `dokumenttyp` varchar(64) NOT NULL DEFAULT '', - `module` varchar(64) NOT NULL DEFAULT '', - `funktion` varchar(64) NOT NULL DEFAULT '', - `typ` varchar(64) NOT NULL DEFAULT '', - `block` varchar(64) NOT NULL DEFAULT '', - `blocktyp` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `hook_layout` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL, + `dokumenttyp` varchar(64) NOT NULL, + `module` varchar(64) NOT NULL, + `funktion` varchar(64) NOT NULL, + `typ` varchar(64) NOT NULL, + `block` varchar(64) NOT NULL, + `blocktyp` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook_menu` -- +DROP TABLE IF EXISTS `hook_menu`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook_menu` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`), - KEY `module` (`module`) -) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8; +CREATE TABLE `hook_menu` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `module` (`module`) +) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook_menu_register` -- +DROP TABLE IF EXISTS `hook_menu_register`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook_menu_register` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `hook_menu` int(11) NOT NULL DEFAULT '0', - `module` varchar(64) NOT NULL DEFAULT '', - `funktion` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `position` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `module` (`module`) -) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; +CREATE TABLE `hook_menu_register` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `hook_menu` int(11) NOT NULL DEFAULT 0, + `module` varchar(64) NOT NULL, + `funktion` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `position` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `module` (`module`) +) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook_module` -- +DROP TABLE IF EXISTS `hook_module`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook_module` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `hook_module` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook_navigation` -- +DROP TABLE IF EXISTS `hook_navigation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook_navigation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `first` varchar(64) NOT NULL DEFAULT '', - `sec` varchar(64) NOT NULL DEFAULT '', - `aftersec` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `position` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; +CREATE TABLE `hook_navigation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `first` varchar(64) NOT NULL, + `sec` varchar(64) NOT NULL, + `aftersec` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `position` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `hook_register` -- +DROP TABLE IF EXISTS `hook_register`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `hook_register` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `hook_action` int(11) NOT NULL DEFAULT '0', - `function` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `position` int(11) NOT NULL DEFAULT '0', - `hook` int(11) NOT NULL DEFAULT '0', - `module` varchar(64) NOT NULL DEFAULT '', - `module_parameter` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `hook` (`hook`) -) ENGINE=InnoDB AUTO_INCREMENT=231 DEFAULT CHARSET=utf8; +CREATE TABLE `hook_register` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `hook_action` int(11) NOT NULL DEFAULT 0, + `function` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `position` int(11) NOT NULL DEFAULT 0, + `hook` int(11) NOT NULL DEFAULT 0, + `module` varchar(64) NOT NULL, + `module_parameter` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `hook` (`hook`) +) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `importmasterdata` -- +DROP TABLE IF EXISTS `importmasterdata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `importmasterdata` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL DEFAULT '0', - `template_id` int(11) NOT NULL DEFAULT '0', - `count_rows` int(11) NOT NULL DEFAULT '0', - `imported_rows` int(11) NOT NULL DEFAULT '0', - `filename` varchar(255) NOT NULL DEFAULT '', - `status` varchar(255) NOT NULL DEFAULT 'created', - `message` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `status` (`status`), - KEY `user_id` (`user_id`), - KEY `template_id` (`template_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `importmasterdata` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL DEFAULT 0, + `template_id` int(11) NOT NULL DEFAULT 0, + `count_rows` int(11) NOT NULL DEFAULT 0, + `imported_rows` int(11) NOT NULL DEFAULT 0, + `filename` varchar(255) NOT NULL, + `status` varchar(255) NOT NULL DEFAULT 'created', + `message` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `status` (`status`), + KEY `user_id` (`user_id`), + KEY `template_id` (`template_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `importvorlage` -- +DROP TABLE IF EXISTS `importvorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `importvorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) DEFAULT NULL, - `ziel` varchar(255) DEFAULT NULL, - `internebemerkung` text, - `fields` text, - `letzterimport` datetime DEFAULT NULL, - `mitarbeiterletzterimport` varchar(255) DEFAULT NULL, - `importtrennzeichen` varchar(255) DEFAULT NULL, - `importerstezeilenummer` int(11) DEFAULT NULL, - `importdatenmaskierung` varchar(255) DEFAULT NULL, - `importzeichensatz` varchar(255) DEFAULT NULL, - `utf8decode` tinyint(1) NOT NULL DEFAULT '1', - `charset` varchar(32) NOT NULL DEFAULT 'UTF8', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; +CREATE TABLE `importvorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) DEFAULT NULL, + `ziel` varchar(255) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + `fields` text DEFAULT NULL, + `letzterimport` datetime DEFAULT NULL, + `mitarbeiterletzterimport` varchar(255) DEFAULT NULL, + `importtrennzeichen` varchar(255) DEFAULT NULL, + `importerstezeilenummer` int(11) DEFAULT NULL, + `importdatenmaskierung` varchar(255) DEFAULT NULL, + `importzeichensatz` varchar(255) DEFAULT NULL, + `utf8decode` tinyint(1) NOT NULL DEFAULT 1, + `charset` varchar(32) NOT NULL DEFAULT 'utf8', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci ROW_FORMAT=COMPACT; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `importvorlage_log` -- +DROP TABLE IF EXISTS `importvorlage_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `importvorlage_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `importvorlage` int(11) DEFAULT NULL, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `user` int(11) DEFAULT NULL, - `tabelle` varchar(255) DEFAULT NULL, - `datensatz` int(11) DEFAULT NULL, - `ersterdatensatz` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `importvorlage_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `importvorlage` int(11) DEFAULT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `user` int(11) DEFAULT NULL, + `tabelle` varchar(255) DEFAULT NULL, + `datensatz` int(11) DEFAULT NULL, + `ersterdatensatz` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inhalt` -- +DROP TABLE IF EXISTS `inhalt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `inhalt` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `sprache` varchar(255) NOT NULL, - `inhalt` varchar(255) NOT NULL, - `kurztext` text NOT NULL, - `html` text NOT NULL, - `title` varchar(255) NOT NULL, - `description` varchar(512) NOT NULL, - `keywords` varchar(512) NOT NULL, - `inhaltstyp` varchar(255) NOT NULL, - `sichtbarbis` datetime NOT NULL, - `datum` date NOT NULL, - `aktiv` int(1) NOT NULL, - `shop` int(11) NOT NULL, - `template` varchar(255) DEFAULT NULL, - `finalparse` varchar(255) NOT NULL, - `navigation` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `inhalt` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `sprache` varchar(255) NOT NULL, + `inhalt` varchar(255) NOT NULL, + `kurztext` text NOT NULL, + `html` text NOT NULL, + `title` varchar(255) NOT NULL, + `description` varchar(512) NOT NULL, + `keywords` varchar(512) NOT NULL, + `inhaltstyp` varchar(255) NOT NULL, + `sichtbarbis` datetime NOT NULL, + `datum` date NOT NULL, + `aktiv` int(1) NOT NULL, + `shop` int(11) NOT NULL, + `template` varchar(255) DEFAULT NULL, + `finalparse` varchar(255) NOT NULL, + `navigation` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inventur` -- +DROP TABLE IF EXISTS `inventur`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `inventur` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `projekt` varchar(222) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `auftrag` varchar(255) NOT NULL, - `auftragid` int(11) NOT NULL, - `freitext` text NOT NULL, - `status` varchar(255) NOT NULL, - `adresse` int(11) NOT NULL, - `mitarbeiter` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(255) NOT NULL, - `versandart` varchar(255) NOT NULL, - `versand` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `inbearbeitung_user` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `ohne_briefpapier` int(1) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `noprice` int(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `inventur` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `projekt` varchar(222) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `auftrag` varchar(255) NOT NULL, + `auftragid` int(11) NOT NULL, + `freitext` text NOT NULL, + `status` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL, + `mitarbeiter` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(255) NOT NULL, + `versandart` varchar(255) NOT NULL, + `versand` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `inbearbeitung_user` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `ohne_briefpapier` int(1) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `noprice` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inventur_position` -- +DROP TABLE IF EXISTS `inventur_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `inventur_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `inventur` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `nummer` varchar(255) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `menge` decimal(14,4) NOT NULL, - `sort` int(10) NOT NULL, - `bemerkung` text NOT NULL, - `preis` decimal(10,4) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `inventur` (`inventur`,`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `inventur_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `inventur` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `nummer` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `menge` decimal(14,4) NOT NULL, + `sort` int(10) NOT NULL, + `bemerkung` text NOT NULL, + `preis` decimal(10,4) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `inventur` (`inventur`,`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `inventur_protokoll` -- +DROP TABLE IF EXISTS `inventur_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `inventur_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `inventur` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `inventur` (`inventur`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `inventur_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `inventur` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `inventur` (`inventur`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `item_template` -- +DROP TABLE IF EXISTS `item_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `item_template` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `item_id` int(11) NOT NULL DEFAULT '0', - `type` varchar(255) NOT NULL DEFAULT '', - `name` varchar(255) NOT NULL DEFAULT '', - `active` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `item_template` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `item_id` int(11) NOT NULL DEFAULT 0, + `type` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + `active` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `jqcalendar` -- +DROP TABLE IF EXISTS `jqcalendar`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `jqcalendar` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `titel` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `ort` varchar(255) NOT NULL, - `von` datetime NOT NULL, - `bis` datetime NOT NULL, - `public` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `jqcalendar` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `titel` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `ort` varchar(255) NOT NULL, + `von` datetime NOT NULL, + `bis` datetime NOT NULL, + `public` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kalender` -- +DROP TABLE IF EXISTS `kalender`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kalender` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT 'default', - `farbe` varchar(15) NOT NULL DEFAULT '3300ff', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kalender` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL DEFAULT 'default', + `farbe` varchar(15) NOT NULL DEFAULT '3300ff', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kalender_event` -- +DROP TABLE IF EXISTS `kalender_event`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kalender_event` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `kalender` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` longtext, - `von` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `bis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `allDay` tinyint(1) NOT NULL DEFAULT '0', - `color` varchar(7) NOT NULL DEFAULT '#6F93DB', - `public` int(1) NOT NULL DEFAULT '0', - `ort` text, - `adresse` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `adresseintern` int(11) NOT NULL DEFAULT '0', - `angelegtvon` int(11) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `erinnerung` int(1) DEFAULT NULL, - `ansprechpartner_id` int(11) NOT NULL DEFAULT '0', - `typ` varchar(32) NOT NULL DEFAULT '', - `uri` text, - `uid` text, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kalender_event` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `kalender` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` longtext DEFAULT NULL, + `von` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `bis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `allDay` tinyint(1) NOT NULL DEFAULT 0, + `color` varchar(7) NOT NULL DEFAULT '#6f93db', + `public` int(1) NOT NULL DEFAULT 0, + `ort` text DEFAULT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `adresseintern` int(11) NOT NULL DEFAULT 0, + `angelegtvon` int(11) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `erinnerung` int(1) DEFAULT NULL, + `ansprechpartner_id` int(11) NOT NULL DEFAULT 0, + `typ` varchar(32) NOT NULL, + `uri` text DEFAULT NULL, + `uid` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kalender_gruppen` -- +DROP TABLE IF EXISTS `kalender_gruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kalender_gruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `farbe` varchar(8) NOT NULL DEFAULT '', - `ausblenden` int(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kalender_gruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `farbe` varchar(8) NOT NULL, + `ausblenden` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kalender_gruppen_mitglieder` -- +DROP TABLE IF EXISTS `kalender_gruppen_mitglieder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kalender_gruppen_mitglieder` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `kalendergruppe` int(11) NOT NULL, - `benutzergruppe` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - PRIMARY KEY (`id`), - KEY `kalendergruppe` (`kalendergruppe`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kalender_gruppen_mitglieder` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `kalendergruppe` int(11) NOT NULL, + `benutzergruppe` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + PRIMARY KEY (`id`), + KEY `kalendergruppe` (`kalendergruppe`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kalender_temp` -- +DROP TABLE IF EXISTS `kalender_temp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kalender_temp` ( - `tId` int(11) NOT NULL, - `eId` int(11) NOT NULL, - `szelle` varchar(15) NOT NULL, - `nanzbelegt` int(11) NOT NULL, - `ndatum` varchar(8) NOT NULL, - `nbelegt` float NOT NULL, - `nanzspalten` int(11) NOT NULL DEFAULT '0', - `nposbelegt` int(11) NOT NULL DEFAULT '0' -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kalender_temp` ( + `tId` int(11) NOT NULL, + `eId` int(11) NOT NULL, + `szelle` varchar(15) NOT NULL, + `nanzbelegt` int(11) NOT NULL, + `ndatum` varchar(8) NOT NULL, + `nbelegt` float NOT NULL, + `nanzspalten` int(11) NOT NULL DEFAULT 0, + `nposbelegt` int(11) NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kalender_user` -- +DROP TABLE IF EXISTS `kalender_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kalender_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `event` int(11) NOT NULL, - `userid` int(10) NOT NULL, - `gruppe` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `userid` (`userid`), - KEY `event` (`event`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kalender_user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `event` int(11) NOT NULL, + `userid` int(10) NOT NULL, + `gruppe` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `userid` (`userid`), + KEY `event` (`event`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kasse` -- +DROP TABLE IF EXISTS `kasse`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kasse` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `auswahl` varchar(255) NOT NULL, - `betrag` decimal(10,2) NOT NULL, - `adresse` int(11) NOT NULL, - `grund` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `steuergruppe` int(11) NOT NULL, - `exportiert` int(1) NOT NULL, - `exportiert_datum` date NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `konto` int(11) NOT NULL DEFAULT '1', - `nummer` int(11) NOT NULL DEFAULT '0', - `wert` decimal(10,2) NOT NULL DEFAULT '0.00', - `steuersatz` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_brutto_normal` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_steuer_normal` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_brutto_ermaessigt` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_steuer_ermaessigt` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_brutto_befreit` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_steuer_befreit` decimal(10,2) NOT NULL DEFAULT '0.00', - `tagesabschluss` tinyint(1) NOT NULL DEFAULT '0', - `storniert` tinyint(1) NOT NULL DEFAULT '0', - `storniert_grund` varchar(255) NOT NULL DEFAULT '', - `storniert_bearbeiter` varchar(64) NOT NULL DEFAULT '', - `sachkonto` varchar(64) NOT NULL DEFAULT '', - `bemerkung` text NOT NULL, - `belegdatum` date DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `datum` (`datum`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kasse` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `auswahl` varchar(255) NOT NULL, + `betrag` decimal(10,2) NOT NULL, + `adresse` int(11) NOT NULL, + `grund` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `steuergruppe` int(11) NOT NULL, + `exportiert` int(1) NOT NULL, + `exportiert_datum` date NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `konto` int(11) NOT NULL DEFAULT 1, + `nummer` int(11) NOT NULL DEFAULT 0, + `wert` decimal(10,2) NOT NULL DEFAULT 0.00, + `steuersatz` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_brutto_normal` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_steuer_normal` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_brutto_ermaessigt` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_steuer_ermaessigt` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_brutto_befreit` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_steuer_befreit` decimal(10,2) NOT NULL DEFAULT 0.00, + `tagesabschluss` tinyint(1) NOT NULL DEFAULT 0, + `storniert` tinyint(1) NOT NULL DEFAULT 0, + `storniert_grund` varchar(255) NOT NULL, + `storniert_bearbeiter` varchar(64) NOT NULL, + `sachkonto` varchar(64) NOT NULL, + `bemerkung` text NOT NULL, + `belegdatum` date DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `datum` (`datum`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kasse_log` -- +DROP TABLE IF EXISTS `kasse_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kasse_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `kasseid` int(11) NOT NULL DEFAULT '0', - `user` int(11) NOT NULL DEFAULT '0', - `beschreibung` varchar(255) NOT NULL DEFAULT '', - `betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `wert` decimal(10,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kasse_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `kasseid` int(11) NOT NULL DEFAULT 0, + `user` int(11) NOT NULL DEFAULT 0, + `beschreibung` varchar(255) NOT NULL, + `betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `wert` decimal(10,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kommissionierung` -- +DROP TABLE IF EXISTS `kommissionierung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kommissionierung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `user` int(11) NOT NULL DEFAULT '0', - `kommentar` varchar(255) NOT NULL DEFAULT '', - `abgeschlossen` tinyint(1) NOT NULL DEFAULT '0', - `improzess` tinyint(1) NOT NULL DEFAULT '0', - `bezeichnung` varchar(40) NOT NULL DEFAULT '', - `skipconfirmboxscan` tinyint(1) NOT NULL DEFAULT '-1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kommissionierung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `bearbeiter` varchar(255) NOT NULL, + `user` int(11) NOT NULL DEFAULT 0, + `kommentar` varchar(255) NOT NULL, + `abgeschlossen` tinyint(1) NOT NULL DEFAULT 0, + `improzess` tinyint(1) NOT NULL DEFAULT 0, + `bezeichnung` varchar(40) NOT NULL, + `skipconfirmboxscan` tinyint(1) NOT NULL DEFAULT -1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kommissionierung_position` -- +DROP TABLE IF EXISTS `kommissionierung_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kommissionierung_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `kommissionierung` int(11) NOT NULL DEFAULT '0', - `ausgeblendet` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kommissionierung_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `kommissionierung` int(11) NOT NULL DEFAULT 0, + `ausgeblendet` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kommissionierung_position_ls` -- +DROP TABLE IF EXISTS `kommissionierung_position_ls`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kommissionierung_position_ls` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `kommissionierung` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `lieferschein` int(11) NOT NULL DEFAULT '0', - `ausgeblendet` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kommissionierung_position_ls` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `kommissionierung` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `lieferschein` int(11) NOT NULL DEFAULT 0, + `ausgeblendet` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kommissionskonsignationslager_positionen` -- +DROP TABLE IF EXISTS `kommissionskonsignationslager_positionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kommissionskonsignationslager_positionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `user` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `lieferschein` int(11) NOT NULL DEFAULT '0', - `rechnung` int(11) NOT NULL DEFAULT '0', - `lieferschein_position` int(11) NOT NULL DEFAULT '0', - `rechnung_position` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `auswahl` decimal(14,4) NOT NULL DEFAULT '0.0000', - `ausgelagert` decimal(14,4) NOT NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kommissionskonsignationslager_positionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `user` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `lieferschein` int(11) NOT NULL DEFAULT 0, + `rechnung` int(11) NOT NULL DEFAULT 0, + `lieferschein_position` int(11) NOT NULL DEFAULT 0, + `rechnung_position` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `auswahl` decimal(14,4) NOT NULL DEFAULT 0.0000, + `ausgelagert` decimal(14,4) NOT NULL DEFAULT 0.0000, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `konfiguration` -- +DROP TABLE IF EXISTS `konfiguration`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `konfiguration` ( - `name` varchar(255) NOT NULL, - `wert` text NOT NULL, - `adresse` int(11) NOT NULL, - `firma` int(11) NOT NULL, - PRIMARY KEY (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `konfiguration` ( + `name` varchar(255) NOT NULL, + `wert` text NOT NULL, + `adresse` int(11) NOT NULL, + `firma` int(11) NOT NULL, + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `konten` -- +DROP TABLE IF EXISTS `konten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `konten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `kurzbezeichnung` varchar(255) NOT NULL, - `type` varchar(255) NOT NULL, - `erstezeile` text NOT NULL, - `datevkonto` int(10) NOT NULL, - `blz` varchar(255) NOT NULL, - `konto` varchar(255) NOT NULL, - `swift` varchar(255) NOT NULL, - `iban` varchar(255) NOT NULL, - `lastschrift` int(1) NOT NULL, - `hbci` int(1) NOT NULL, - `hbcikennung` text NOT NULL, - `inhaber` varchar(255) NOT NULL, - `aktiv` int(1) NOT NULL, - `keineemail` int(1) NOT NULL, - `firma` int(1) NOT NULL, - `schreibbar` int(1) NOT NULL DEFAULT '1', - `importletztenzeilenignorieren` int(11) NOT NULL DEFAULT '0', - `liveimport` text, - `liveimport_passwort` text, - `liveimport_online` int(1) DEFAULT NULL, - `importtrennzeichen` varchar(255) DEFAULT NULL, - `codierung` varchar(255) DEFAULT NULL, - `importerstezeilenummer` int(11) DEFAULT NULL, - `importdatenmaskierung` varchar(255) DEFAULT NULL, - `importnullbytes` int(1) NOT NULL, - `glaeubiger` varchar(64) DEFAULT NULL, - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `saldo_summieren` int(1) NOT NULL DEFAULT '0', - `saldo_betrag` decimal(18,2) NOT NULL DEFAULT '0.00', - `saldo_datum` date DEFAULT NULL, - `importfelddatum` varchar(255) DEFAULT NULL, - `importfelddatumformat` varchar(255) DEFAULT NULL, - `importfelddatumformatausgabe` varchar(255) DEFAULT NULL, - `importfeldbetrag` varchar(255) DEFAULT NULL, - `importfeldbetragformat` varchar(255) DEFAULT NULL, - `importfeldbuchungstext` varchar(255) DEFAULT NULL, - `importfeldbuchungstextformat` varchar(255) DEFAULT NULL, - `importfeldwaehrung` varchar(255) DEFAULT NULL, - `importfeldwaehrungformat` varchar(255) DEFAULT NULL, - `importfeldhabensollkennung` varchar(10) NOT NULL DEFAULT '', - `importfeldkennunghaben` varchar(10) NOT NULL DEFAULT '', - `importfeldkennungsoll` varchar(10) NOT NULL DEFAULT '', - `importextrahabensoll` tinyint(1) NOT NULL DEFAULT '0', - `importfeldhaben` varchar(10) NOT NULL DEFAULT '', - `importfeldsoll` varchar(10) NOT NULL DEFAULT '', - `cronjobaktiv` tinyint(1) NOT NULL DEFAULT '0', - `cronjobverbuchen` tinyint(1) NOT NULL DEFAULT '0', - `last_import` timestamp NOT NULL DEFAULT '1979-01-01 23:00:00', - `importperiode_in_hours` int(11) NOT NULL DEFAULT '8', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `konten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `kurzbezeichnung` varchar(255) NOT NULL, + `type` varchar(255) NOT NULL, + `erstezeile` text NOT NULL, + `datevkonto` int(10) NOT NULL, + `blz` varchar(255) NOT NULL, + `konto` varchar(255) NOT NULL, + `swift` varchar(255) NOT NULL, + `iban` varchar(255) NOT NULL, + `lastschrift` int(1) NOT NULL, + `hbci` int(1) NOT NULL, + `hbcikennung` text NOT NULL, + `inhaber` varchar(255) NOT NULL, + `aktiv` int(1) NOT NULL, + `keineemail` int(1) NOT NULL, + `firma` int(1) NOT NULL, + `schreibbar` int(1) NOT NULL DEFAULT 1, + `importletztenzeilenignorieren` int(11) NOT NULL DEFAULT 0, + `liveimport` text DEFAULT NULL, + `liveimport_passwort` text DEFAULT NULL, + `liveimport_online` int(1) DEFAULT NULL, + `importtrennzeichen` varchar(255) DEFAULT NULL, + `codierung` varchar(255) DEFAULT NULL, + `importerstezeilenummer` int(11) DEFAULT NULL, + `importdatenmaskierung` varchar(255) DEFAULT NULL, + `importnullbytes` int(1) NOT NULL, + `glaeubiger` varchar(64) DEFAULT NULL, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `saldo_summieren` int(1) NOT NULL DEFAULT 0, + `saldo_betrag` decimal(18,2) NOT NULL DEFAULT 0.00, + `saldo_datum` date DEFAULT NULL, + `importfelddatum` varchar(255) DEFAULT NULL, + `importfelddatumformat` varchar(255) DEFAULT NULL, + `importfelddatumformatausgabe` varchar(255) DEFAULT NULL, + `importfeldbetrag` varchar(255) DEFAULT NULL, + `importfeldbetragformat` varchar(255) DEFAULT NULL, + `importfeldbuchungstext` varchar(255) DEFAULT NULL, + `importfeldbuchungstextformat` varchar(255) DEFAULT NULL, + `importfeldwaehrung` varchar(255) DEFAULT NULL, + `importfeldwaehrungformat` varchar(255) DEFAULT NULL, + `importfeldhabensollkennung` varchar(10) NOT NULL, + `importfeldkennunghaben` varchar(10) NOT NULL, + `importfeldkennungsoll` varchar(10) NOT NULL, + `importextrahabensoll` tinyint(1) NOT NULL DEFAULT 0, + `importfeldhaben` varchar(10) NOT NULL, + `importfeldsoll` varchar(10) NOT NULL, + `cronjobaktiv` tinyint(1) NOT NULL DEFAULT 0, + `cronjobverbuchen` tinyint(1) NOT NULL DEFAULT 0, + `last_import` timestamp NOT NULL DEFAULT '1979-01-01 23:00:00', + `importperiode_in_hours` int(11) NOT NULL DEFAULT 8, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kontoauszuege` -- +DROP TABLE IF EXISTS `kontoauszuege`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kontoauszuege` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `konto` int(11) NOT NULL, - `buchung` date NOT NULL, - `originalbuchung` date NOT NULL, - `vorgang` text NOT NULL, - `originalvorgang` text NOT NULL, - `soll` decimal(10,2) NOT NULL, - `originalsoll` decimal(10,2) NOT NULL, - `haben` decimal(10,2) NOT NULL, - `originalhaben` decimal(10,2) NOT NULL, - `gebuehr` decimal(10,2) NOT NULL, - `originalgebuehr` decimal(10,2) NOT NULL, - `waehrung` varchar(255) NOT NULL, - `originalwaehrung` varchar(255) NOT NULL, - `fertig` int(1) NOT NULL, - `datev_abgeschlossen` int(1) NOT NULL, - `buchungstext` varchar(255) NOT NULL, - `gegenkonto` varchar(255) NOT NULL, - `belegfeld1` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `mailbenachrichtigung` int(11) NOT NULL, - `pruefsumme` varchar(255) NOT NULL, - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `importgroup` bigint(20) DEFAULT NULL, - `diff` decimal(12,4) NOT NULL DEFAULT '0.0000', - `diffangelegt` timestamp NULL DEFAULT NULL, - `internebemerkung` text, - `importfehler` int(1) DEFAULT NULL, - `parent` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `doctype` varchar(64) NOT NULL, - `doctypeid` int(11) NOT NULL, - `vorauswahltyp` varchar(64) NOT NULL DEFAULT '', - `vorauswahlparameter` varchar(255) NOT NULL DEFAULT '', - `klaerfall` tinyint(1) NOT NULL DEFAULT '0', - `klaergrund` varchar(255) NOT NULL DEFAULT '', - `bezugtyp` varchar(64) NOT NULL DEFAULT '', - `bezugparameter` varchar(255) NOT NULL DEFAULT '', - `vorauswahlvorschlag` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `konto` (`konto`), - KEY `parent` (`parent`), - KEY `gegenkonto` (`gegenkonto`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kontoauszuege` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `konto` int(11) NOT NULL, + `buchung` date NOT NULL, + `originalbuchung` date NOT NULL, + `vorgang` text NOT NULL, + `originalvorgang` text NOT NULL, + `soll` decimal(10,2) NOT NULL, + `originalsoll` decimal(10,2) NOT NULL, + `haben` decimal(10,2) NOT NULL, + `originalhaben` decimal(10,2) NOT NULL, + `gebuehr` decimal(10,2) NOT NULL, + `originalgebuehr` decimal(10,2) NOT NULL, + `waehrung` varchar(255) NOT NULL, + `originalwaehrung` varchar(255) NOT NULL, + `fertig` int(1) NOT NULL, + `datev_abgeschlossen` int(1) NOT NULL, + `buchungstext` varchar(255) NOT NULL, + `gegenkonto` varchar(255) NOT NULL, + `belegfeld1` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `mailbenachrichtigung` int(11) NOT NULL, + `pruefsumme` varchar(255) NOT NULL, + `kostenstelle` varchar(10) NOT NULL, + `importgroup` bigint(20) DEFAULT NULL, + `diff` decimal(12,4) NOT NULL DEFAULT 0.0000, + `diffangelegt` timestamp NULL DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + `importfehler` int(1) DEFAULT NULL, + `parent` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `doctype` varchar(64) NOT NULL, + `doctypeid` int(11) NOT NULL, + `vorauswahltyp` varchar(64) NOT NULL, + `vorauswahlparameter` varchar(255) NOT NULL, + `klaerfall` tinyint(1) NOT NULL DEFAULT 0, + `klaergrund` varchar(255) NOT NULL, + `bezugtyp` varchar(64) NOT NULL, + `bezugparameter` varchar(255) NOT NULL, + `vorauswahlvorschlag` int(11) NOT NULL DEFAULT 0, + `importdatum` datetime NOT NULL, + PRIMARY KEY (`id`), + KEY `konto` (`konto`), + KEY `parent` (`parent`), + KEY `gegenkonto` (`gegenkonto`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kontoauszuege_zahlungsausgang` -- +DROP TABLE IF EXISTS `kontoauszuege_zahlungsausgang`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kontoauszuege_zahlungsausgang` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `betrag` decimal(10,2) NOT NULL, - `datum` date NOT NULL, - `objekt` varchar(255) NOT NULL, - `parameter` int(11) NOT NULL, - `kontoauszuege` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `abgeschlossen` int(11) NOT NULL, - PRIMARY KEY (`id`), - KEY `kontoauszuege` (`kontoauszuege`), - KEY `parameter` (`parameter`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kontoauszuege_zahlungsausgang` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `betrag` decimal(10,2) NOT NULL, + `datum` date NOT NULL, + `objekt` varchar(255) NOT NULL, + `parameter` int(11) NOT NULL, + `kontoauszuege` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `abgeschlossen` int(11) NOT NULL, + PRIMARY KEY (`id`), + KEY `kontoauszuege` (`kontoauszuege`), + KEY `parameter` (`parameter`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kontoauszuege_zahlungseingang` -- +DROP TABLE IF EXISTS `kontoauszuege_zahlungseingang`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kontoauszuege_zahlungseingang` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `betrag` decimal(10,2) NOT NULL, - `datum` date NOT NULL, - `objekt` varchar(255) NOT NULL, - `parameter` int(11) NOT NULL, - `kontoauszuege` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `abgeschlossen` int(11) NOT NULL, - `parameter2` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `kontoauszuege` (`kontoauszuege`), - KEY `parameter` (`parameter`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kontoauszuege_zahlungseingang` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `betrag` decimal(10,2) NOT NULL, + `datum` date NOT NULL, + `objekt` varchar(255) NOT NULL, + `parameter` int(11) NOT NULL, + `kontoauszuege` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `abgeschlossen` int(11) NOT NULL, + `parameter2` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `kontoauszuege` (`kontoauszuege`), + KEY `parameter` (`parameter`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kontorahmen` -- +DROP TABLE IF EXISTS `kontorahmen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kontorahmen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `sachkonto` varchar(16) NOT NULL DEFAULT '', - `beschriftung` varchar(128) DEFAULT NULL, - `bemerkung` text NOT NULL, - `ausblenden` tinyint(1) NOT NULL DEFAULT '0', - `art` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kontorahmen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `sachkonto` varchar(16) NOT NULL, + `beschriftung` varchar(128) DEFAULT NULL, + `bemerkung` text NOT NULL, + `ausblenden` tinyint(1) NOT NULL DEFAULT 0, + `art` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kontorahmen_checked` -- +DROP TABLE IF EXISTS `kontorahmen_checked`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kontorahmen_checked` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `kontorahmen` int(11) NOT NULL, - `user` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kontorahmen_checked` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `kontorahmen` int(11) NOT NULL, + `user` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kopiebelegempfaenger` -- +DROP TABLE IF EXISTS `kopiebelegempfaenger`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kopiebelegempfaenger` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `belegtyp` varchar(255) NOT NULL, - `art` varchar(255) NOT NULL, - `projekt` varchar(255) NOT NULL, - `adresse` int(11) NOT NULL DEFAULT '0', - `empfaenger_email` varchar(255) NOT NULL, - `empfaenger_name` varchar(255) NOT NULL, - `drucker` int(11) NOT NULL, - `anzahl_ausdrucke` int(11) NOT NULL, - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - `autoversand` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kopiebelegempfaenger` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `belegtyp` varchar(255) NOT NULL, + `art` varchar(255) NOT NULL, + `projekt` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `empfaenger_email` varchar(255) NOT NULL, + `empfaenger_name` varchar(255) NOT NULL, + `drucker` int(11) NOT NULL, + `anzahl_ausdrucke` int(11) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + `autoversand` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kostenstelle` -- +DROP TABLE IF EXISTS `kostenstelle`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kostenstelle` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `projekt` varchar(255) NOT NULL, - `verantwortlicher` varchar(255) NOT NULL, - `logdatei` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kostenstelle` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `projekt` varchar(255) NOT NULL, + `verantwortlicher` varchar(255) NOT NULL, + `logdatei` varchar(255) NOT NULL, + `nummer` int(11) NOT NULL, + `beschreibung` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kostenstelle_buchung` -- +DROP TABLE IF EXISTS `kostenstelle_buchung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kostenstelle_buchung` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `kostenstelle` int(10) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `datum` varchar(255) NOT NULL, - `buchungstext` varchar(255) NOT NULL, - `sonstiges` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kostenstelle_buchung` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `kostenstelle` int(10) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `datum` varchar(255) NOT NULL, + `buchungstext` varchar(255) NOT NULL, + `sonstiges` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kostenstellen` -- +DROP TABLE IF EXISTS `kostenstellen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kostenstellen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `nummer` varchar(20) DEFAULT NULL, - `beschreibung` varchar(512) DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kostenstellen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `nummer` varchar(20) DEFAULT NULL, + `beschreibung` varchar(512) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `kundevorlage` -- +DROP TABLE IF EXISTS `kundevorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `kundevorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` int(11) NOT NULL, - `versandart` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `kundevorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` int(11) NOT NULL, + `versandart` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `label_automatic` -- +DROP TABLE IF EXISTS `label_automatic`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `label_automatic` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `label_type_id` int(11) NOT NULL DEFAULT '0', - `project_id` int(11) NOT NULL DEFAULT '0', - `action` varchar(64) NOT NULL, - `selection` varchar(64) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `label_automatic` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `label_type_id` int(11) NOT NULL DEFAULT 0, + `project_id` int(11) NOT NULL DEFAULT 0, + `action` varchar(64) NOT NULL, + `selection` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `label_group` -- +DROP TABLE IF EXISTS `label_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `label_group` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `group_table` varchar(64) NOT NULL, - `title` varchar(64) NOT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `group_table` (`group_table`) -) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; +CREATE TABLE `label_group` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `group_table` varchar(64) NOT NULL, + `title` varchar(64) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + UNIQUE KEY `group_table` (`group_table`) +) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `label_reference` -- +DROP TABLE IF EXISTS `label_reference`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `label_reference` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `label_type_id` int(11) unsigned NOT NULL, - `reference_table` varchar(64) NOT NULL, - `reference_id` int(11) unsigned NOT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `label_type_id` (`label_type_id`,`reference_table`,`reference_id`), - UNIQUE KEY `label_type_id_2` (`label_type_id`,`reference_table`,`reference_id`), - UNIQUE KEY `label_type_id_3` (`label_type_id`,`reference_table`,`reference_id`), - UNIQUE KEY `label_type_id_4` (`label_type_id`,`reference_table`,`reference_id`), - UNIQUE KEY `label_type_id_5` (`label_type_id`,`reference_table`,`reference_id`), - UNIQUE KEY `label_type_id_6` (`label_type_id`,`reference_table`,`reference_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `label_reference` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `label_type_id` int(11) unsigned NOT NULL, + `reference_table` varchar(64) NOT NULL, + `reference_id` int(11) unsigned NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + UNIQUE KEY `label_type_id` (`label_type_id`,`reference_table`,`reference_id`), + UNIQUE KEY `label_type_id_2` (`label_type_id`,`reference_table`,`reference_id`), + UNIQUE KEY `label_type_id_3` (`label_type_id`,`reference_table`,`reference_id`), + UNIQUE KEY `label_type_id_4` (`label_type_id`,`reference_table`,`reference_id`), + UNIQUE KEY `label_type_id_5` (`label_type_id`,`reference_table`,`reference_id`), + UNIQUE KEY `label_type_id_6` (`label_type_id`,`reference_table`,`reference_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `label_type` -- +DROP TABLE IF EXISTS `label_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `label_type` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `label_group_id` int(11) unsigned NOT NULL DEFAULT '0', - `type` varchar(24) NOT NULL, - `title` varchar(64) NOT NULL, - `hexcolor` varchar(7) NOT NULL DEFAULT '#FFFFFF', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (`id`), - UNIQUE KEY `type` (`type`) -) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8; +CREATE TABLE `label_type` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `label_group_id` int(11) unsigned NOT NULL DEFAULT 0, + `type` varchar(24) NOT NULL, + `title` varchar(64) NOT NULL, + `hexcolor` varchar(7) NOT NULL DEFAULT '#ffffff', + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`), + UNIQUE KEY `type` (`type`) +) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `laender` -- +DROP TABLE IF EXISTS `laender`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `laender` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `iso` varchar(3) NOT NULL DEFAULT '', - `iso3` varchar(3) NOT NULL DEFAULT '', - `num_code` varchar(3) NOT NULL DEFAULT '', - `bezeichnung_de` varchar(255) NOT NULL DEFAULT '', - `bezeichnung_en` varchar(255) NOT NULL DEFAULT '', - `eu` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8; +CREATE TABLE `laender` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `iso` varchar(3) NOT NULL, + `iso3` varchar(3) NOT NULL, + `num_code` varchar(3) NOT NULL, + `bezeichnung_de` varchar(255) NOT NULL, + `bezeichnung_en` varchar(255) NOT NULL, + `eu` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager` -- +DROP TABLE IF EXISTS `lager`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `manuell` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `geloescht` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `projekt` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `lager` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `manuell` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `geloescht` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `projekt` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_bewegung` -- +DROP TABLE IF EXISTS `lager_bewegung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_bewegung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lager_platz` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `vpe` varchar(255) NOT NULL, - `eingang` int(1) NOT NULL, - `zeit` datetime NOT NULL, - `referenz` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `adresse` int(11) DEFAULT NULL, - `bestand` decimal(14,4) NOT NULL DEFAULT '0.0000', - `permanenteinventur` tinyint(1) NOT NULL DEFAULT '0', - `paketannahme` int(11) DEFAULT NULL, - `doctype` varchar(32) NOT NULL DEFAULT '', - `doctypeid` int(11) NOT NULL DEFAULT '0', - `vpeid` int(11) NOT NULL DEFAULT '0', - `is_interim` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_bewegung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lager_platz` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `vpe` varchar(255) NOT NULL, + `eingang` int(1) NOT NULL, + `zeit` datetime NOT NULL, + `referenz` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `adresse` int(11) DEFAULT NULL, + `bestand` decimal(14,4) NOT NULL DEFAULT 0.0000, + `permanenteinventur` tinyint(1) NOT NULL DEFAULT 0, + `paketannahme` int(11) DEFAULT NULL, + `doctype` varchar(32) NOT NULL, + `doctypeid` int(11) NOT NULL DEFAULT 0, + `vpeid` int(11) NOT NULL DEFAULT 0, + `is_interim` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_charge` -- +DROP TABLE IF EXISTS `lager_charge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_charge` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `charge` varchar(1024) DEFAULT NULL, - `datum` date DEFAULT NULL, - `artikel` int(11) DEFAULT NULL, - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `lager_platz` int(11) DEFAULT NULL, - `zwischenlagerid` int(11) DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`), - KEY `lager_platz` (`lager_platz`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_charge` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `charge` varchar(1024) DEFAULT NULL, + `datum` date DEFAULT NULL, + `artikel` int(11) DEFAULT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `lager_platz` int(11) DEFAULT NULL, + `zwischenlagerid` int(11) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `lager_platz` (`lager_platz`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_differenzen` -- +DROP TABLE IF EXISTS `lager_differenzen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_differenzen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) DEFAULT NULL, - `eingang` decimal(10,4) DEFAULT NULL, - `ausgang` decimal(10,4) DEFAULT NULL, - `berechnet` decimal(10,4) DEFAULT NULL, - `bestand` decimal(10,4) DEFAULT NULL, - `differenz` decimal(10,4) DEFAULT NULL, - `user` int(11) DEFAULT NULL, - `lager_platz` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_differenzen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) DEFAULT NULL, + `eingang` decimal(10,4) DEFAULT NULL, + `ausgang` decimal(10,4) DEFAULT NULL, + `berechnet` decimal(10,4) DEFAULT NULL, + `bestand` decimal(10,4) DEFAULT NULL, + `differenz` decimal(10,4) DEFAULT NULL, + `user` int(11) DEFAULT NULL, + `lager_platz` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_mindesthaltbarkeitsdatum` -- +DROP TABLE IF EXISTS `lager_mindesthaltbarkeitsdatum`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_mindesthaltbarkeitsdatum` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date DEFAULT NULL, - `mhddatum` date DEFAULT NULL, - `artikel` int(11) DEFAULT NULL, - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `lager_platz` int(11) DEFAULT NULL, - `zwischenlagerid` int(11) DEFAULT NULL, - `charge` varchar(1024) DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`), - KEY `lager_platz` (`lager_platz`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_mindesthaltbarkeitsdatum` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date DEFAULT NULL, + `mhddatum` date DEFAULT NULL, + `artikel` int(11) DEFAULT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `lager_platz` int(11) DEFAULT NULL, + `zwischenlagerid` int(11) DEFAULT NULL, + `charge` varchar(1024) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `lager_platz` (`lager_platz`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_platz` -- +DROP TABLE IF EXISTS `lager_platz`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_platz` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lager` int(11) NOT NULL, - `kurzbezeichnung` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `projekt` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `geloescht` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `autolagersperre` int(1) NOT NULL DEFAULT '0', - `verbrauchslager` int(1) NOT NULL DEFAULT '0', - `sperrlager` int(1) NOT NULL DEFAULT '0', - `laenge` decimal(10,2) NOT NULL DEFAULT '0.00', - `breite` decimal(10,2) NOT NULL DEFAULT '0.00', - `hoehe` decimal(10,2) NOT NULL DEFAULT '0.00', - `poslager` int(1) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `abckategorie` varchar(1) NOT NULL DEFAULT '', - `regalart` varchar(100) NOT NULL DEFAULT '', - `rownumber` int(11) NOT NULL DEFAULT '0', - `allowproduction` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `lager` (`lager`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `lager_platz` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lager` int(11) NOT NULL, + `kurzbezeichnung` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `projekt` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `geloescht` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `autolagersperre` int(1) NOT NULL DEFAULT 0, + `verbrauchslager` int(1) NOT NULL DEFAULT 0, + `sperrlager` int(1) NOT NULL DEFAULT 0, + `laenge` decimal(10,2) NOT NULL DEFAULT 0.00, + `breite` decimal(10,2) NOT NULL DEFAULT 0.00, + `hoehe` decimal(10,2) NOT NULL DEFAULT 0.00, + `poslager` int(1) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `abckategorie` varchar(1) NOT NULL, + `regalart` varchar(100) NOT NULL, + `rownumber` int(11) NOT NULL DEFAULT 0, + `allowproduction` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `lager` (`lager`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_platz_inhalt` -- +DROP TABLE IF EXISTS `lager_platz_inhalt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_platz_inhalt` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lager_platz` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `vpe` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `bestellung` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `inventur` decimal(14,4) DEFAULT NULL, - `lager_platz_vpe` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`), - KEY `lager_platz` (`lager_platz`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_platz_inhalt` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lager_platz` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `vpe` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `bestellung` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `inventur` decimal(14,4) DEFAULT NULL, + `lager_platz_vpe` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`), + KEY `lager_platz` (`lager_platz`) +) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_platz_vpe` -- +DROP TABLE IF EXISTS `lager_platz_vpe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_platz_vpe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lager_platz` int(11) DEFAULT NULL, - `artikel` int(11) NOT NULL DEFAULT '0', - `inventur` int(11) NOT NULL DEFAULT '0', - `menge` decimal(10,2) NOT NULL DEFAULT '0.00', - `breite` decimal(10,2) NOT NULL DEFAULT '0.00', - `hoehe` decimal(10,2) NOT NULL DEFAULT '0.00', - `laenge` decimal(10,2) NOT NULL DEFAULT '0.00', - `gewicht` decimal(10,2) NOT NULL DEFAULT '0.00', - `menge2` int(11) NOT NULL DEFAULT '0', - `breite2` decimal(10,2) NOT NULL DEFAULT '0.00', - `hoehe2` decimal(10,2) NOT NULL DEFAULT '0.00', - `laenge2` decimal(10,2) NOT NULL DEFAULT '0.00', - `gewicht2` decimal(10,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_platz_vpe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lager_platz` int(11) DEFAULT NULL, + `artikel` int(11) NOT NULL DEFAULT 0, + `inventur` int(11) NOT NULL DEFAULT 0, + `menge` decimal(10,2) NOT NULL DEFAULT 0.00, + `breite` decimal(10,2) NOT NULL DEFAULT 0.00, + `hoehe` decimal(10,2) NOT NULL DEFAULT 0.00, + `laenge` decimal(10,2) NOT NULL DEFAULT 0.00, + `gewicht` decimal(10,2) NOT NULL DEFAULT 0.00, + `menge2` int(11) NOT NULL DEFAULT 0, + `breite2` decimal(10,2) NOT NULL DEFAULT 0.00, + `hoehe2` decimal(10,2) NOT NULL DEFAULT 0.00, + `laenge2` decimal(10,2) NOT NULL DEFAULT 0.00, + `gewicht2` decimal(10,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_reserviert` -- +DROP TABLE IF EXISTS `lager_reserviert`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_reserviert` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `grund` varchar(255) NOT NULL, - `objekt` varchar(255) NOT NULL, - `parameter` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `datum` date NOT NULL, - `reserviertdatum` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `posid` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `lager` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`,`artikel`), - KEY `objekt` (`objekt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_reserviert` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `grund` varchar(255) NOT NULL, + `objekt` varchar(255) NOT NULL, + `parameter` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `datum` date NOT NULL, + `reserviertdatum` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `posid` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `lager` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`,`artikel`), + KEY `objekt` (`objekt`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lager_seriennummern` -- +DROP TABLE IF EXISTS `lager_seriennummern`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lager_seriennummern` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) DEFAULT NULL, - `lager_platz` int(11) DEFAULT NULL, - `zwischenlagerid` int(11) DEFAULT NULL, - `seriennummer` text, - `charge` varchar(1024) DEFAULT NULL, - `mhddatum` date DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lager_seriennummern` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) DEFAULT NULL, + `lager_platz` int(11) DEFAULT NULL, + `zwischenlagerid` int(11) DEFAULT NULL, + `seriennummer` text DEFAULT NULL, + `charge` varchar(1024) DEFAULT NULL, + `mhddatum` date DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lagermindestmengen` -- +DROP TABLE IF EXISTS `lagermindestmengen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lagermindestmengen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `datumvon` date DEFAULT NULL, - `datumbis` date DEFAULT NULL, - `max_menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`,`lager_platz`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lagermindestmengen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `datumvon` date DEFAULT NULL, + `datumbis` date DEFAULT NULL, + `max_menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`,`lager_platz`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lagerstueckliste` -- +DROP TABLE IF EXISTS `lagerstueckliste`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lagerstueckliste` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager` int(11) NOT NULL DEFAULT '0', - `sofortexplodieren` tinyint(1) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lagerstueckliste` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager` int(11) NOT NULL DEFAULT 0, + `sofortexplodieren` tinyint(1) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lagerwert` -- +DROP TABLE IF EXISTS `lagerwert`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lagerwert` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `lager` int(11) NOT NULL DEFAULT '0', - `menge` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `gewicht` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `volumen` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `inventurwert` decimal(18,8) DEFAULT NULL, - `preis_letzterek` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `preis_kalkulierterek` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `letzte_bewegung` datetime DEFAULT NULL, - `waehrungkalk` varchar(16) NOT NULL DEFAULT '', - `waehrungletzt` varchar(16) NOT NULL DEFAULT '', - `kurskalk` decimal(19,8) NOT NULL DEFAULT '0.00000000', - `kursletzt` decimal(19,8) NOT NULL DEFAULT '0.00000000', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`), - KEY `datum` (`datum`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lagerwert` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `lager` int(11) NOT NULL DEFAULT 0, + `menge` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `gewicht` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `volumen` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `inventurwert` decimal(18,8) DEFAULT NULL, + `preis_letzterek` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `preis_kalkulierterek` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `letzte_bewegung` datetime DEFAULT NULL, + `waehrungkalk` varchar(16) NOT NULL, + `waehrungletzt` varchar(16) NOT NULL, + `kurskalk` decimal(19,8) NOT NULL DEFAULT 0.00000000, + `kursletzt` decimal(19,8) NOT NULL DEFAULT 0.00000000, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`), + KEY `datum` (`datum`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `layouttemplate_attachment` -- +DROP TABLE IF EXISTS `layouttemplate_attachment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `layouttemplate_attachment` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(255) NOT NULL, - `articlecategory_id` int(11) NOT NULL DEFAULT '0', - `group_id` int(11) NOT NULL DEFAULT '0', - `layouttemplate_id` int(11) NOT NULL DEFAULT '0', - `language` varchar(255) NOT NULL, - `country` varchar(255) NOT NULL, - `parameter` int(11) NOT NULL DEFAULT '0', - `project_id` int(11) NOT NULL DEFAULT '0', - `active` tinyint(1) NOT NULL DEFAULT '0', - `filename` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `layouttemplate_attachment` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(255) NOT NULL, + `articlecategory_id` int(11) NOT NULL DEFAULT 0, + `group_id` int(11) NOT NULL DEFAULT 0, + `layouttemplate_id` int(11) NOT NULL DEFAULT 0, + `language` varchar(255) NOT NULL, + `country` varchar(255) NOT NULL, + `parameter` int(11) NOT NULL DEFAULT 0, + `project_id` int(11) NOT NULL DEFAULT 0, + `active` tinyint(1) NOT NULL DEFAULT 0, + `filename` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `layouttemplate_attachment_items` -- +DROP TABLE IF EXISTS `layouttemplate_attachment_items`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `layouttemplate_attachment_items` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `object` varchar(255) NOT NULL, - `parameter_id` int(11) NOT NULL DEFAULT '0', - `layouttemplate_id` int(11) NOT NULL DEFAULT '0', - `file_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `layouttemplate_attachment_items` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `object` varchar(255) NOT NULL, + `parameter_id` int(11) NOT NULL DEFAULT 0, + `layouttemplate_id` int(11) NOT NULL DEFAULT 0, + `file_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `layoutvorlagen` -- +DROP TABLE IF EXISTS `layoutvorlagen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `layoutvorlagen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) NOT NULL DEFAULT '', - `typ` varchar(128) NOT NULL DEFAULT '', - `pdf_hintergrund` longblob NOT NULL, - `format` varchar(128) NOT NULL DEFAULT '', - `kategorie` varchar(128) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `layoutvorlagen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(128) NOT NULL, + `typ` varchar(128) NOT NULL, + `pdf_hintergrund` longblob NOT NULL, + `format` varchar(128) NOT NULL, + `kategorie` varchar(128) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `layoutvorlagen_positionen` -- +DROP TABLE IF EXISTS `layoutvorlagen_positionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `layoutvorlagen_positionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `layoutvorlage` int(11) NOT NULL DEFAULT '0', - `name` varchar(128) NOT NULL DEFAULT '', - `beschreibung` varchar(128) NOT NULL DEFAULT '', - `typ` varchar(128) NOT NULL DEFAULT '', - `position_typ` varchar(128) NOT NULL DEFAULT '', - `position_x` double NOT NULL DEFAULT '1', - `position_y` double NOT NULL DEFAULT '1', - `position_parent` int(11) NOT NULL DEFAULT '0', - `breite` double NOT NULL DEFAULT '1', - `hoehe` double NOT NULL DEFAULT '1', - `schrift_art` varchar(128) NOT NULL DEFAULT '', - `zeilen_hoehe` double NOT NULL DEFAULT '5', - `schrift_groesse` double NOT NULL DEFAULT '1', - `schrift_farbe` varchar(128) NOT NULL DEFAULT '', - `schrift_align` varchar(128) NOT NULL DEFAULT '', - `hintergrund_farbe` varchar(128) NOT NULL DEFAULT '', - `rahmen` varchar(128) NOT NULL DEFAULT '', - `rahmen_farbe` varchar(128) NOT NULL DEFAULT '', - `sichtbar` tinyint(1) NOT NULL DEFAULT '1', - `inhalt_deutsch` text NOT NULL, - `inhalt_englisch` text NOT NULL, - `bild_deutsch` longblob NOT NULL, - `bild_englisch` longblob NOT NULL, - `schrift_fett` tinyint(1) NOT NULL DEFAULT '0', - `schrift_kursiv` tinyint(1) NOT NULL DEFAULT '0', - `schrift_underline` tinyint(1) NOT NULL DEFAULT '0', - `bild_deutsch_typ` varchar(5) NOT NULL DEFAULT '', - `bild_englisch_typ` varchar(5) NOT NULL DEFAULT '', - `sort` int(11) NOT NULL DEFAULT '0', - `zeichenbegrenzung` tinyint(1) NOT NULL DEFAULT '0', - `zeichenbegrenzung_anzahl` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `layoutvorlage` (`layoutvorlage`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `layoutvorlagen_positionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `layoutvorlage` int(11) NOT NULL DEFAULT 0, + `name` varchar(128) NOT NULL, + `beschreibung` varchar(128) NOT NULL, + `typ` varchar(128) NOT NULL, + `position_typ` varchar(128) NOT NULL, + `position_x` double NOT NULL DEFAULT 1, + `position_y` double NOT NULL DEFAULT 1, + `position_parent` int(11) NOT NULL DEFAULT 0, + `breite` double NOT NULL DEFAULT 1, + `hoehe` double NOT NULL DEFAULT 1, + `schrift_art` varchar(128) NOT NULL, + `zeilen_hoehe` double NOT NULL DEFAULT 5, + `schrift_groesse` double NOT NULL DEFAULT 1, + `schrift_farbe` varchar(128) NOT NULL, + `schrift_align` varchar(128) NOT NULL, + `hintergrund_farbe` varchar(128) NOT NULL, + `rahmen` varchar(128) NOT NULL, + `rahmen_farbe` varchar(128) NOT NULL, + `sichtbar` tinyint(1) NOT NULL DEFAULT 1, + `inhalt_deutsch` text NOT NULL, + `inhalt_englisch` text NOT NULL, + `bild_deutsch` longblob NOT NULL, + `bild_englisch` longblob NOT NULL, + `schrift_fett` tinyint(1) NOT NULL DEFAULT 0, + `schrift_kursiv` tinyint(1) NOT NULL DEFAULT 0, + `schrift_underline` tinyint(1) NOT NULL DEFAULT 0, + `bild_deutsch_typ` varchar(5) NOT NULL, + `bild_englisch_typ` varchar(5) NOT NULL, + `sort` int(11) NOT NULL DEFAULT 0, + `zeichenbegrenzung` tinyint(1) NOT NULL DEFAULT 0, + `zeichenbegrenzung_anzahl` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `layoutvorlage` (`layoutvorlage`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferadressen` -- +DROP TABLE IF EXISTS `lieferadressen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferadressen` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `typ` varchar(255) NOT NULL, - `sprache` varchar(255) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `sonstiges` text NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `steuer` varchar(255) NOT NULL, - `adresse` varchar(10) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `ansprechpartner` varchar(255) DEFAULT NULL, - `standardlieferadresse` tinyint(1) NOT NULL DEFAULT '0', - `interne_bemerkung` text, - `hinweis` text, - `gln` varchar(32) NOT NULL DEFAULT '', - `ustid` varchar(32) NOT NULL DEFAULT '', - `lieferbedingung` text NOT NULL, - `ust_befreit` varchar(1) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferadressen` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `typ` varchar(255) NOT NULL, + `sprache` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `sonstiges` text NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `steuer` varchar(255) NOT NULL, + `adresse` varchar(10) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `ansprechpartner` varchar(255) DEFAULT NULL, + `standardlieferadresse` tinyint(1) NOT NULL DEFAULT 0, + `interne_bemerkung` text DEFAULT NULL, + `hinweis` text DEFAULT NULL, + `gln` varchar(32) NOT NULL, + `ustid` varchar(32) NOT NULL, + `lieferbedingung` text NOT NULL, + `ust_befreit` varchar(1) NOT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `lieferantengutschrift` +-- + +DROP TABLE IF EXISTS `lieferantengutschrift`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `lieferantengutschrift` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `usereditid` int(11) NOT NULL, + `belegnr` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `datum` date DEFAULT NULL, + `status_beleg` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `schreibschutz` tinyint(1) NOT NULL DEFAULT 0, + `rechnung` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `zahlbarbis` date NOT NULL, + `betrag` decimal(10,2) NOT NULL, + `skonto` decimal(10,2) NOT NULL, + `skontobis` date NOT NULL, + `freigabe` int(1) NOT NULL, + `freigabemitarbeiter` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `adresse` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `status` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `bezahlt` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `waehrung` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'EUR', + `zahlungsweise` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `eingangsdatum` date NOT NULL, + `rechnungsdatum` date DEFAULT NULL, + `rechnungsfreigabe` tinyint(1) NOT NULL DEFAULT 0, + `kostenstelle` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `beschreibung` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `sachkonto` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `internebemerkung` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `ust_befreit` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `lieferantengutschrift_position` +-- + +DROP TABLE IF EXISTS `lieferantengutschrift_position`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `lieferantengutschrift_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lieferantengutschrift` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `bestellung` int(11) NOT NULL DEFAULT 0, + `nummer` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `waehrung` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `einheit` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `vpe` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `bezeichnung` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `umsatzsteuer` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `beschreibung` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `lieferdatum` date DEFAULT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `kostenstelle` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `preis` decimal(14,4) NOT NULL DEFAULT 0.0000, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `verbindlichkeit_position` int(11) NOT NULL DEFAULT 0, + `kontorahmen` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `lieferantengutschrift` (`lieferantengutschrift`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `lieferantengutschrift_protokoll` +-- + +DROP TABLE IF EXISTS `lieferantengutschrift_protokoll`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `lieferantengutschrift_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lieferantengutschrift` int(11) NOT NULL DEFAULT 0, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `grund` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + PRIMARY KEY (`id`), + KEY `lieferantengutschrift` (`lieferantengutschrift`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferantvorlage` -- +DROP TABLE IF EXISTS `lieferantvorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferantvorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `kundennummer` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` int(11) NOT NULL, - `versandart` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferantvorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `kundennummer` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` int(11) NOT NULL, + `versandart` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferbedingungen` -- +DROP TABLE IF EXISTS `lieferbedingungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferbedingungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lieferbedingungen` text NOT NULL, - `kennzeichen` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferbedingungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lieferbedingungen` text NOT NULL, + `kennzeichen` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferschein` -- +DROP TABLE IF EXISTS `lieferschein`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferschein` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `projekt` varchar(222) NOT NULL, - `lieferscheinart` varchar(255) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `auftrag` varchar(255) NOT NULL, - `auftragid` int(11) NOT NULL, - `freitext` text NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(64) DEFAULT NULL, - `versandart` varchar(255) NOT NULL, - `versand` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `inbearbeitung_user` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `vertriebid` int(11) DEFAULT NULL, - `vertrieb` varchar(255) NOT NULL DEFAULT '', - `ust_befreit` int(1) NOT NULL, - `ihrebestellnummer` varchar(255) DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `lieferantenretoure` tinyint(1) NOT NULL DEFAULT '0', - `lieferantenretoureinfo` text NOT NULL, - `lieferant` int(11) NOT NULL DEFAULT '0', - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `internebemerkung` text, - `ohne_briefpapier` int(1) DEFAULT NULL, - `lieferid` int(11) NOT NULL DEFAULT '0', - `ansprechpartnerid` int(11) NOT NULL DEFAULT '0', - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `projektfiliale_eingelagert` tinyint(1) NOT NULL DEFAULT '0', - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `kommissionierung` int(11) NOT NULL DEFAULT '0', - `sprache` varchar(32) NOT NULL DEFAULT '', - `bundesland` varchar(64) NOT NULL DEFAULT '', - `gln` varchar(64) NOT NULL DEFAULT '', - `rechnungid` int(11) NOT NULL DEFAULT '0', - `bearbeiterid` int(11) DEFAULT NULL, - `keinerechnung` tinyint(1) NOT NULL DEFAULT '0', - `ohne_artikeltext` int(1) DEFAULT NULL, - `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `standardlager` int(11) NOT NULL DEFAULT '0', - `kommissionskonsignationslager` int(11) NOT NULL DEFAULT '0', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `teillieferungvon` int(11) NOT NULL DEFAULT '0', - `teillieferungnummer` int(11) NOT NULL DEFAULT '0', - `kiste` int(11) NOT NULL DEFAULT '-1', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`), - KEY `adresse` (`adresse`), - KEY `auftragid` (`auftragid`), - KEY `land` (`land`), - KEY `status` (`status`), - KEY `datum` (`datum`), - KEY `belegnr` (`belegnr`), - KEY `keinerechnung` (`keinerechnung`), - KEY `versandart` (`versandart`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferschein` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `projekt` varchar(222) NOT NULL, + `lieferscheinart` varchar(255) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `auftrag` varchar(255) NOT NULL, + `auftragid` int(11) NOT NULL, + `freitext` text NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(64) DEFAULT NULL, + `versandart` varchar(255) NOT NULL, + `versand` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `inbearbeitung_user` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `vertriebid` int(11) DEFAULT NULL, + `vertrieb` varchar(255) NOT NULL, + `ust_befreit` int(1) NOT NULL, + `ihrebestellnummer` varchar(255) DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `lieferantenretoure` tinyint(1) NOT NULL DEFAULT 0, + `lieferantenretoureinfo` text NOT NULL, + `lieferant` int(11) NOT NULL DEFAULT 0, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `internebemerkung` text DEFAULT NULL, + `ohne_briefpapier` int(1) DEFAULT NULL, + `lieferid` int(11) NOT NULL DEFAULT 0, + `ansprechpartnerid` int(11) NOT NULL DEFAULT 0, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `projektfiliale_eingelagert` tinyint(1) NOT NULL DEFAULT 0, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `angelegtam` datetime DEFAULT NULL, + `kommissionierung` int(11) NOT NULL DEFAULT 0, + `sprache` varchar(32) NOT NULL, + `bundesland` varchar(64) NOT NULL, + `gln` varchar(64) NOT NULL, + `rechnungid` int(11) NOT NULL DEFAULT 0, + `bearbeiterid` int(11) DEFAULT NULL, + `keinerechnung` tinyint(1) NOT NULL DEFAULT 0, + `ohne_artikeltext` int(1) DEFAULT NULL, + `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `standardlager` int(11) NOT NULL DEFAULT 0, + `kommissionskonsignationslager` int(11) NOT NULL DEFAULT 0, + `bundesstaat` varchar(32) NOT NULL, + `teillieferungvon` int(11) NOT NULL DEFAULT 0, + `teillieferungnummer` int(11) NOT NULL DEFAULT 0, + `kiste` int(11) NOT NULL DEFAULT -1, + `versand_status` int(11) NOT NULL DEFAULT 0, + `umgelagert` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`), + KEY `adresse` (`adresse`), + KEY `auftragid` (`auftragid`), + KEY `land` (`land`), + KEY `status` (`status`), + KEY `datum` (`datum`), + KEY `belegnr` (`belegnr`), + KEY `keinerechnung` (`keinerechnung`), + KEY `versandart` (`versandart`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferschein_position` -- +DROP TABLE IF EXISTS `lieferschein_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferschein_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `lieferschein` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `seriennummer` varchar(255) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `bemerkung` text NOT NULL, - `geliefert` decimal(14,4) NOT NULL, - `abgerechnet` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `explodiert_parent_artikel` int(11) NOT NULL DEFAULT '0', - `einheit` varchar(255) NOT NULL DEFAULT '', - `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', - `herkunftsland` varchar(128) NOT NULL DEFAULT '0', - `artikelnummerkunde` varchar(128) NOT NULL DEFAULT '', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `auftrag_position_id` int(11) NOT NULL DEFAULT '0', - `kostenlos` tinyint(1) NOT NULL DEFAULT '0', - `lagertext` varchar(255) NOT NULL DEFAULT '', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `explodiert_parent` int(11) NOT NULL DEFAULT '0', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `zolleinzelwert` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `zollgesamtwert` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `zollwaehrung` varchar(3) NOT NULL DEFAULT '', - `zolleinzelgewicht` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `zollgesamtgewicht` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `nve` varchar(255) NOT NULL DEFAULT '', - `packstueck` varchar(255) NOT NULL DEFAULT '', - `vpemenge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `einzelstueckmenge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `ausblenden_im_pdf` tinyint(1) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `lieferschein` (`lieferschein`), - KEY `artikel` (`artikel`), - KEY `auftrag_position_id` (`auftrag_position_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferschein_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `lieferschein` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `seriennummer` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `bemerkung` text NOT NULL, + `geliefert` decimal(14,4) NOT NULL, + `abgerechnet` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `explodiert_parent_artikel` int(11) NOT NULL DEFAULT 0, + `einheit` varchar(255) NOT NULL, + `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', + `herkunftsland` varchar(128) NOT NULL DEFAULT '0', + `artikelnummerkunde` varchar(128) NOT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `auftrag_position_id` int(11) NOT NULL DEFAULT 0, + `kostenlos` tinyint(1) NOT NULL DEFAULT 0, + `lagertext` varchar(255) NOT NULL, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `explodiert_parent` int(11) NOT NULL DEFAULT 0, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `zolleinzelwert` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `zollgesamtwert` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `zollwaehrung` varchar(3) NOT NULL, + `zolleinzelgewicht` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `zollgesamtgewicht` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `nve` varchar(255) NOT NULL, + `packstueck` varchar(255) NOT NULL, + `vpemenge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `einzelstueckmenge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `ausblenden_im_pdf` tinyint(1) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `lieferschein` (`lieferschein`), + KEY `artikel` (`artikel`), + KEY `auftrag_position_id` (`auftrag_position_id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferschein_protokoll` -- +DROP TABLE IF EXISTS `lieferschein_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferschein_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lieferschein` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `lieferschein` (`lieferschein`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferschein_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lieferschein` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `lieferschein` (`lieferschein`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferschwelle` -- +DROP TABLE IF EXISTS `lieferschwelle`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferschwelle` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ursprungsland` varchar(255) NOT NULL, - `empfaengerland` varchar(255) NOT NULL, - `lieferschwelleeur` decimal(16,2) NOT NULL DEFAULT '0.00', - `ustid` varchar(255) NOT NULL, - `steuersatznormal` decimal(10,2) NOT NULL, - `steuersatzermaessigt` decimal(10,2) NOT NULL, - `steuersatzspezial` decimal(10,2) NOT NULL, - `steuersatzspezialursprungsland` decimal(10,2) NOT NULL, - `erloeskontonormal` int(11) NOT NULL, - `erloeskontoermaessigt` int(11) NOT NULL, - `erloeskontobefreit` int(11) NOT NULL, - `ueberschreitungsdatum` date NOT NULL, - `aktuellerumsatz` decimal(16,2) NOT NULL DEFAULT '0.00', - `preiseanpassen` tinyint(1) NOT NULL DEFAULT '0', - `verwenden` tinyint(1) NOT NULL DEFAULT '0', - `jahr` varchar(4) DEFAULT NULL, - `use_storage` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `empfaengerland` (`empfaengerland`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferschwelle` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ursprungsland` varchar(255) NOT NULL, + `empfaengerland` varchar(255) NOT NULL, + `lieferschwelleeur` decimal(16,2) NOT NULL DEFAULT 0.00, + `ustid` varchar(255) NOT NULL, + `steuersatznormal` decimal(10,2) NOT NULL, + `steuersatzermaessigt` decimal(10,2) NOT NULL, + `steuersatzspezial` decimal(10,2) NOT NULL, + `steuersatzspezialursprungsland` decimal(10,2) NOT NULL, + `erloeskontonormal` int(11) NOT NULL, + `erloeskontoermaessigt` int(11) NOT NULL, + `erloeskontobefreit` int(11) NOT NULL, + `ueberschreitungsdatum` date NOT NULL, + `aktuellerumsatz` decimal(16,2) NOT NULL DEFAULT 0.00, + `preiseanpassen` tinyint(1) NOT NULL DEFAULT 0, + `verwenden` tinyint(1) NOT NULL DEFAULT 0, + `jahr` varchar(4) DEFAULT NULL, + `use_storage` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `empfaengerland` (`empfaengerland`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lieferschwelle_artikel` -- +DROP TABLE IF EXISTS `lieferschwelle_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `lieferschwelle_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `empfaengerland` varchar(255) NOT NULL, - `steuersatz` decimal(10,2) NOT NULL, - `bemerkung` varchar(255) NOT NULL, - `aktiv` tinyint(4) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `empfaengerland` (`empfaengerland`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `lieferschwelle_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `empfaengerland` varchar(255) NOT NULL, + `steuersatz` decimal(10,2) NOT NULL, + `bemerkung` varchar(255) NOT NULL, + `aktiv` tinyint(4) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `empfaengerland` (`empfaengerland`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `liefertermine_positionen` -- +DROP TABLE IF EXISTS `liefertermine_positionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `liefertermine_positionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bestellung` int(11) NOT NULL DEFAULT '0', - `bestellung_position` int(11) NOT NULL DEFAULT '0', - `menge` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `lieferdatum` date DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `liefertermine_positionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bestellung` int(11) NOT NULL DEFAULT 0, + `bestellung_position` int(11) NOT NULL DEFAULT 0, + `menge` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `lieferdatum` date DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `linkeditor` -- +DROP TABLE IF EXISTS `linkeditor`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `linkeditor` ( - `id` int(4) NOT NULL AUTO_INCREMENT, - `rule` varchar(1024) NOT NULL, - `replacewith` varchar(1024) NOT NULL, - `active` varchar(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `linkeditor` ( + `id` int(4) NOT NULL AUTO_INCREMENT, + `rule` varchar(1024) NOT NULL, + `replacewith` varchar(1024) NOT NULL, + `active` varchar(1) NOT NULL DEFAULT '1', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `log` -- +DROP TABLE IF EXISTS `log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `log_time` datetime DEFAULT NULL, - `level` varchar(16) DEFAULT NULL, - `message` text, - `class` varchar(255) DEFAULT NULL, - `method` varchar(64) DEFAULT NULL, - `line` int(11) unsigned DEFAULT NULL, - `origin_type` varchar(64) DEFAULT NULL, - `origin_detail` varchar(255) DEFAULT NULL, - `dump` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `log_time` datetime(3) DEFAULT NULL, + `level` varchar(16) DEFAULT NULL, + `message` text DEFAULT NULL, + `class` varchar(255) DEFAULT NULL, + `method` varchar(64) DEFAULT NULL, + `line` int(11) unsigned DEFAULT NULL, + `origin_type` varchar(64) DEFAULT NULL, + `origin_detail` varchar(255) DEFAULT NULL, + `dump` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `logdatei` -- +DROP TABLE IF EXISTS `logdatei`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logdatei` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `befehl` varchar(255) NOT NULL, - `statement` varchar(255) NOT NULL, - `app` blob NOT NULL, - `zeit` datetime NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `logdatei` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `befehl` varchar(255) NOT NULL, + `statement` varchar(255) NOT NULL, + `app` blob NOT NULL, + `zeit` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `logfile` -- +DROP TABLE IF EXISTS `logfile`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logfile` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `meldung` text NOT NULL, - `dump` text NOT NULL, - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `funktionsname` varchar(64) NOT NULL DEFAULT '', - `datum` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `logfile` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `meldung` text NOT NULL, + `dump` text NOT NULL, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `bearbeiter` varchar(64) NOT NULL, + `funktionsname` varchar(64) NOT NULL, + `datum` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `magento2_extended_mapping` -- +DROP TABLE IF EXISTS `magento2_extended_mapping`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `magento2_extended_mapping` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopexport_id` int(11) NOT NULL, - `magento2_extended_mapping_name` varchar(255) NOT NULL DEFAULT '', - `magento2_extended_mapping_type` varchar(255) DEFAULT '', - `magento2_extended_mapping_parameter` varchar(255) DEFAULT '', - `magento2_extended_mapping_visible` tinyint(1) NOT NULL DEFAULT '0', - `magento2_extended_mapping_filterable` tinyint(1) NOT NULL DEFAULT '0', - `magento2_extended_mapping_searchable` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shopexport_id` (`shopexport_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `magento2_extended_mapping` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopexport_id` int(11) NOT NULL, + `magento2_extended_mapping_name` varchar(255) NOT NULL, + `magento2_extended_mapping_type` varchar(255) DEFAULT NULL, + `magento2_extended_mapping_parameter` varchar(255) DEFAULT NULL, + `magento2_extended_mapping_visible` tinyint(1) NOT NULL DEFAULT 0, + `magento2_extended_mapping_filterable` tinyint(1) NOT NULL DEFAULT 0, + `magento2_extended_mapping_searchable` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shopexport_id` (`shopexport_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `mahnwesen` +-- + +DROP TABLE IF EXISTS `mahnwesen`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `mahnwesen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `tage` int(11) NOT NULL, + `gebuehr` decimal(10,2) NOT NULL, + `mail` int(11) NOT NULL, + `druck` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mailausgang` -- +DROP TABLE IF EXISTS `mailausgang`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mailausgang` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `subject` varchar(255) NOT NULL DEFAULT '', - `body` longblob NOT NULL, - `from` varchar(255) NOT NULL DEFAULT '', - `to` varchar(255) NOT NULL DEFAULT '', - `status` varchar(255) NOT NULL DEFAULT '0', - `art` int(10) NOT NULL DEFAULT '0', - `zeit` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mailausgang` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `subject` varchar(255) NOT NULL, + `body` longblob NOT NULL, + `from` varchar(255) NOT NULL, + `to` varchar(255) NOT NULL, + `status` varchar(255) NOT NULL DEFAULT '0', + `art` int(10) NOT NULL DEFAULT 0, + `zeit` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `managementboard_liquiditaet` -- +DROP TABLE IF EXISTS `managementboard_liquiditaet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `managementboard_liquiditaet` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(200) NOT NULL DEFAULT '', - `datum` date DEFAULT NULL, - `enddatum` date DEFAULT NULL, - `art` int(10) NOT NULL DEFAULT '0', - `betrag` decimal(18,2) NOT NULL DEFAULT '0.00', - `parent` int(10) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `managementboard_liquiditaet` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(200) NOT NULL, + `datum` date DEFAULT NULL, + `enddatum` date DEFAULT NULL, + `art` int(10) NOT NULL DEFAULT 0, + `betrag` decimal(18,2) NOT NULL DEFAULT 0.00, + `parent` int(10) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `managementboard_liquiditaet_datum` -- +DROP TABLE IF EXISTS `managementboard_liquiditaet_datum`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `managementboard_liquiditaet_datum` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `doctype` varchar(200) NOT NULL DEFAULT '', - `parameter` int(10) NOT NULL DEFAULT '0', - `datum` date DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `managementboard_liquiditaet_datum` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `doctype` varchar(200) NOT NULL, + `parameter` int(10) NOT NULL DEFAULT 0, + `datum` date DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mandatory_field` -- +DROP TABLE IF EXISTS `mandatory_field`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mandatory_field` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(255) NOT NULL DEFAULT '', - `action` varchar(255) NOT NULL DEFAULT '', - `field_id` varchar(255) NOT NULL DEFAULT '', - `error_message` varchar(255) NOT NULL DEFAULT '', - `type` varchar(255) NOT NULL DEFAULT '', - `min_length` int(11) NOT NULL DEFAULT '0', - `max_length` int(11) NOT NULL DEFAULT '0', - `mandatory` tinyint(1) NOT NULL DEFAULT '0', - `comparator` varchar(15) NOT NULL DEFAULT '', - `compareto` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `module` (`module`), - KEY `action` (`action`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mandatory_field` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(255) NOT NULL, + `action` varchar(255) NOT NULL, + `field_id` varchar(255) NOT NULL, + `error_message` varchar(255) NOT NULL, + `type` varchar(255) NOT NULL, + `min_length` int(11) NOT NULL DEFAULT 0, + `max_length` int(11) NOT NULL DEFAULT 0, + `mandatory` tinyint(1) NOT NULL DEFAULT 0, + `comparator` varchar(15) NOT NULL, + `compareto` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `module` (`module`), + KEY `action` (`action`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `massenbearbeitung` -- +DROP TABLE IF EXISTS `massenbearbeitung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `massenbearbeitung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `feld` varchar(255) NOT NULL DEFAULT '', - `wert` text NOT NULL, - `subjekt` varchar(255) NOT NULL, - `objekt` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `massenbearbeitung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL, + `feld` varchar(255) NOT NULL, + `wert` text NOT NULL, + `subjekt` varchar(255) NOT NULL, + `objekt` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrix_article_options_translation` -- +DROP TABLE IF EXISTS `matrix_article_options_translation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrix_article_options_translation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `matrix_article_id` int(11) NOT NULL, - `language_from` varchar(255) NOT NULL, - `name_from` varchar(255) NOT NULL, - `name_external_from` varchar(255) NOT NULL, - `language_to` varchar(255) NOT NULL, - `name_to` varchar(255) NOT NULL, - `name_external_to` varchar(255) NOT NULL, - `articlenumber_suffix_from` varchar(16) NOT NULL, - `articlenumber_suffix_to` varchar(16) NOT NULL, - `active` tinyint(1) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrix_article_options_translation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `matrix_article_id` int(11) NOT NULL, + `language_from` varchar(255) NOT NULL, + `name_from` varchar(255) NOT NULL, + `name_external_from` varchar(255) NOT NULL, + `language_to` varchar(255) NOT NULL, + `name_to` varchar(255) NOT NULL, + `name_external_to` varchar(255) NOT NULL, + `articlenumber_suffix_from` varchar(16) NOT NULL, + `articlenumber_suffix_to` varchar(16) NOT NULL, + `active` tinyint(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrix_article_translation` -- +DROP TABLE IF EXISTS `matrix_article_translation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrix_article_translation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `language_from` varchar(255) NOT NULL, - `name_from` varchar(255) NOT NULL, - `name_external_from` varchar(255) NOT NULL, - `language_to` varchar(255) NOT NULL, - `name_to` varchar(255) NOT NULL, - `name_external_to` varchar(255) NOT NULL, - `project` int(11) NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrix_article_translation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `language_from` varchar(255) NOT NULL, + `name_from` varchar(255) NOT NULL, + `name_external_from` varchar(255) NOT NULL, + `language_to` varchar(255) NOT NULL, + `name_to` varchar(255) NOT NULL, + `name_external_to` varchar(255) NOT NULL, + `project` int(11) NOT NULL, + `active` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrix_list_view` -- +DROP TABLE IF EXISTS `matrix_list_view`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrix_list_view` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `matrix_article_id` int(11) NOT NULL DEFAULT '0', - `article_id` int(11) NOT NULL DEFAULT '0', - `article_number` varchar(64) NOT NULL DEFAULT '', - `hash` varchar(255) NOT NULL DEFAULT '', - `dimension1` varchar(64) NOT NULL DEFAULT '', - `option_id1` int(11) NOT NULL DEFAULT '0', - `dimension2` varchar(64) NOT NULL DEFAULT '', - `option_id2` int(11) NOT NULL DEFAULT '0', - `dimension3` varchar(64) NOT NULL DEFAULT '', - `option_id3` int(11) NOT NULL DEFAULT '0', - `dimension4` varchar(64) NOT NULL DEFAULT '', - `option_id4` int(11) NOT NULL DEFAULT '0', - `dimension5` varchar(64) NOT NULL DEFAULT '', - `option_id5` int(11) NOT NULL DEFAULT '0', - `dimension6` varchar(64) NOT NULL DEFAULT '', - `option_id6` int(11) NOT NULL DEFAULT '0', - `dimension7` varchar(64) NOT NULL DEFAULT '', - `option_id7` int(11) NOT NULL DEFAULT '0', - `dimension8` varchar(64) NOT NULL DEFAULT '', - `option_id8` int(11) NOT NULL DEFAULT '0', - `dimension9` varchar(64) NOT NULL DEFAULT '', - `option_id9` int(11) NOT NULL DEFAULT '0', - `dimension10` varchar(64) NOT NULL DEFAULT '', - `option_id10` int(11) NOT NULL DEFAULT '0', - `dimension11` varchar(64) NOT NULL DEFAULT '', - `option_id11` int(11) NOT NULL DEFAULT '0', - `dimension12` varchar(64) NOT NULL DEFAULT '', - `option_id12` int(11) NOT NULL DEFAULT '0', - `dimension13` varchar(64) NOT NULL DEFAULT '', - `option_id13` int(11) NOT NULL DEFAULT '0', - `dimension14` varchar(64) NOT NULL DEFAULT '', - `option_id14` int(11) NOT NULL DEFAULT '0', - `dimension15` varchar(64) NOT NULL DEFAULT '', - `option_id15` int(11) NOT NULL DEFAULT '0', - `dimension16` varchar(64) NOT NULL DEFAULT '', - `option_id16` int(11) NOT NULL DEFAULT '0', - `dimension17` varchar(64) NOT NULL DEFAULT '', - `option_id17` int(11) NOT NULL DEFAULT '0', - `dimension18` varchar(64) NOT NULL DEFAULT '', - `option_id18` int(11) NOT NULL DEFAULT '0', - `dimension19` varchar(64) NOT NULL DEFAULT '', - `option_id19` int(11) NOT NULL DEFAULT '0', - `dimension20` varchar(64) NOT NULL DEFAULT '', - `option_id20` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `matrix_article_id` (`matrix_article_id`,`hash`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrix_list_view` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `matrix_article_id` int(11) NOT NULL DEFAULT 0, + `article_id` int(11) NOT NULL DEFAULT 0, + `article_number` varchar(64) NOT NULL, + `hash` varchar(255) NOT NULL, + `dimension1` varchar(64) NOT NULL, + `option_id1` int(11) NOT NULL DEFAULT 0, + `dimension2` varchar(64) NOT NULL, + `option_id2` int(11) NOT NULL DEFAULT 0, + `dimension3` varchar(64) NOT NULL, + `option_id3` int(11) NOT NULL DEFAULT 0, + `dimension4` varchar(64) NOT NULL, + `option_id4` int(11) NOT NULL DEFAULT 0, + `dimension5` varchar(64) NOT NULL, + `option_id5` int(11) NOT NULL DEFAULT 0, + `dimension6` varchar(64) NOT NULL, + `option_id6` int(11) NOT NULL DEFAULT 0, + `dimension7` varchar(64) NOT NULL, + `option_id7` int(11) NOT NULL DEFAULT 0, + `dimension8` varchar(64) NOT NULL, + `option_id8` int(11) NOT NULL DEFAULT 0, + `dimension9` varchar(64) NOT NULL, + `option_id9` int(11) NOT NULL DEFAULT 0, + `dimension10` varchar(64) NOT NULL, + `option_id10` int(11) NOT NULL DEFAULT 0, + `dimension11` varchar(64) NOT NULL, + `option_id11` int(11) NOT NULL DEFAULT 0, + `dimension12` varchar(64) NOT NULL, + `option_id12` int(11) NOT NULL DEFAULT 0, + `dimension13` varchar(64) NOT NULL, + `option_id13` int(11) NOT NULL DEFAULT 0, + `dimension14` varchar(64) NOT NULL, + `option_id14` int(11) NOT NULL DEFAULT 0, + `dimension15` varchar(64) NOT NULL, + `option_id15` int(11) NOT NULL DEFAULT 0, + `dimension16` varchar(64) NOT NULL, + `option_id16` int(11) NOT NULL DEFAULT 0, + `dimension17` varchar(64) NOT NULL, + `option_id17` int(11) NOT NULL DEFAULT 0, + `dimension18` varchar(64) NOT NULL, + `option_id18` int(11) NOT NULL DEFAULT 0, + `dimension19` varchar(64) NOT NULL, + `option_id19` int(11) NOT NULL DEFAULT 0, + `dimension20` varchar(64) NOT NULL, + `option_id20` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `matrix_article_id` (`matrix_article_id`,`hash`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrix_list_view_status` -- +DROP TABLE IF EXISTS `matrix_list_view_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrix_list_view_status` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `matrix_article_id` int(11) NOT NULL DEFAULT '0', - `toupdate` tinyint(1) NOT NULL DEFAULT '1', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `matrix_article_id` (`matrix_article_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrix_list_view_status` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `matrix_article_id` int(11) NOT NULL DEFAULT 0, + `toupdate` tinyint(1) NOT NULL DEFAULT 1, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + UNIQUE KEY `matrix_article_id` (`matrix_article_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrixprodukt_eigenschaftengruppen` -- +DROP TABLE IF EXISTS `matrixprodukt_eigenschaftengruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrixprodukt_eigenschaftengruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `name` varchar(255) NOT NULL DEFAULT '', - `name_ext` varchar(255) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `erstellt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `pflicht` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrixprodukt_eigenschaftengruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `name` varchar(255) NOT NULL, + `name_ext` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) NOT NULL, + `erstellt` timestamp NOT NULL DEFAULT current_timestamp(), + `pflicht` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrixprodukt_eigenschaftengruppen_artikel` -- +DROP TABLE IF EXISTS `matrixprodukt_eigenschaftengruppen_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrixprodukt_eigenschaftengruppen_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `name` varchar(255) NOT NULL DEFAULT '', - `name_ext` varchar(255) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `erstellt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `sort` int(11) NOT NULL DEFAULT '0', - `pflicht` int(11) NOT NULL DEFAULT '0', - `oeffentlich` int(11) NOT NULL DEFAULT '0', - `typ` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrixprodukt_eigenschaftengruppen_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `name` varchar(255) NOT NULL, + `name_ext` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) NOT NULL, + `erstellt` timestamp NOT NULL DEFAULT current_timestamp(), + `sort` int(11) NOT NULL DEFAULT 0, + `pflicht` int(11) NOT NULL DEFAULT 0, + `oeffentlich` int(11) NOT NULL DEFAULT 0, + `typ` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrixprodukt_eigenschaftenoptionen` -- +DROP TABLE IF EXISTS `matrixprodukt_eigenschaftenoptionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrixprodukt_eigenschaftenoptionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `gruppe` int(11) NOT NULL DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `name` varchar(255) NOT NULL DEFAULT '', - `name_ext` varchar(255) NOT NULL DEFAULT '', - `sort` int(11) NOT NULL DEFAULT '0', - `erstellt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `artikelnummer` varchar(32) NOT NULL DEFAULT '', - `articlenumber_suffix` varchar(16) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrixprodukt_eigenschaftenoptionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `gruppe` int(11) NOT NULL DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `name` varchar(255) NOT NULL, + `name_ext` varchar(255) NOT NULL, + `sort` int(11) NOT NULL DEFAULT 0, + `erstellt` timestamp NOT NULL DEFAULT current_timestamp(), + `bearbeiter` varchar(255) NOT NULL, + `artikelnummer` varchar(32) NOT NULL, + `articlenumber_suffix` varchar(16) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrixprodukt_eigenschaftenoptionen_artikel` -- +DROP TABLE IF EXISTS `matrixprodukt_eigenschaftenoptionen_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrixprodukt_eigenschaftenoptionen_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `matrixprodukt_eigenschaftenoptionen` int(11) NOT NULL DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `name` varchar(255) NOT NULL DEFAULT '', - `name_ext` varchar(255) NOT NULL DEFAULT '', - `sort` int(11) NOT NULL DEFAULT '0', - `erstellt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `gruppe` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `artikelnummer` varchar(32) NOT NULL DEFAULT '', - `articlenumber_suffix` varchar(16) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `gruppe` (`gruppe`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrixprodukt_eigenschaftenoptionen_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `matrixprodukt_eigenschaftenoptionen` int(11) NOT NULL DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `name` varchar(255) NOT NULL, + `name_ext` varchar(255) NOT NULL, + `sort` int(11) NOT NULL DEFAULT 0, + `erstellt` timestamp NOT NULL DEFAULT current_timestamp(), + `gruppe` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) NOT NULL, + `artikelnummer` varchar(32) NOT NULL, + `articlenumber_suffix` varchar(16) NOT NULL, + PRIMARY KEY (`id`), + KEY `gruppe` (`gruppe`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `matrixprodukt_optionen_zu_artikel` -- +DROP TABLE IF EXISTS `matrixprodukt_optionen_zu_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `matrixprodukt_optionen_zu_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `option_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `option_id` (`option_id`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `matrixprodukt_optionen_zu_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `option_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `option_id` (`option_id`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `maximum_discount` -- +DROP TABLE IF EXISTS `maximum_discount`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `maximum_discount` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `address_id` int(11) NOT NULL DEFAULT '0', - `discount` decimal(14,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `maximum_discount` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `address_id` int(11) NOT NULL DEFAULT 0, + `discount` decimal(14,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mhd_log` -- +DROP TABLE IF EXISTS `mhd_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mhd_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `eingang` int(1) NOT NULL DEFAULT '0', - `mhddatum` date DEFAULT NULL, - `internebemerkung` text NOT NULL, - `zeit` datetime DEFAULT NULL, - `adresse_mitarbeiter` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `doctype` varchar(32) NOT NULL DEFAULT '', - `doctypeid` int(11) NOT NULL DEFAULT '0', - `bestand` decimal(14,4) NOT NULL DEFAULT '0.0000', - `charge` varchar(255) NOT NULL DEFAULT '', - `is_interim` tinyint(1) NOT NULL DEFAULT '0', - `storage_movement_id` int(11) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `doctypeid` (`doctypeid`), - KEY `doctype` (`doctype`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mhd_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `eingang` int(1) NOT NULL DEFAULT 0, + `mhddatum` date DEFAULT NULL, + `internebemerkung` text NOT NULL, + `zeit` datetime DEFAULT NULL, + `adresse_mitarbeiter` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `doctype` varchar(32) NOT NULL, + `doctypeid` int(11) NOT NULL DEFAULT 0, + `bestand` decimal(14,4) NOT NULL DEFAULT 0.0000, + `charge` varchar(255) NOT NULL, + `is_interim` tinyint(1) NOT NULL DEFAULT 0, + `storage_movement_id` int(11) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `doctypeid` (`doctypeid`), + KEY `doctype` (`doctype`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mitarbeiterzeiterfassung` -- +DROP TABLE IF EXISTS `mitarbeiterzeiterfassung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mitarbeiterzeiterfassung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `kuerzel` varchar(50) DEFAULT '', - `von` datetime DEFAULT NULL, - `bis` datetime DEFAULT NULL, - `dauer` int(11) DEFAULT '0', - `stechuhrvon` datetime DEFAULT NULL, - `stechuhrbis` datetime DEFAULT NULL, - `stechuhrvonid` int(11) DEFAULT '0', - `stechuhrbisid` int(11) DEFAULT '0', - `stechuhrdauer` int(11) DEFAULT '0', - `buchungsart` varchar(100) DEFAULT '', - `aktiv` tinyint(1) DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mitarbeiterzeiterfassung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `kuerzel` varchar(50) DEFAULT NULL, + `von` datetime DEFAULT NULL, + `bis` datetime DEFAULT NULL, + `dauer` int(11) DEFAULT 0, + `stechuhrvon` datetime DEFAULT NULL, + `stechuhrbis` datetime DEFAULT NULL, + `stechuhrvonid` int(11) DEFAULT 0, + `stechuhrbisid` int(11) DEFAULT 0, + `stechuhrdauer` int(11) DEFAULT 0, + `buchungsart` varchar(100) DEFAULT NULL, + `aktiv` tinyint(1) DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mitarbeiterzeiterfassung_einstellungen` -- +DROP TABLE IF EXISTS `mitarbeiterzeiterfassung_einstellungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mitarbeiterzeiterfassung_einstellungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `erstellt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `vorlagemo` int(11) NOT NULL DEFAULT '0', - `vorlagedi` int(11) NOT NULL DEFAULT '0', - `vorlagemi` int(11) NOT NULL DEFAULT '0', - `vorlagedo` int(11) NOT NULL DEFAULT '0', - `vorlagefr` int(11) NOT NULL DEFAULT '0', - `vorlagesa` int(11) NOT NULL DEFAULT '0', - `vorlageso` int(11) NOT NULL DEFAULT '0', - `rundenkommen` varchar(48) NOT NULL DEFAULT 'nicht_runden', - `rundengehen` varchar(48) NOT NULL DEFAULT 'nicht_runden', - `pauseabziehen` tinyint(1) NOT NULL DEFAULT '0', - `pausedauer` int(11) NOT NULL DEFAULT '0', - `pauseab1` int(11) NOT NULL DEFAULT '0', - `pausedauer1` int(11) NOT NULL DEFAULT '0', - `pauseab2` int(11) NOT NULL DEFAULT '0', - `pausedauer2` int(11) NOT NULL DEFAULT '0', - `pauseab3` int(11) NOT NULL DEFAULT '0', - `pausedauer3` int(11) NOT NULL DEFAULT '0', - `urlaubimjahr` decimal(6,2) NOT NULL DEFAULT '0.00', - `minutenprotag` int(11) NOT NULL DEFAULT '0', - `resturlaub2015` decimal(6,2) NOT NULL DEFAULT '0.00', - `resturlaub2016` decimal(6,2) NOT NULL DEFAULT '0.00', - `resturlaub2017` decimal(6,2) NOT NULL DEFAULT '0.00', - `urlaubimjahr2017` decimal(6,2) NOT NULL DEFAULT '0.00', - `urlaubimjahr2018` decimal(6,2) NOT NULL DEFAULT '0.00', - `standardstartzeit` time NOT NULL DEFAULT '08:00:00', - `pauserunden` int(11) NOT NULL DEFAULT '5', - `minstartzeit` tinyint(1) NOT NULL DEFAULT '0', - `pauseaddieren` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mitarbeiterzeiterfassung_einstellungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) NOT NULL, + `erstellt` timestamp NOT NULL DEFAULT current_timestamp(), + `vorlagemo` int(11) NOT NULL DEFAULT 0, + `vorlagedi` int(11) NOT NULL DEFAULT 0, + `vorlagemi` int(11) NOT NULL DEFAULT 0, + `vorlagedo` int(11) NOT NULL DEFAULT 0, + `vorlagefr` int(11) NOT NULL DEFAULT 0, + `vorlagesa` int(11) NOT NULL DEFAULT 0, + `vorlageso` int(11) NOT NULL DEFAULT 0, + `rundenkommen` varchar(48) NOT NULL DEFAULT 'nicht_runden', + `rundengehen` varchar(48) NOT NULL DEFAULT 'nicht_runden', + `pauseabziehen` tinyint(1) NOT NULL DEFAULT 0, + `pausedauer` int(11) NOT NULL DEFAULT 0, + `pauseab1` int(11) NOT NULL DEFAULT 0, + `pausedauer1` int(11) NOT NULL DEFAULT 0, + `pauseab2` int(11) NOT NULL DEFAULT 0, + `pausedauer2` int(11) NOT NULL DEFAULT 0, + `pauseab3` int(11) NOT NULL DEFAULT 0, + `pausedauer3` int(11) NOT NULL DEFAULT 0, + `urlaubimjahr` decimal(6,2) NOT NULL DEFAULT 0.00, + `minutenprotag` int(11) NOT NULL DEFAULT 0, + `resturlaub2015` decimal(6,2) NOT NULL DEFAULT 0.00, + `resturlaub2016` decimal(6,2) NOT NULL DEFAULT 0.00, + `resturlaub2017` decimal(6,2) NOT NULL DEFAULT 0.00, + `urlaubimjahr2017` decimal(6,2) NOT NULL DEFAULT 0.00, + `urlaubimjahr2018` decimal(6,2) NOT NULL DEFAULT 0.00, + `standardstartzeit` time NOT NULL DEFAULT '08:00:00', + `pauserunden` int(11) NOT NULL DEFAULT 5, + `minstartzeit` tinyint(1) NOT NULL DEFAULT 0, + `pauseaddieren` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mitarbeiterzeiterfassung_sollstunden` -- +DROP TABLE IF EXISTS `mitarbeiterzeiterfassung_sollstunden`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mitarbeiterzeiterfassung_sollstunden` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `datum` date DEFAULT NULL, - `minuten` int(11) NOT NULL DEFAULT '0', - `istminuten` int(11) NOT NULL DEFAULT '0', - `berechnetminuten` int(11) NOT NULL DEFAULT '0', - `urlaubminuten` int(11) NOT NULL DEFAULT '0', - `unbezahltminuten` int(11) NOT NULL DEFAULT '0', - `krankminuten` int(11) NOT NULL DEFAULT '0', - `kuerzel` varchar(32) NOT NULL DEFAULT '', - `kommentar` varchar(255) NOT NULL DEFAULT '', - `standardstartzeit` time DEFAULT NULL, - `minstartzeit` tinyint(1) DEFAULT NULL, - `rundenkommen` varchar(48) DEFAULT NULL, - `rundengehen` varchar(48) DEFAULT NULL, - `pauseabziehen` tinyint(1) DEFAULT NULL, - `pausedauer` int(11) DEFAULT NULL, - `pauseab1` int(11) DEFAULT NULL, - `pausedauer1` int(11) DEFAULT NULL, - `pauseab2` int(11) DEFAULT NULL, - `pausedauer2` int(11) DEFAULT NULL, - `pauseab3` int(11) DEFAULT NULL, - `pausedauer3` int(11) DEFAULT NULL, - `minutenprotag` int(11) DEFAULT NULL, - `pauserunden` int(11) DEFAULT NULL, - `stundenberechnet` tinyint(1) NOT NULL DEFAULT '0', - `stunden` decimal(6,2) NOT NULL DEFAULT '0.00', - `pauseaddieren` tinyint(1) DEFAULT NULL, - `vacation_request_token` varchar(32) NOT NULL DEFAULT '', - `internal_comment` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`), - KEY `datum` (`datum`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mitarbeiterzeiterfassung_sollstunden` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `datum` date DEFAULT NULL, + `minuten` int(11) NOT NULL DEFAULT 0, + `istminuten` int(11) NOT NULL DEFAULT 0, + `berechnetminuten` int(11) NOT NULL DEFAULT 0, + `urlaubminuten` int(11) NOT NULL DEFAULT 0, + `unbezahltminuten` int(11) NOT NULL DEFAULT 0, + `krankminuten` int(11) NOT NULL DEFAULT 0, + `kuerzel` varchar(32) NOT NULL, + `kommentar` varchar(255) NOT NULL, + `standardstartzeit` time DEFAULT NULL, + `minstartzeit` tinyint(1) DEFAULT NULL, + `rundenkommen` varchar(48) DEFAULT NULL, + `rundengehen` varchar(48) DEFAULT NULL, + `pauseabziehen` tinyint(1) DEFAULT NULL, + `pausedauer` int(11) DEFAULT NULL, + `pauseab1` int(11) DEFAULT NULL, + `pausedauer1` int(11) DEFAULT NULL, + `pauseab2` int(11) DEFAULT NULL, + `pausedauer2` int(11) DEFAULT NULL, + `pauseab3` int(11) DEFAULT NULL, + `pausedauer3` int(11) DEFAULT NULL, + `minutenprotag` int(11) DEFAULT NULL, + `pauserunden` int(11) DEFAULT NULL, + `stundenberechnet` tinyint(1) NOT NULL DEFAULT 0, + `stunden` decimal(6,2) NOT NULL DEFAULT 0.00, + `pauseaddieren` tinyint(1) DEFAULT NULL, + `vacation_request_token` varchar(32) NOT NULL, + `internal_comment` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`), + KEY `datum` (`datum`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mlm_abrechnung` -- +DROP TABLE IF EXISTS `mlm_abrechnung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mlm_abrechnung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `von` date DEFAULT NULL, - `bis` date DEFAULT NULL, - `betrag_netto` decimal(20,10) NOT NULL, - `punkte` decimal(10,2) NOT NULL DEFAULT '0.00', - `bonuspunkte` decimal(10,2) NOT NULL DEFAULT '0.00', - `anzahl` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mlm_abrechnung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `von` date DEFAULT NULL, + `bis` date DEFAULT NULL, + `betrag_netto` decimal(20,10) NOT NULL, + `punkte` decimal(10,2) NOT NULL DEFAULT 0.00, + `bonuspunkte` decimal(10,2) NOT NULL DEFAULT 0.00, + `anzahl` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mlm_abrechnung_adresse` -- +DROP TABLE IF EXISTS `mlm_abrechnung_adresse`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mlm_abrechnung_adresse` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `belegnr` int(11) NOT NULL DEFAULT '0', - `betrag_netto` decimal(20,10) NOT NULL, - `betrag_ist` decimal(20,10) NOT NULL, - `mitsteuer` int(1) DEFAULT NULL, - `mlmabrechnung` varchar(64) DEFAULT NULL, - `alteposition` varchar(64) DEFAULT NULL, - `neueposition` varchar(64) DEFAULT NULL, - `erreichteposition` varchar(64) DEFAULT NULL, - `abrechnung` int(11) NOT NULL DEFAULT '0', - `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', - `punkte` decimal(10,2) NOT NULL DEFAULT '0.00', - `bonuspunkte` decimal(10,2) NOT NULL DEFAULT '0.00', - `rechnung_name` varchar(64) DEFAULT NULL, - `rechnung_strasse` varchar(64) DEFAULT NULL, - `rechnung_ort` varchar(64) DEFAULT NULL, - `rechnung_plz` varchar(64) DEFAULT NULL, - `rechnung_land` varchar(64) DEFAULT NULL, - `steuernummer` varchar(64) DEFAULT NULL, - `steuersatz` decimal(10,2) NOT NULL DEFAULT '0.00', - `projekt` int(11) NOT NULL DEFAULT '0', - `bezahlt` int(1) NOT NULL DEFAULT '0', - `bezahlt_bearbeiter` varchar(64) NOT NULL DEFAULT '', - `bezahlt_datum` date DEFAULT NULL, - `bezahlt_status` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mlm_abrechnung_adresse` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `belegnr` int(11) NOT NULL DEFAULT 0, + `betrag_netto` decimal(20,10) NOT NULL, + `betrag_ist` decimal(20,10) NOT NULL, + `mitsteuer` int(1) DEFAULT NULL, + `mlmabrechnung` varchar(64) DEFAULT NULL, + `alteposition` varchar(64) DEFAULT NULL, + `neueposition` varchar(64) DEFAULT NULL, + `erreichteposition` varchar(64) DEFAULT NULL, + `abrechnung` int(11) NOT NULL DEFAULT 0, + `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', + `punkte` decimal(10,2) NOT NULL DEFAULT 0.00, + `bonuspunkte` decimal(10,2) NOT NULL DEFAULT 0.00, + `rechnung_name` varchar(64) DEFAULT NULL, + `rechnung_strasse` varchar(64) DEFAULT NULL, + `rechnung_ort` varchar(64) DEFAULT NULL, + `rechnung_plz` varchar(64) DEFAULT NULL, + `rechnung_land` varchar(64) DEFAULT NULL, + `steuernummer` varchar(64) DEFAULT NULL, + `steuersatz` decimal(10,2) NOT NULL DEFAULT 0.00, + `projekt` int(11) NOT NULL DEFAULT 0, + `bezahlt` int(1) NOT NULL DEFAULT 0, + `bezahlt_bearbeiter` varchar(64) NOT NULL, + `bezahlt_datum` date DEFAULT NULL, + `bezahlt_status` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mlm_abrechnung_log` -- +DROP TABLE IF EXISTS `mlm_abrechnung_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mlm_abrechnung_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `abrechnung` int(11) NOT NULL DEFAULT '0', - `meldung` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mlm_abrechnung_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `abrechnung` int(11) NOT NULL DEFAULT 0, + `meldung` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mlm_downline` -- +DROP TABLE IF EXISTS `mlm_downline`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mlm_downline` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `downline` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mlm_downline` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `downline` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mlm_positionierung` -- +DROP TABLE IF EXISTS `mlm_positionierung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mlm_positionierung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `positionierung` varchar(255) NOT NULL DEFAULT '', - `datum` date DEFAULT NULL, - `erneuert` date DEFAULT NULL, - `temporaer` tinyint(1) NOT NULL DEFAULT '0', - `rueckgaengig` tinyint(1) NOT NULL DEFAULT '0', - `mlm_abrechnung` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mlm_positionierung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `positionierung` varchar(255) NOT NULL, + `datum` date DEFAULT NULL, + `erneuert` date DEFAULT NULL, + `temporaer` tinyint(1) NOT NULL DEFAULT 0, + `rueckgaengig` tinyint(1) NOT NULL DEFAULT 0, + `mlm_abrechnung` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `mlm_wartekonto` -- +DROP TABLE IF EXISTS `mlm_wartekonto`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mlm_wartekonto` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `betrag` decimal(10,2) DEFAULT NULL, - `abrechnung` int(11) NOT NULL DEFAULT '0', - `autoabrechnung` tinyint(1) NOT NULL DEFAULT '0', - `abgerechnet` tinyint(1) NOT NULL DEFAULT '0', - `rechnung_position_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `mlm_wartekonto` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `betrag` decimal(10,2) DEFAULT NULL, + `abrechnung` int(11) NOT NULL DEFAULT 0, + `autoabrechnung` tinyint(1) NOT NULL DEFAULT 0, + `abgerechnet` tinyint(1) NOT NULL DEFAULT 0, + `rechnung_position_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `module_action` -- +DROP TABLE IF EXISTS `module_action`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_action` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(255) NOT NULL DEFAULT '', - `action` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `module` (`module`,`action`) -) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8; +CREATE TABLE `module_action` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(255) NOT NULL, + `action` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `module` (`module`,`action`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=275 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `module_lock` -- +DROP TABLE IF EXISTS `module_lock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_lock` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(255) DEFAULT NULL, - `action` varchar(255) DEFAULT NULL, - `userid` int(15) DEFAULT '0', - `salt` varchar(255) DEFAULT '', - `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `module_lock` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(255) DEFAULT NULL, + `action` varchar(255) DEFAULT NULL, + `userid` int(15) DEFAULT 0, + `salt` varchar(255) DEFAULT NULL, + `zeit` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `module_stat` -- +DROP TABLE IF EXISTS `module_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_stat` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `created_date` date DEFAULT NULL, - `view_count` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `created_date` (`created_date`,`module`,`action`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `module_stat` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `created_date` date DEFAULT NULL, + `view_count` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `created_date` (`created_date`,`module`,`action`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `module_stat_detail` -- +DROP TABLE IF EXISTS `module_stat_detail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_stat_detail` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `document_id` int(11) NOT NULL DEFAULT '0', - `user_id` int(11) NOT NULL DEFAULT '0', - `visible` tinyint(1) NOT NULL DEFAULT '1', - `uid` varchar(40) NOT NULL DEFAULT '', - `start_date` datetime DEFAULT NULL, - `end_date` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `user_id` (`user_id`,`uid`,`module`,`action`,`document_id`,`visible`,`start_date`) -) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; +CREATE TABLE `module_stat_detail` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `document_id` int(11) NOT NULL DEFAULT 0, + `user_id` int(11) NOT NULL DEFAULT 0, + `visible` tinyint(1) NOT NULL DEFAULT 1, + `uid` varchar(40) NOT NULL, + `start_date` datetime DEFAULT NULL, + `end_date` datetime DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `user_id` (`user_id`,`uid`,`module`,`action`,`document_id`,`visible`,`start_date`) +) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `module_status` -- +DROP TABLE IF EXISTS `module_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_status` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(64) NOT NULL DEFAULT '', - `active` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `module_status` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(64) NOT NULL, + `active` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `navigation_alternative` -- +DROP TABLE IF EXISTS `navigation_alternative`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `navigation_alternative` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `first` varchar(64) NOT NULL DEFAULT '', - `sec` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `prio` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; +CREATE TABLE `navigation_alternative` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `first` varchar(64) NOT NULL, + `sec` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `prio` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `newsletter_blacklist` -- +DROP TABLE IF EXISTS `newsletter_blacklist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `newsletter_blacklist` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `email` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `newsletter_blacklist` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `email` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `newslettercache` -- +DROP TABLE IF EXISTS `newslettercache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `newslettercache` ( - `checksum` text NOT NULL, - `comment` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `newslettercache` ( + `checksum` text NOT NULL, + `comment` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `notification_message` -- +DROP TABLE IF EXISTS `notification_message`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `notification_message` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `type` varchar(16) NOT NULL DEFAULT 'default', - `title` varchar(64) NOT NULL DEFAULT '', - `message` varchar(1024) DEFAULT NULL, - `tags` varchar(512) DEFAULT NULL, - `options_json` text, - `priority` tinyint(1) unsigned NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `notification_message` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL DEFAULT 0, + `type` varchar(16) NOT NULL DEFAULT 'default', + `title` varchar(64) NOT NULL, + `message` varchar(1024) DEFAULT NULL, + `tags` varchar(512) DEFAULT NULL, + `options_json` text DEFAULT NULL, + `priority` tinyint(1) unsigned NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `object_stat` -- +DROP TABLE IF EXISTS `object_stat`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `object_stat` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `object_type` varchar(64) NOT NULL DEFAULT '', - `object_parameter` varchar(64) NOT NULL DEFAULT '', - `event_type` varchar(64) NOT NULL DEFAULT '', - `created_at` date NOT NULL, - `event_count` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `created_at` (`created_at`,`object_type`,`object_parameter`,`event_type`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `object_stat` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `object_type` varchar(64) NOT NULL, + `object_parameter` varchar(64) NOT NULL, + `event_type` varchar(64) NOT NULL, + `created_at` date NOT NULL, + `event_count` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `created_at` (`created_at`,`object_type`,`object_parameter`,`event_type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `objekt_lager_platz` -- +DROP TABLE IF EXISTS `objekt_lager_platz`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objekt_lager_platz` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `parameter` int(11) NOT NULL DEFAULT '0', - `objekt` varchar(255) NOT NULL DEFAULT '', - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `kommentar` varchar(255) DEFAULT '', - `bearbeiter` varchar(255) DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `lager_platz` (`lager_platz`), - KEY `parameter` (`parameter`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `objekt_lager_platz` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `parameter` int(11) NOT NULL DEFAULT 0, + `objekt` varchar(255) NOT NULL, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `kommentar` varchar(255) DEFAULT NULL, + `bearbeiter` varchar(255) DEFAULT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `lager_platz` (`lager_platz`), + KEY `parameter` (`parameter`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `objekt_protokoll` -- +DROP TABLE IF EXISTS `objekt_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objekt_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `objekt` varchar(64) NOT NULL DEFAULT '', - `objektid` int(11) NOT NULL DEFAULT '0', - `action_long` varchar(128) NOT NULL DEFAULT '', - `meldung` varchar(255) NOT NULL DEFAULT '0', - `bearbeiter` varchar(128) NOT NULL DEFAULT '', - `zeitstempel` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `objekt_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `objekt` varchar(64) NOT NULL, + `objektid` int(11) NOT NULL DEFAULT 0, + `action_long` varchar(128) NOT NULL, + `meldung` varchar(255) NOT NULL DEFAULT '0', + `bearbeiter` varchar(128) NOT NULL, + `zeitstempel` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `offenevorgaenge` -- +DROP TABLE IF EXISTS `offenevorgaenge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `offenevorgaenge` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `titel` varchar(255) NOT NULL, - `href` varchar(255) NOT NULL, - `beschriftung` text NOT NULL, - `linkremove` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `offenevorgaenge` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `titel` varchar(255) NOT NULL, + `href` varchar(255) NOT NULL, + `beschriftung` text NOT NULL, + `linkremove` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `onlineshop_transfer_cart` -- +DROP TABLE IF EXISTS `onlineshop_transfer_cart`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `onlineshop_transfer_cart` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `cart_original` mediumtext, - `cart_transfer` mediumtext, - `template` mediumtext, - `extid` varchar(255) DEFAULT '', - `internet` varchar(255) DEFAULT '', - `status` varchar(255) DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `extid` (`extid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `onlineshop_transfer_cart` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `cart_original` mediumtext DEFAULT NULL, + `cart_transfer` mediumtext DEFAULT NULL, + `template` mediumtext DEFAULT NULL, + `extid` varchar(255) DEFAULT NULL, + `internet` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `extid` (`extid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `onlineshops_tasks` -- +DROP TABLE IF EXISTS `onlineshops_tasks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `onlineshops_tasks` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(15) DEFAULT '0', - `command` varchar(255) DEFAULT '', - `status` varchar(255) DEFAULT 'inactive', - `counter` int(15) DEFAULT '0', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `onlineshops_tasks` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(15) DEFAULT 0, + `command` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT 'inactive', + `counter` int(15) DEFAULT 0, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `openstreetmap_status` -- +DROP TABLE IF EXISTS `openstreetmap_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `openstreetmap_status` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `status` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `openstreetmap_status` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `status` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `paketannahme` -- +DROP TABLE IF EXISTS `paketannahme`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `paketannahme` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `datum` datetime NOT NULL, - `verpackungszustand` int(11) NOT NULL, - `bemerkung` text NOT NULL, - `foto` int(11) NOT NULL, - `gewicht` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `vorlage` varchar(255) NOT NULL, - `vorlageid` varchar(255) NOT NULL, - `zahlung` varchar(255) NOT NULL, - `betrag` decimal(10,4) NOT NULL, - `status` varchar(64) NOT NULL, - `beipack_rechnung` int(1) NOT NULL, - `beipack_lieferschein` int(1) NOT NULL, - `beipack_anschreiben` int(1) NOT NULL, - `beipack_gesamt` int(10) NOT NULL, - `bearbeiter_distribution` varchar(255) NOT NULL, - `postgrund` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `renr` varchar(255) DEFAULT NULL, - `lsnr` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `paketannahme` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `datum` datetime NOT NULL, + `verpackungszustand` int(11) NOT NULL, + `bemerkung` text NOT NULL, + `foto` int(11) NOT NULL, + `gewicht` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `vorlage` varchar(255) NOT NULL, + `vorlageid` varchar(255) NOT NULL, + `zahlung` varchar(255) NOT NULL, + `betrag` decimal(10,4) NOT NULL, + `status` varchar(64) NOT NULL, + `beipack_rechnung` int(1) NOT NULL, + `beipack_lieferschein` int(1) NOT NULL, + `beipack_anschreiben` int(1) NOT NULL, + `beipack_gesamt` int(10) NOT NULL, + `bearbeiter_distribution` varchar(255) NOT NULL, + `postgrund` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `renr` varchar(255) DEFAULT NULL, + `lsnr` varchar(255) DEFAULT NULL, + `datum_abgeschlossen` datetime NOT NULL, + `bearbeiter_abgeschlossen` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `paketdistribution` -- +DROP TABLE IF EXISTS `paketdistribution`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `paketdistribution` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bearbeiter` varchar(255) NOT NULL, - `zeit` datetime NOT NULL, - `paketannahme` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `vpe` varchar(255) NOT NULL, - `etiketten` int(11) NOT NULL, - `bemerkung` text NOT NULL, - `bestellung_position` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `retoure_position` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `paketdistribution` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bearbeiter` varchar(255) NOT NULL, + `zeit` datetime NOT NULL, + `paketannahme` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `vpe` varchar(255) NOT NULL, + `etiketten` int(11) NOT NULL, + `bemerkung` text NOT NULL, + `bestellung_position` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `retoure_position` int(11) NOT NULL DEFAULT 0, + `vorlaeufig` int(1) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `partner` -- +DROP TABLE IF EXISTS `partner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `partner` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `ref` varchar(255) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `netto` decimal(10,2) NOT NULL, - `tage` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `geloescht` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `shop` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `partner` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `ref` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `netto` decimal(10,2) NOT NULL, + `tage` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `geloescht` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `shop` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `partner_verkauf` -- +DROP TABLE IF EXISTS `partner_verkauf`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `partner_verkauf` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `auftrag` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `menge` int(11) NOT NULL, - `partner` int(11) NOT NULL, - `freigabe` int(1) NOT NULL, - `abgerechnet` int(1) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `partner_verkauf` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `auftrag` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `menge` int(11) NOT NULL, + `partner` int(11) NOT NULL, + `freigabe` int(1) NOT NULL, + `abgerechnet` int(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `parts_list_alternative` -- +DROP TABLE IF EXISTS `parts_list_alternative`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `parts_list_alternative` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `parts_list_id` int(11) NOT NULL DEFAULT '0', - `alternative_article_id` int(11) NOT NULL DEFAULT '0', - `reason` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `parts_list_alternative` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `parts_list_id` int(11) NOT NULL DEFAULT 0, + `alternative_article_id` int(11) NOT NULL DEFAULT 0, + `reason` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `payment_transaction` -- +DROP TABLE IF EXISTS `payment_transaction`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `payment_transaction` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `returnorder_id` int(11) NOT NULL DEFAULT '0', - `payment_status` varchar(32) NOT NULL DEFAULT '', - `payment_account_id` int(11) NOT NULL DEFAULT '0', - `address_id` int(11) NOT NULL DEFAULT '0', - `amount` decimal(12,2) NOT NULL DEFAULT '0.00', - `currency` varchar(8) NOT NULL DEFAULT '', - `payment_reason` varchar(255) NOT NULL DEFAULT '', - `payment_json` text, - `liability_id` int(11) NOT NULL DEFAULT '0', - `payment_transaction_group_id` int(11) NOT NULL DEFAULT '0', - `payment_info` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `returnorder_id` (`returnorder_id`), - KEY `liabilitiy_id` (`liability_id`), - KEY `payment_transaction_group_id` (`payment_transaction_group_id`), - KEY `payment_account_id` (`payment_account_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `payment_transaction` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `returnorder_id` int(11) NOT NULL DEFAULT 0, + `payment_status` varchar(32) NOT NULL, + `payment_account_id` int(11) NOT NULL DEFAULT 0, + `address_id` int(11) NOT NULL DEFAULT 0, + `amount` decimal(12,2) NOT NULL DEFAULT 0.00, + `currency` varchar(8) NOT NULL, + `payment_reason` varchar(255) NOT NULL, + `payment_json` text DEFAULT NULL, + `liability_id` int(11) NOT NULL DEFAULT 0, + `payment_transaction_group_id` int(11) NOT NULL DEFAULT 0, + `payment_info` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `returnorder_id` (`returnorder_id`), + KEY `liabilitiy_id` (`liability_id`), + KEY `payment_transaction_group_id` (`payment_transaction_group_id`), + KEY `payment_account_id` (`payment_account_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `payment_transaction_group` -- +DROP TABLE IF EXISTS `payment_transaction_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `payment_transaction_group` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `payment_account_id` int(11) NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `comment` varchar(255) NOT NULL DEFAULT '', - `created_by` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `payment_account_id` (`payment_account_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `payment_transaction_group` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `payment_account_id` int(11) NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `comment` varchar(255) NOT NULL, + `created_by` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `payment_account_id` (`payment_account_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `payment_transaction_preview` -- +DROP TABLE IF EXISTS `payment_transaction_preview`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `payment_transaction_preview` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `returnorder_id` int(11) NOT NULL DEFAULT '0', - `liability_id` int(11) NOT NULL DEFAULT '0', - `payment_account_id` int(11) NOT NULL DEFAULT '0', - `address_id` int(11) NOT NULL DEFAULT '0', - `user_id` int(11) NOT NULL DEFAULT '0', - `selected` tinyint(1) NOT NULL DEFAULT '0', - `amount` decimal(12,2) NOT NULL DEFAULT '0.00', - `currency` varchar(8) NOT NULL DEFAULT '', - `payment_reason` varchar(255) NOT NULL DEFAULT '', - `payment_info` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `user_id` (`user_id`), - KEY `returnorder_id` (`returnorder_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `payment_transaction_preview` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `returnorder_id` int(11) NOT NULL DEFAULT 0, + `liability_id` int(11) NOT NULL DEFAULT 0, + `payment_account_id` int(11) NOT NULL DEFAULT 0, + `address_id` int(11) NOT NULL DEFAULT 0, + `user_id` int(11) NOT NULL DEFAULT 0, + `selected` tinyint(1) NOT NULL DEFAULT 0, + `amount` decimal(12,2) NOT NULL DEFAULT 0.00, + `currency` varchar(8) NOT NULL, + `payment_reason` varchar(255) NOT NULL, + `payment_info` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `user_id` (`user_id`), + KEY `returnorder_id` (`returnorder_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `paymentaccount_import_job` -- +DROP TABLE IF EXISTS `paymentaccount_import_job`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `paymentaccount_import_job` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `paymentaccount_id` int(11) NOT NULL DEFAULT '0', - `from` datetime DEFAULT NULL, - `to` datetime DEFAULT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `status` varchar(32) NOT NULL DEFAULT 'created', - PRIMARY KEY (`id`), - KEY `paymentaccount_id` (`paymentaccount_id`,`status`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `paymentaccount_import_job` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `paymentaccount_id` int(11) NOT NULL DEFAULT 0, + `from` datetime DEFAULT NULL, + `to` datetime DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `status` varchar(32) NOT NULL DEFAULT 'created', + PRIMARY KEY (`id`), + KEY `paymentaccount_id` (`paymentaccount_id`,`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `paymentaccount_import_scheduler` -- +DROP TABLE IF EXISTS `paymentaccount_import_scheduler`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `paymentaccount_import_scheduler` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `paymentaccount_id` int(11) NOT NULL DEFAULT '0', - `hour` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `paymentaccount_id` (`paymentaccount_id`,`hour`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `paymentaccount_import_scheduler` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `paymentaccount_id` int(11) NOT NULL DEFAULT 0, + `hour` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `paymentaccount_id` (`paymentaccount_id`,`hour`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `paymentimport_lock` -- +DROP TABLE IF EXISTS `paymentimport_lock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `paymentimport_lock` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `paymentaccount_id` int(11) NOT NULL DEFAULT '0', - `locked_by_type` varchar(16) NOT NULL DEFAULT '', - `locked_by_id` int(11) NOT NULL DEFAULT '0', - `script_process_id` int(11) NOT NULL DEFAULT '0', - `last_update` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `paymentaccount_id` (`paymentaccount_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `paymentimport_lock` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `paymentaccount_id` int(11) NOT NULL DEFAULT 0, + `locked_by_type` varchar(16) NOT NULL, + `locked_by_id` int(11) NOT NULL DEFAULT 0, + `script_process_id` int(11) NOT NULL DEFAULT 0, + `last_update` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `paymentaccount_id` (`paymentaccount_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pdfarchiv` -- +DROP TABLE IF EXISTS `pdfarchiv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pdfarchiv` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zeitstempel` datetime DEFAULT NULL, - `checksum` varchar(128) NOT NULL DEFAULT '', - `table_id` int(11) NOT NULL DEFAULT '0', - `table_name` varchar(128) NOT NULL DEFAULT '', - `doctype` varchar(128) NOT NULL DEFAULT '', - `doctypeorig` varchar(128) NOT NULL DEFAULT '', - `dateiname` varchar(128) NOT NULL DEFAULT '', - `bearbeiter` varchar(128) NOT NULL DEFAULT '', - `belegnummer` varchar(128) NOT NULL DEFAULT '', - `erstesoriginal` int(11) NOT NULL DEFAULT '0', - `schreibschutz` tinyint(1) NOT NULL DEFAULT '0', - `keinhintergrund` tinyint(1) NOT NULL DEFAULT '0', - `parameter` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `table_id` (`table_id`), - KEY `schreibschutz` (`schreibschutz`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pdfarchiv` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `zeitstempel` datetime DEFAULT NULL, + `checksum` varchar(128) NOT NULL, + `table_id` int(11) NOT NULL DEFAULT 0, + `table_name` varchar(128) NOT NULL, + `doctype` varchar(128) NOT NULL, + `doctypeorig` varchar(128) NOT NULL, + `dateiname` varchar(128) NOT NULL, + `bearbeiter` varchar(128) NOT NULL, + `belegnummer` varchar(128) NOT NULL, + `erstesoriginal` int(11) NOT NULL DEFAULT 0, + `schreibschutz` tinyint(1) NOT NULL DEFAULT 0, + `keinhintergrund` tinyint(1) NOT NULL DEFAULT 0, + `parameter` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `table_id` (`table_id`), + KEY `schreibschutz` (`schreibschutz`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pdfmirror_md5pool` -- +DROP TABLE IF EXISTS `pdfmirror_md5pool`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pdfmirror_md5pool` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zeitstempel` datetime DEFAULT NULL, - `checksum` varchar(128) NOT NULL DEFAULT '', - `table_id` int(11) NOT NULL DEFAULT '0', - `table_name` varchar(128) NOT NULL DEFAULT '', - `bearbeiter` varchar(128) NOT NULL DEFAULT '', - `erstesoriginal` int(11) NOT NULL DEFAULT '0', - `pdfarchiv_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pdfmirror_md5pool` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `zeitstempel` datetime DEFAULT NULL, + `checksum` varchar(128) NOT NULL, + `table_id` int(11) NOT NULL DEFAULT 0, + `table_name` varchar(128) NOT NULL, + `bearbeiter` varchar(128) NOT NULL, + `erstesoriginal` int(11) NOT NULL DEFAULT 0, + `pdfarchiv_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `permissionhistory` -- +DROP TABLE IF EXISTS `permissionhistory`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `permissionhistory` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `granting_user_id` int(11) DEFAULT NULL, - `granting_user_name` varchar(255) DEFAULT NULL, - `receiving_user_id` int(11) DEFAULT NULL, - `receiving_user_name` varchar(255) DEFAULT NULL, - `module` varchar(255) DEFAULT NULL, - `action` varchar(255) DEFAULT NULL, - `permission` int(1) DEFAULT NULL, - `timeofpermission` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `permissionhistory` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `granting_user_id` int(11) DEFAULT NULL, + `granting_user_name` varchar(255) DEFAULT NULL, + `receiving_user_id` int(11) DEFAULT NULL, + `receiving_user_name` varchar(255) DEFAULT NULL, + `module` varchar(255) DEFAULT NULL, + `action` varchar(255) DEFAULT NULL, + `permission` int(1) DEFAULT NULL, + `timeofpermission` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pinwand` -- +DROP TABLE IF EXISTS `pinwand`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pinwand` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) NOT NULL DEFAULT '', - `user` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pinwand` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(128) NOT NULL, + `user` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pinwand_user` -- +DROP TABLE IF EXISTS `pinwand_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pinwand_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `pinwand` int(11) NOT NULL DEFAULT '0', - `user` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `pinwand` (`pinwand`,`user`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pinwand_user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `pinwand` int(11) NOT NULL DEFAULT 0, + `user` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `pinwand` (`pinwand`,`user`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pos_abschluss` -- +DROP TABLE IF EXISTS `pos_abschluss`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pos_abschluss` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bargeld` longblob NOT NULL, - `projekt` int(11) NOT NULL DEFAULT '0', - `datum` date DEFAULT NULL, - `zeitstempel` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pos_abschluss` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bargeld` longblob NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `datum` date DEFAULT NULL, + `zeitstempel` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pos_kassierer` -- +DROP TABLE IF EXISTS `pos_kassierer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pos_kassierer` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `kassenkennung` varchar(16) NOT NULL DEFAULT '', - `inaktiv` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pos_kassierer` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `kassenkennung` varchar(16) NOT NULL, + `inaktiv` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pos_order` -- +DROP TABLE IF EXISTS `pos_order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pos_order` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `auftrag` int(11) NOT NULL DEFAULT '0', - `rechnung` int(11) NOT NULL DEFAULT '0', - `lieferschein` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `verkaeufer` int(11) NOT NULL DEFAULT '0', - `zeitstempel` datetime DEFAULT NULL, - `zahlungsweise` varchar(64) NOT NULL DEFAULT '', - `betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `lager` varchar(128) NOT NULL DEFAULT '', - `gutschrift` int(11) NOT NULL DEFAULT '0', - `wechselgeld` decimal(10,2) DEFAULT NULL, - `gegeben` decimal(10,2) DEFAULT NULL, - `betrag_diff` decimal(10,2) NOT NULL DEFAULT '0.00', - `tip` decimal(10,2) NOT NULL DEFAULT '0.00', - `tip_konto` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pos_order` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `auftrag` int(11) NOT NULL DEFAULT 0, + `rechnung` int(11) NOT NULL DEFAULT 0, + `lieferschein` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `verkaeufer` int(11) NOT NULL DEFAULT 0, + `zeitstempel` datetime DEFAULT NULL, + `zahlungsweise` varchar(64) NOT NULL, + `betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `lager` varchar(128) NOT NULL, + `gutschrift` int(11) NOT NULL DEFAULT 0, + `wechselgeld` decimal(10,2) DEFAULT NULL, + `gegeben` decimal(10,2) DEFAULT NULL, + `betrag_diff` decimal(10,2) NOT NULL DEFAULT 0.00, + `tip` decimal(10,2) NOT NULL DEFAULT 0.00, + `tip_konto` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pos_rksv` -- +DROP TABLE IF EXISTS `pos_rksv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pos_rksv` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `projekt` int(11) DEFAULT NULL, - `rechnung` int(11) DEFAULT NULL, - `belegnummer` int(11) NOT NULL DEFAULT '0', - `betragnormal` decimal(18,2) NOT NULL DEFAULT '0.00', - `betragermaessigt1` decimal(18,2) NOT NULL DEFAULT '0.00', - `betragermaessigt2` decimal(18,2) NOT NULL DEFAULT '0.00', - `betragbesonders` decimal(18,2) NOT NULL DEFAULT '0.00', - `betragnull` decimal(18,2) NOT NULL DEFAULT '0.00', - `umsatzzaehler` decimal(18,2) NOT NULL DEFAULT '0.00', - `umsatzzaehler_aes` text NOT NULL, - `signatur` text NOT NULL, - `jwscompact` text NOT NULL, - `belegart` varchar(10) NOT NULL DEFAULT '', - `zeitstempel` datetime DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pos_rksv` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `projekt` int(11) DEFAULT NULL, + `rechnung` int(11) DEFAULT NULL, + `belegnummer` int(11) NOT NULL DEFAULT 0, + `betragnormal` decimal(18,2) NOT NULL DEFAULT 0.00, + `betragermaessigt1` decimal(18,2) NOT NULL DEFAULT 0.00, + `betragermaessigt2` decimal(18,2) NOT NULL DEFAULT 0.00, + `betragbesonders` decimal(18,2) NOT NULL DEFAULT 0.00, + `betragnull` decimal(18,2) NOT NULL DEFAULT 0.00, + `umsatzzaehler` decimal(18,2) NOT NULL DEFAULT 0.00, + `umsatzzaehler_aes` text NOT NULL, + `signatur` text NOT NULL, + `jwscompact` text NOT NULL, + `belegart` varchar(10) NOT NULL, + `zeitstempel` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pos_sessions` -- +DROP TABLE IF EXISTS `pos_sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pos_sessions` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `status` tinyint(1) NOT NULL DEFAULT '0', - `kassierer` varchar(64) NOT NULL DEFAULT '0', - `sesssionbezeichnung` varchar(64) NOT NULL DEFAULT '', - `data` longtext, - `zeitstempel` datetime DEFAULT NULL, - `importiert` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pos_sessions` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `status` tinyint(1) NOT NULL DEFAULT 0, + `kassierer` varchar(64) NOT NULL DEFAULT '0', + `sesssionbezeichnung` varchar(64) NOT NULL, + `data` longtext DEFAULT NULL, + `zeitstempel` datetime DEFAULT NULL, + `importiert` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pos_tagesabschluss` -- +DROP TABLE IF EXISTS `pos_tagesabschluss`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pos_tagesabschluss` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `projekt` int(11) NOT NULL DEFAULT '0', - `netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `brutto` decimal(10,2) NOT NULL DEFAULT '0.00', - `datum` date DEFAULT NULL, - `nummer` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `datum` (`datum`), - KEY `projekt` (`projekt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pos_tagesabschluss` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `projekt` int(11) NOT NULL DEFAULT 0, + `netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `brutto` decimal(10,2) NOT NULL DEFAULT 0.00, + `datum` date DEFAULT NULL, + `nummer` varchar(32) NOT NULL, + PRIMARY KEY (`id`), + KEY `datum` (`datum`), + KEY `projekt` (`projekt`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pos_zaehlungen` -- +DROP TABLE IF EXISTS `pos_zaehlungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pos_zaehlungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `projekt` int(11) NOT NULL DEFAULT '0', - `konto` int(11) NOT NULL DEFAULT '0', - `eur500` int(11) NOT NULL DEFAULT '0', - `eur200` int(11) NOT NULL DEFAULT '0', - `eur100` int(11) NOT NULL DEFAULT '0', - `eur50` int(11) NOT NULL DEFAULT '0', - `eur20` int(11) NOT NULL DEFAULT '0', - `eur10` int(11) NOT NULL DEFAULT '0', - `eur5` int(11) NOT NULL DEFAULT '0', - `eur1` int(11) NOT NULL DEFAULT '0', - `eur2` int(11) NOT NULL DEFAULT '0', - `eur05` int(11) NOT NULL DEFAULT '0', - `eur02` int(11) NOT NULL DEFAULT '0', - `eur01` int(11) NOT NULL DEFAULT '0', - `eur005` int(11) NOT NULL DEFAULT '0', - `eur002` int(11) NOT NULL DEFAULT '0', - `eur001` int(11) NOT NULL DEFAULT '0', - `gesamt` decimal(18,2) NOT NULL DEFAULT '0.00', - `diff` decimal(18,2) NOT NULL DEFAULT '0.00', - `kommentar` text NOT NULL, - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pos_zaehlungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `projekt` int(11) NOT NULL DEFAULT 0, + `konto` int(11) NOT NULL DEFAULT 0, + `eur500` int(11) NOT NULL DEFAULT 0, + `eur200` int(11) NOT NULL DEFAULT 0, + `eur100` int(11) NOT NULL DEFAULT 0, + `eur50` int(11) NOT NULL DEFAULT 0, + `eur20` int(11) NOT NULL DEFAULT 0, + `eur10` int(11) NOT NULL DEFAULT 0, + `eur5` int(11) NOT NULL DEFAULT 0, + `eur1` int(11) NOT NULL DEFAULT 0, + `eur2` int(11) NOT NULL DEFAULT 0, + `eur05` int(11) NOT NULL DEFAULT 0, + `eur02` int(11) NOT NULL DEFAULT 0, + `eur01` int(11) NOT NULL DEFAULT 0, + `eur005` int(11) NOT NULL DEFAULT 0, + `eur002` int(11) NOT NULL DEFAULT 0, + `eur001` int(11) NOT NULL DEFAULT 0, + `gesamt` decimal(18,2) NOT NULL DEFAULT 0.00, + `diff` decimal(18,2) NOT NULL DEFAULT 0.00, + `kommentar` text NOT NULL, + `bearbeiter` varchar(64) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `preisanfrage` -- +DROP TABLE IF EXISTS `preisanfrage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `preisanfrage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `projekt` varchar(255) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `auftrag` varchar(255) NOT NULL, - `auftragid` int(11) NOT NULL, - `freitext` text NOT NULL, - `status` varchar(255) NOT NULL DEFAULT '', - `adresse` int(11) NOT NULL, - `mitarbeiter` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `lieferantennummer` varchar(255) NOT NULL, - `versandart` varchar(255) NOT NULL, - `versand` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `inbearbeitung_user` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `ohne_briefpapier` int(1) DEFAULT NULL, - `reservierart` varchar(255) DEFAULT NULL, - `auslagerart` varchar(255) DEFAULT 'sammel', - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `datumauslieferung` date DEFAULT NULL, - `datumbereitstellung` date DEFAULT NULL, - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `bearbeiterid` int(11) DEFAULT NULL, - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `internebemerkung` text NOT NULL, - `sprache` varchar(32) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `zusammenfassen` int(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `preisanfrage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `projekt` varchar(255) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `auftrag` varchar(255) NOT NULL, + `auftragid` int(11) NOT NULL, + `freitext` text NOT NULL, + `status` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL, + `mitarbeiter` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `lieferantennummer` varchar(255) NOT NULL, + `versandart` varchar(255) NOT NULL, + `versand` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `inbearbeitung_user` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `ohne_briefpapier` int(1) DEFAULT NULL, + `reservierart` varchar(255) DEFAULT NULL, + `auslagerart` varchar(255) DEFAULT 'sammel', + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `datumauslieferung` date DEFAULT NULL, + `datumbereitstellung` date DEFAULT NULL, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `bearbeiterid` int(11) DEFAULT NULL, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `internebemerkung` text NOT NULL, + `sprache` varchar(32) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `bundesstaat` varchar(32) NOT NULL, + `zusammenfassen` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `preisanfrage_position` -- +DROP TABLE IF EXISTS `preisanfrage_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `preisanfrage_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `preisanfrage` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `nummer` varchar(255) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `menge` decimal(14,4) NOT NULL, - `sort` int(10) NOT NULL, - `bemerkung` text NOT NULL, - `preis` decimal(10,4) NOT NULL, - `geliefert` decimal(14,4) NOT NULL, - `vpe` varchar(255) NOT NULL DEFAULT '', - `einheit` varchar(255) NOT NULL DEFAULT '', - `lieferdatum` date DEFAULT NULL, - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - PRIMARY KEY (`id`), - KEY `preisanfrage` (`preisanfrage`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `preisanfrage_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `preisanfrage` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `nummer` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `menge` decimal(14,4) NOT NULL, + `sort` int(10) NOT NULL, + `bemerkung` text NOT NULL, + `preis` decimal(10,4) NOT NULL, + `geliefert` decimal(14,4) NOT NULL, + `vpe` varchar(255) NOT NULL, + `einheit` varchar(255) NOT NULL, + `lieferdatum` date DEFAULT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `preisanfrage` (`preisanfrage`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `preisanfrage_protokoll` -- +DROP TABLE IF EXISTS `preisanfrage_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `preisanfrage_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `preisanfrage` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `preisanfrage_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `preisanfrage` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `presta_image_association` -- +DROP TABLE IF EXISTS `presta_image_association`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `presta_image_association` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `xentral_id` int(11) NOT NULL, - `presta_id` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `presta_image_association` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `xentral_id` int(11) NOT NULL, + `presta_id` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `presta_matrix_association` -- +DROP TABLE IF EXISTS `presta_matrix_association`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `presta_matrix_association` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `article_id` int(11) NOT NULL, - `combination_id` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `presta_matrix_association` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `article_id` int(11) NOT NULL, + `combination_id` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion` -- +DROP TABLE IF EXISTS `produktion`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `art` varchar(255) NOT NULL, - `projekt` varchar(222) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `internet` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `angebot` varchar(255) NOT NULL, - `freitext` text NOT NULL, - `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL default 'angelegt', - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(64) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(64) NOT NULL, - `ustid` varchar(64) NOT NULL, - `ust_befreit` int(1) NOT NULL, - `ust_inner` int(1) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(255) NOT NULL, - `versandart` varchar(255) NOT NULL, - `vertrieb` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` int(11) NOT NULL, - `bank_inhaber` varchar(255) NOT NULL, - `bank_institut` varchar(255) NOT NULL, - `bank_blz` varchar(255) NOT NULL, - `bank_konto` varchar(255) NOT NULL, - `kreditkarte_typ` varchar(255) NOT NULL, - `kreditkarte_inhaber` varchar(255) NOT NULL, - `kreditkarte_nummer` varchar(255) NOT NULL, - `kreditkarte_pruefnummer` varchar(255) NOT NULL, - `kreditkarte_monat` varchar(255) NOT NULL, - `kreditkarte_jahr` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `autoversand` int(1) NOT NULL, - `keinporto` int(1) NOT NULL, - `keinestornomail` int(1) NOT NULL, - `abweichendelieferadresse` int(1) NOT NULL, - `liefername` varchar(255) NOT NULL, - `lieferabteilung` varchar(255) NOT NULL, - `lieferunterabteilung` varchar(255) NOT NULL, - `lieferland` varchar(64) NOT NULL, - `lieferstrasse` varchar(255) NOT NULL, - `lieferort` varchar(255) NOT NULL, - `lieferplz` varchar(64) NOT NULL, - `lieferadresszusatz` varchar(255) NOT NULL, - `lieferansprechpartner` varchar(255) NOT NULL, - `packstation_inhaber` varchar(255) NOT NULL, - `packstation_station` varchar(255) NOT NULL, - `packstation_ident` varchar(255) NOT NULL, - `packstation_plz` varchar(64) NOT NULL, - `packstation_ort` varchar(255) NOT NULL, - `autofreigabe` int(1) NOT NULL, - `freigabe` int(1) NOT NULL, - `nachbesserung` int(1) NOT NULL, - `gesamtsumme` decimal(18,2) NOT NULL DEFAULT '0.00', - `inbearbeitung` int(1) NOT NULL, - `abgeschlossen` int(1) NOT NULL, - `nachlieferung` int(1) NOT NULL, - `lager_ok` int(1) NOT NULL, - `porto_ok` int(1) NOT NULL, - `ust_ok` int(1) NOT NULL, - `check_ok` int(1) NOT NULL, - `vorkasse_ok` int(1) NOT NULL, - `nachnahme_ok` int(1) NOT NULL, - `reserviert_ok` int(1) NOT NULL, - `bestellt_ok` int(1) NOT NULL, - `zeit_ok` int(1) NOT NULL, - `versand_ok` int(1) NOT NULL, - `partnerid` int(11) NOT NULL, - `folgebestaetigung` date NOT NULL, - `zahlungsmail` date NOT NULL, - `stornogrund` varchar(255) NOT NULL, - `stornosonstiges` varchar(255) NOT NULL, - `stornorueckzahlung` varchar(255) NOT NULL, - `stornobetrag` decimal(18,2) NOT NULL DEFAULT '0.00', - `stornobankinhaber` varchar(255) NOT NULL, - `stornobankkonto` varchar(255) NOT NULL, - `stornobankblz` varchar(255) NOT NULL, - `stornobankbank` varchar(255) NOT NULL, - `stornogutschrift` int(1) NOT NULL, - `stornogutschriftbeleg` varchar(255) NOT NULL, - `stornowareerhalten` int(1) NOT NULL, - `stornomanuellebearbeitung` varchar(255) NOT NULL, - `stornokommentar` text NOT NULL, - `stornobezahlt` varchar(255) NOT NULL, - `stornobezahltam` date NOT NULL, - `stornobezahltvon` varchar(255) NOT NULL, - `stornoabgeschlossen` int(1) NOT NULL, - `stornorueckzahlungper` varchar(255) NOT NULL, - `stornowareerhaltenretour` int(1) NOT NULL, - `partnerausgezahlt` int(1) NOT NULL, - `partnerausgezahltam` date NOT NULL, - `kennen` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `bezeichnung` varchar(255) DEFAULT NULL, - `datumproduktion` date DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `reservierart` varchar(255) DEFAULT NULL, - `auslagerart` varchar(255) DEFAULT 'sammel', - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `datumauslieferung` date DEFAULT NULL, - `datumbereitstellung` date DEFAULT NULL, - `unterlistenexplodieren` tinyint(1) NOT NULL DEFAULT '0', - `charge` varchar(255) NOT NULL DEFAULT '', - `arbeitsschrittetextanzeigen` tinyint(1) NOT NULL DEFAULT '1', - `einlagern_ok` int(1) NOT NULL, - `auslagern_ok` int(1) NOT NULL, - `mhd` date DEFAULT NULL, - `auftragmengenanpassen` int(1) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `mengeoriginal` decimal(14,4) NOT NULL DEFAULT '0.0000', - `teilproduktionvon` int(11) NOT NULL DEFAULT '0', - `teilproduktionnummer` int(11) NOT NULL DEFAULT '0', - `parent` int(11) NOT NULL DEFAULT '0', - `parentnummer` int(11) NOT NULL DEFAULT '0', - `bearbeiterid` int(11) DEFAULT NULL, - `mengeausschuss` decimal(14,4) NOT NULL DEFAULT '0.0000', - `mengeerfolgreich` decimal(14,4) NOT NULL DEFAULT '0.0000', - `abschlussbemerkung` text NOT NULL, - `auftragid` int(11) NOT NULL DEFAULT '0', - `funktionstest` tinyint(1) NOT NULL DEFAULT '0', - `seriennummer_erstellen` int(11) NOT NULL DEFAULT '1', - `unterseriennummern_erfassen` tinyint(1) NOT NULL DEFAULT '0', - `datumproduktionende` date DEFAULT NULL, - `standardlager` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`), - KEY `auftragid` (`auftragid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `art` varchar(255) NOT NULL, + `projekt` varchar(222) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `internet` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `angebot` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `internebemerkung` text NOT NULL, + `status` varchar(64) NOT NULL DEFAULT 'angelegt', + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(64) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(64) NOT NULL, + `ustid` varchar(64) NOT NULL, + `ust_befreit` int(1) NOT NULL, + `ust_inner` int(1) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(255) NOT NULL, + `versandart` varchar(255) NOT NULL, + `vertrieb` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` int(11) NOT NULL, + `bank_inhaber` varchar(255) NOT NULL, + `bank_institut` varchar(255) NOT NULL, + `bank_blz` varchar(255) NOT NULL, + `bank_konto` varchar(255) NOT NULL, + `kreditkarte_typ` varchar(255) NOT NULL, + `kreditkarte_inhaber` varchar(255) NOT NULL, + `kreditkarte_nummer` varchar(255) NOT NULL, + `kreditkarte_pruefnummer` varchar(255) NOT NULL, + `kreditkarte_monat` varchar(255) NOT NULL, + `kreditkarte_jahr` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `autoversand` int(1) NOT NULL, + `keinporto` int(1) NOT NULL, + `keinestornomail` int(1) NOT NULL, + `abweichendelieferadresse` int(1) NOT NULL, + `liefername` varchar(255) NOT NULL, + `lieferabteilung` varchar(255) NOT NULL, + `lieferunterabteilung` varchar(255) NOT NULL, + `lieferland` varchar(64) NOT NULL, + `lieferstrasse` varchar(255) NOT NULL, + `lieferort` varchar(255) NOT NULL, + `lieferplz` varchar(64) NOT NULL, + `lieferadresszusatz` varchar(255) NOT NULL, + `lieferansprechpartner` varchar(255) NOT NULL, + `packstation_inhaber` varchar(255) NOT NULL, + `packstation_station` varchar(255) NOT NULL, + `packstation_ident` varchar(255) NOT NULL, + `packstation_plz` varchar(64) NOT NULL, + `packstation_ort` varchar(255) NOT NULL, + `autofreigabe` int(1) NOT NULL, + `freigabe` int(1) NOT NULL, + `nachbesserung` int(1) NOT NULL, + `gesamtsumme` decimal(18,2) NOT NULL DEFAULT 0.00, + `inbearbeitung` int(1) NOT NULL, + `abgeschlossen` int(1) NOT NULL, + `nachlieferung` int(1) NOT NULL, + `lager_ok` int(1) NOT NULL, + `porto_ok` int(1) NOT NULL, + `ust_ok` int(1) NOT NULL, + `check_ok` int(1) NOT NULL, + `vorkasse_ok` int(1) NOT NULL, + `nachnahme_ok` int(1) NOT NULL, + `reserviert_ok` int(1) NOT NULL, + `bestellt_ok` int(1) NOT NULL, + `zeit_ok` int(1) NOT NULL, + `versand_ok` int(1) NOT NULL, + `partnerid` int(11) NOT NULL, + `folgebestaetigung` date NOT NULL, + `zahlungsmail` date NOT NULL, + `stornogrund` varchar(255) NOT NULL, + `stornosonstiges` varchar(255) NOT NULL, + `stornorueckzahlung` varchar(255) NOT NULL, + `stornobetrag` decimal(18,2) NOT NULL DEFAULT 0.00, + `stornobankinhaber` varchar(255) NOT NULL, + `stornobankkonto` varchar(255) NOT NULL, + `stornobankblz` varchar(255) NOT NULL, + `stornobankbank` varchar(255) NOT NULL, + `stornogutschrift` int(1) NOT NULL, + `stornogutschriftbeleg` varchar(255) NOT NULL, + `stornowareerhalten` int(1) NOT NULL, + `stornomanuellebearbeitung` varchar(255) NOT NULL, + `stornokommentar` text NOT NULL, + `stornobezahlt` varchar(255) NOT NULL, + `stornobezahltam` date NOT NULL, + `stornobezahltvon` varchar(255) NOT NULL, + `stornoabgeschlossen` int(1) NOT NULL, + `stornorueckzahlungper` varchar(255) NOT NULL, + `stornowareerhaltenretour` int(1) NOT NULL, + `partnerausgezahlt` int(1) NOT NULL, + `partnerausgezahltam` date NOT NULL, + `kennen` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `bezeichnung` varchar(255) DEFAULT NULL, + `datumproduktion` date DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `reservierart` varchar(255) DEFAULT NULL, + `auslagerart` varchar(255) DEFAULT 'sammel', + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `datumauslieferung` date DEFAULT NULL, + `datumbereitstellung` date DEFAULT NULL, + `unterlistenexplodieren` tinyint(1) NOT NULL DEFAULT 0, + `charge` varchar(255) NOT NULL, + `arbeitsschrittetextanzeigen` tinyint(1) NOT NULL DEFAULT 1, + `einlagern_ok` int(1) NOT NULL, + `auslagern_ok` int(1) NOT NULL, + `mhd` date DEFAULT NULL, + `auftragmengenanpassen` int(1) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `mengeoriginal` decimal(14,4) NOT NULL DEFAULT 0.0000, + `teilproduktionvon` int(11) NOT NULL DEFAULT 0, + `teilproduktionnummer` int(11) NOT NULL DEFAULT 0, + `parent` int(11) NOT NULL DEFAULT 0, + `parentnummer` int(11) NOT NULL DEFAULT 0, + `bearbeiterid` int(11) DEFAULT NULL, + `mengeausschuss` decimal(14,4) NOT NULL DEFAULT 0.0000, + `mengeerfolgreich` decimal(14,4) NOT NULL DEFAULT 0.0000, + `abschlussbemerkung` text NOT NULL, + `auftragid` int(11) NOT NULL DEFAULT 0, + `funktionstest` tinyint(1) NOT NULL DEFAULT 0, + `seriennummer_erstellen` int(11) NOT NULL DEFAULT 1, + `unterseriennummern_erfassen` tinyint(1) NOT NULL DEFAULT 0, + `datumproduktionende` date DEFAULT NULL, + `standardlager` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`), + KEY `auftragid` (`auftragid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_arbeitsanweisung` -- +DROP TABLE IF EXISTS `produktion_arbeitsanweisung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_arbeitsanweisung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `position` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `name` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `bild` longblob NOT NULL, - `einzelzeit` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `geplanter_mitarbeiter` int(11) NOT NULL DEFAULT '0', - `arbeitsplatzgruppe` int(11) NOT NULL DEFAULT '0', - `status` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_arbeitsanweisung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `position` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `bild` longblob NOT NULL, + `einzelzeit` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `geplanter_mitarbeiter` int(11) NOT NULL DEFAULT 0, + `arbeitsplatzgruppe` int(11) NOT NULL DEFAULT 0, + `status` varchar(32) NOT NULL, + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_arbeitsanweisung_batch` -- +DROP TABLE IF EXISTS `produktion_arbeitsanweisung_batch`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_arbeitsanweisung_batch` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `produktion_arbeitsanweisung` int(11) NOT NULL DEFAULT '0', - `erfolgreich` decimal(14,4) NOT NULL, - `ausschuss` decimal(14,4) NOT NULL, - `lager_platz` int(11) NOT NULL DEFAULT '0', - `batch` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `produktion_arbeitsanweisung` (`produktion_arbeitsanweisung`), - KEY `produktion` (`produktion`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_arbeitsanweisung_batch` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `produktion_arbeitsanweisung` int(11) NOT NULL DEFAULT 0, + `erfolgreich` decimal(14,4) NOT NULL, + `ausschuss` decimal(14,4) NOT NULL, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `batch` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `produktion_arbeitsanweisung` (`produktion_arbeitsanweisung`), + KEY `produktion` (`produktion`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_baugruppen` -- +DROP TABLE IF EXISTS `produktion_baugruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_baugruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `position` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `baugruppennr` varchar(255) NOT NULL DEFAULT '', - `seriennummer` varchar(255) NOT NULL DEFAULT '', - `pruefer` varchar(255) NOT NULL DEFAULT '', - `kommentar` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `statusgeprueft` tinyint(4) NOT NULL DEFAULT '0', - `hauptseriennummerok` tinyint(4) NOT NULL DEFAULT '0', - `unterseriennummerok` tinyint(4) NOT NULL DEFAULT '0', - `istausschuss` tinyint(4) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_baugruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `position` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `baugruppennr` varchar(255) NOT NULL, + `seriennummer` varchar(255) NOT NULL, + `pruefer` varchar(255) NOT NULL, + `kommentar` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `statusgeprueft` tinyint(4) NOT NULL DEFAULT 0, + `hauptseriennummerok` tinyint(4) NOT NULL DEFAULT 0, + `unterseriennummerok` tinyint(4) NOT NULL DEFAULT 0, + `istausschuss` tinyint(4) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_baugruppen_charge` -- +DROP TABLE IF EXISTS `produktion_baugruppen_charge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_baugruppen_charge` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `baugruppe` int(11) NOT NULL DEFAULT '0', - `charge` int(11) NOT NULL DEFAULT '0', - `chargennummer` varchar(32) NOT NULL DEFAULT '', - `mhd` date DEFAULT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `menge` decimal(14,4) NOT NULL DEFAULT '1.0000', - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`), - KEY `baugruppe` (`baugruppe`), - KEY `charge` (`charge`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_baugruppen_charge` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `baugruppe` int(11) NOT NULL DEFAULT 0, + `charge` int(11) NOT NULL DEFAULT 0, + `chargennummer` varchar(32) NOT NULL, + `mhd` date DEFAULT NULL, + `bearbeiter` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 1.0000, + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`), + KEY `baugruppe` (`baugruppe`), + KEY `charge` (`charge`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_charge` -- +DROP TABLE IF EXISTS `produktion_charge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_charge` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `kommentar` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `chargennummer` varchar(32) NOT NULL DEFAULT '', - `mhd` date DEFAULT NULL, - `typ` varchar(32) NOT NULL DEFAULT '', - `anzahl` decimal(14,4) NOT NULL DEFAULT '0.0000', - `ausgelagert` decimal(14,4) NOT NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`), - KEY `artikel` (`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_charge` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) NOT NULL, + `kommentar` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `chargennummer` varchar(32) NOT NULL, + `mhd` date DEFAULT NULL, + `typ` varchar(32) NOT NULL, + `anzahl` decimal(14,4) NOT NULL DEFAULT 0.0000, + `ausgelagert` decimal(14,4) NOT NULL DEFAULT 0.0000, + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`), + KEY `artikel` (`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_etiketten` -- +DROP TABLE IF EXISTS `produktion_etiketten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_etiketten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `etikett` int(11) NOT NULL DEFAULT '0', - `drucker` int(11) NOT NULL DEFAULT '0', - `menge` int(11) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_etiketten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `etikett` int(11) NOT NULL DEFAULT 0, + `drucker` int(11) NOT NULL DEFAULT 0, + `menge` int(11) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_funktionsprotokoll` -- +DROP TABLE IF EXISTS `produktion_funktionsprotokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_funktionsprotokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `position` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `name` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `bild` longblob NOT NULL, - `typ` varchar(255) NOT NULL DEFAULT 'frage', - `widget` varchar(255) NOT NULL DEFAULT '', - `klassen` varchar(255) NOT NULL DEFAULT '', - `beschreibung_textfeld1` varchar(255) NOT NULL DEFAULT '', - `beschreibung_textfeld2` varchar(255) NOT NULL DEFAULT '', - `textfeld1` tinyint(1) NOT NULL DEFAULT '0', - `textfeld2` tinyint(1) NOT NULL DEFAULT '0', - `config` text NOT NULL, - `weiter_bei_fehler` tinyint(1) NOT NULL DEFAULT '0', - `menge` int(11) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_funktionsprotokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `position` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `bild` longblob NOT NULL, + `typ` varchar(255) NOT NULL DEFAULT 'frage', + `widget` varchar(255) NOT NULL, + `klassen` varchar(255) NOT NULL, + `beschreibung_textfeld1` varchar(255) NOT NULL, + `beschreibung_textfeld2` varchar(255) NOT NULL, + `textfeld1` tinyint(1) NOT NULL DEFAULT 0, + `textfeld2` tinyint(1) NOT NULL DEFAULT 0, + `config` text NOT NULL, + `weiter_bei_fehler` tinyint(1) NOT NULL DEFAULT 0, + `menge` int(11) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `bearbeiter` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_funktionsprotokoll_position` -- +DROP TABLE IF EXISTS `produktion_funktionsprotokoll_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_funktionsprotokoll_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `baugruppe` int(11) NOT NULL DEFAULT '0', - `funktionsprotokoll` int(11) NOT NULL DEFAULT '0', - `textfeld1` text NOT NULL, - `textfeld2` text NOT NULL, - `eingabejson` text NOT NULL, - `eingabehtml` text NOT NULL, - `ausgabejson` text NOT NULL, - `ausgabehtml` text NOT NULL, - `ok` int(11) NOT NULL DEFAULT '0', - `fehler` int(11) NOT NULL DEFAULT '0', - `klasse` varchar(255) NOT NULL DEFAULT '', - `kommentar` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `inaktiv` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `funktionsprotokoll` (`funktionsprotokoll`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_funktionsprotokoll_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `baugruppe` int(11) NOT NULL DEFAULT 0, + `funktionsprotokoll` int(11) NOT NULL DEFAULT 0, + `textfeld1` text NOT NULL, + `textfeld2` text NOT NULL, + `eingabejson` text NOT NULL, + `eingabehtml` text NOT NULL, + `ausgabejson` text NOT NULL, + `ausgabehtml` text NOT NULL, + `ok` int(11) NOT NULL DEFAULT 0, + `fehler` int(11) NOT NULL DEFAULT 0, + `klasse` varchar(255) NOT NULL, + `kommentar` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `inaktiv` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `funktionsprotokoll` (`funktionsprotokoll`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_position` -- +DROP TABLE IF EXISTS `produktion_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `preis` decimal(18,8) NOT NULL, - `waehrung` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `geliefert` int(11) NOT NULL, - `geliefert_menge` decimal(14,4) NOT NULL, - `explodiert` int(1) NOT NULL, - `explodiert_parent` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `nachbestelltexternereinkauf` int(1) DEFAULT NULL, - `beistellung` int(11) NOT NULL DEFAULT '0', - `externeproduktion` int(11) NOT NULL DEFAULT '0', - `einheit` varchar(255) NOT NULL DEFAULT '', - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(1024) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `stuecklistestufe` int(15) DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`), - KEY `artikel` (`artikel`), - KEY `explodiert_parent` (`explodiert_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `preis` decimal(18,8) NOT NULL, + `waehrung` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `geliefert` int(11) NOT NULL, + `geliefert_menge` decimal(14,4) NOT NULL, + `explodiert` int(1) NOT NULL, + `explodiert_parent` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `nachbestelltexternereinkauf` int(1) DEFAULT NULL, + `beistellung` int(11) NOT NULL DEFAULT 0, + `externeproduktion` int(11) NOT NULL DEFAULT 0, + `einheit` varchar(255) NOT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `stuecklistestufe` int(15) DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`), + KEY `artikel` (`artikel`), + KEY `explodiert_parent` (`explodiert_parent`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_protokoll` -- +DROP TABLE IF EXISTS `produktion_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `produktion` int(11) NOT NULL DEFAULT '0', - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `produktion` (`produktion`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `produktion` int(11) NOT NULL DEFAULT 0, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `produktion` (`produktion`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktion_unterseriennummern` -- +DROP TABLE IF EXISTS `produktion_unterseriennummern`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktion_unterseriennummern` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `baugruppe` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `seriennummer` varchar(255) NOT NULL DEFAULT '', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `inaktiv` tinyint(1) NOT NULL DEFAULT '0', - `kommentar` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `baugruppe` (`baugruppe`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktion_unterseriennummern` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `baugruppe` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `seriennummer` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `inaktiv` tinyint(1) NOT NULL DEFAULT 0, + `kommentar` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `baugruppe` (`baugruppe`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `produktionslager` -- +DROP TABLE IF EXISTS `produktionslager`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `produktionslager` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `bemerkung` varchar(255) NOT NULL, - `status` varchar(64) NOT NULL, - `bestellung_pos` int(11) NOT NULL, - `vpe` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `produzent` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `produktionslager` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `bemerkung` varchar(255) NOT NULL, + `status` varchar(64) NOT NULL, + `bestellung_pos` int(11) NOT NULL, + `vpe` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `produzent` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `proformarechnung` -- +DROP TABLE IF EXISTS `proformarechnung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `proformarechnung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `aborechnung` int(1) NOT NULL, - `projekt` varchar(222) NOT NULL, - `anlegeart` varchar(255) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `auftrag` varchar(255) NOT NULL, - `auftragid` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `freitext` text NOT NULL, - `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `ust_befreit` int(1) NOT NULL, - `ustbrief` int(11) NOT NULL, - `ustbrief_eingang` int(11) NOT NULL, - `ustbrief_eingang_am` date NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(64) DEFAULT NULL, - `lieferschein` int(11) NOT NULL, - `versandart` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `buchhaltung` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungsstatus` varchar(255) NOT NULL, - `ist` decimal(18,2) NOT NULL DEFAULT '0.00', - `soll` decimal(18,2) NOT NULL DEFAULT '0.00', - `skonto_gegeben` decimal(10,2) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` decimal(10,2) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `versendet_mahnwesen` int(1) NOT NULL, - `mahnwesen` varchar(255) NOT NULL, - `mahnwesen_datum` date NOT NULL, - `mahnwesen_gesperrt` int(1) NOT NULL, - `mahnwesen_internebemerkung` text NOT NULL, - `inbearbeitung` int(1) NOT NULL, - `datev_abgeschlossen` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `doppel` int(1) DEFAULT NULL, - `autodruck_rz` int(1) NOT NULL DEFAULT '0', - `autodruck_periode` int(1) NOT NULL DEFAULT '1', - `autodruck_done` int(1) NOT NULL DEFAULT '0', - `autodruck_anzahlverband` int(11) NOT NULL DEFAULT '0', - `autodruck_anzahlkunde` int(11) NOT NULL DEFAULT '0', - `autodruck_mailverband` int(1) NOT NULL DEFAULT '0', - `autodruck_mailkunde` int(1) NOT NULL DEFAULT '0', - `dta_datei_verband` int(11) NOT NULL DEFAULT '0', - `dta_datei` int(11) NOT NULL DEFAULT '0', - `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT '0', - `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `umsatz_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `erloes_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `mahnwesenfestsetzen` tinyint(1) NOT NULL DEFAULT '0', - `vertriebid` int(11) DEFAULT NULL, - `aktion` varchar(64) NOT NULL DEFAULT '', - `vertrieb` varchar(255) NOT NULL DEFAULT '', - `provision` decimal(10,2) DEFAULT NULL, - `provision_summe` decimal(10,2) DEFAULT NULL, - `gruppe` int(11) NOT NULL DEFAULT '0', - `punkte` int(11) DEFAULT NULL, - `bonuspunkte` int(11) DEFAULT NULL, - `provdatum` date DEFAULT NULL, - `ihrebestellnummer` varchar(255) DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `realrabatt` decimal(10,2) DEFAULT NULL, - `rabatt` decimal(10,2) DEFAULT NULL, - `einzugsdatum` date DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `forderungsverlust_datum` date DEFAULT NULL, - `forderungsverlust_betrag` decimal(10,2) DEFAULT NULL, - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `keinsteuersatz` int(1) DEFAULT NULL, - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `ohne_briefpapier` int(1) DEFAULT NULL, - `lieferid` int(11) NOT NULL DEFAULT '0', - `ansprechpartnerid` int(11) NOT NULL DEFAULT '0', - `systemfreitext` text NOT NULL, - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT '0', - `bezahlt_am` date DEFAULT NULL, - `sprache` varchar(32) NOT NULL DEFAULT '', - `abweichendelieferadresse` int(1) DEFAULT NULL, - `titel` varchar(255) DEFAULT NULL, - `bearbeiterid` int(1) NOT NULL, - `bodyzusatz` text NOT NULL, - `lieferbedingung` text, - `liefername` varchar(255) DEFAULT NULL, - `lieferabteilung` varchar(255) DEFAULT NULL, - `lieferunterabteilung` varchar(255) DEFAULT NULL, - `lieferland` varchar(2) DEFAULT NULL, - `lieferstrasse` varchar(255) DEFAULT NULL, - `lieferort` varchar(255) DEFAULT NULL, - `lieferplz` varchar(20) DEFAULT NULL, - `lieferadresszusatz` varchar(255) DEFAULT NULL, - `lieferansprechpartner` varchar(255) DEFAULT NULL, - `liefertitel` varchar(255) DEFAULT NULL, - `liefergln` varchar(64) DEFAULT NULL, - `zollinformation` int(1) DEFAULT NULL, - `verzollungadresse` int(1) NOT NULL DEFAULT '0', - `verzollinformationen` text, - `verzollungname` varchar(255) NOT NULL DEFAULT '', - `verzollungabteilung` varchar(255) NOT NULL DEFAULT '', - `verzollungunterabteilung` varchar(255) NOT NULL DEFAULT '', - `verzollungland` varchar(2) NOT NULL DEFAULT '', - `verzollungstrasse` varchar(255) NOT NULL DEFAULT '', - `verzollungort` varchar(255) NOT NULL DEFAULT '', - `verzollungplz` varchar(20) NOT NULL DEFAULT '', - `verzollungadresszusatz` varchar(255) NOT NULL DEFAULT '', - `verzollungansprechpartner` varchar(255) NOT NULL DEFAULT '', - `verzollungtitel` varchar(255) NOT NULL DEFAULT '', - `formelmenge` varchar(255) NOT NULL DEFAULT '', - `anzeigesteuer` tinyint(11) NOT NULL DEFAULT '0', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `lieferbundesstaat` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `proformarechnung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `aborechnung` int(1) NOT NULL, + `projekt` varchar(222) NOT NULL, + `anlegeart` varchar(255) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `auftrag` varchar(255) NOT NULL, + `auftragid` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `internebemerkung` text NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `ust_befreit` int(1) NOT NULL, + `ustbrief` int(11) NOT NULL, + `ustbrief_eingang` int(11) NOT NULL, + `ustbrief_eingang_am` date NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(64) DEFAULT NULL, + `lieferschein` int(11) NOT NULL, + `versandart` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `buchhaltung` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungsstatus` varchar(255) NOT NULL, + `ist` decimal(18,2) NOT NULL DEFAULT 0.00, + `soll` decimal(18,2) NOT NULL DEFAULT 0.00, + `skonto_gegeben` decimal(10,2) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` decimal(10,2) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `versendet_mahnwesen` int(1) NOT NULL, + `mahnwesen` varchar(255) NOT NULL, + `mahnwesen_datum` date NOT NULL, + `mahnwesen_gesperrt` int(1) NOT NULL, + `mahnwesen_internebemerkung` text NOT NULL, + `inbearbeitung` int(1) NOT NULL, + `datev_abgeschlossen` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `doppel` int(1) DEFAULT NULL, + `autodruck_rz` int(1) NOT NULL DEFAULT 0, + `autodruck_periode` int(1) NOT NULL DEFAULT 1, + `autodruck_done` int(1) NOT NULL DEFAULT 0, + `autodruck_anzahlverband` int(11) NOT NULL DEFAULT 0, + `autodruck_anzahlkunde` int(11) NOT NULL DEFAULT 0, + `autodruck_mailverband` int(1) NOT NULL DEFAULT 0, + `autodruck_mailkunde` int(1) NOT NULL DEFAULT 0, + `dta_datei_verband` int(11) NOT NULL DEFAULT 0, + `dta_datei` int(11) NOT NULL DEFAULT 0, + `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT 0, + `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `umsatz_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `erloes_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `mahnwesenfestsetzen` tinyint(1) NOT NULL DEFAULT 0, + `vertriebid` int(11) DEFAULT NULL, + `aktion` varchar(64) NOT NULL, + `vertrieb` varchar(255) NOT NULL, + `provision` decimal(10,2) DEFAULT NULL, + `provision_summe` decimal(10,2) DEFAULT NULL, + `gruppe` int(11) NOT NULL DEFAULT 0, + `punkte` int(11) DEFAULT NULL, + `bonuspunkte` int(11) DEFAULT NULL, + `provdatum` date DEFAULT NULL, + `ihrebestellnummer` varchar(255) DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `realrabatt` decimal(10,2) DEFAULT NULL, + `rabatt` decimal(10,2) DEFAULT NULL, + `einzugsdatum` date DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `forderungsverlust_datum` date DEFAULT NULL, + `forderungsverlust_betrag` decimal(10,2) DEFAULT NULL, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `keinsteuersatz` int(1) DEFAULT NULL, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `ohne_briefpapier` int(1) DEFAULT NULL, + `lieferid` int(11) NOT NULL DEFAULT 0, + `ansprechpartnerid` int(11) NOT NULL DEFAULT 0, + `systemfreitext` text NOT NULL, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `angelegtam` datetime DEFAULT NULL, + `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT 0, + `bezahlt_am` date DEFAULT NULL, + `sprache` varchar(32) NOT NULL, + `abweichendelieferadresse` int(1) DEFAULT NULL, + `titel` varchar(255) DEFAULT NULL, + `bearbeiterid` int(1) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text DEFAULT NULL, + `liefername` varchar(255) DEFAULT NULL, + `lieferabteilung` varchar(255) DEFAULT NULL, + `lieferunterabteilung` varchar(255) DEFAULT NULL, + `lieferland` varchar(2) DEFAULT NULL, + `lieferstrasse` varchar(255) DEFAULT NULL, + `lieferort` varchar(255) DEFAULT NULL, + `lieferplz` varchar(20) DEFAULT NULL, + `lieferadresszusatz` varchar(255) DEFAULT NULL, + `lieferansprechpartner` varchar(255) DEFAULT NULL, + `liefertitel` varchar(255) DEFAULT NULL, + `liefergln` varchar(64) DEFAULT NULL, + `zollinformation` int(1) DEFAULT NULL, + `verzollungadresse` int(1) NOT NULL DEFAULT 0, + `verzollinformationen` text DEFAULT NULL, + `verzollungname` varchar(255) NOT NULL, + `verzollungabteilung` varchar(255) NOT NULL, + `verzollungunterabteilung` varchar(255) NOT NULL, + `verzollungland` varchar(2) NOT NULL, + `verzollungstrasse` varchar(255) NOT NULL, + `verzollungort` varchar(255) NOT NULL, + `verzollungplz` varchar(20) NOT NULL, + `verzollungadresszusatz` varchar(255) NOT NULL, + `verzollungansprechpartner` varchar(255) NOT NULL, + `verzollungtitel` varchar(255) NOT NULL, + `formelmenge` varchar(255) NOT NULL, + `anzeigesteuer` tinyint(11) NOT NULL DEFAULT 0, + `bundesstaat` varchar(32) NOT NULL, + `lieferbundesstaat` varchar(32) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `proformarechnung_lieferschein` -- +DROP TABLE IF EXISTS `proformarechnung_lieferschein`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `proformarechnung_lieferschein` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `proformarechnung` int(11) NOT NULL DEFAULT '0', - `lieferschein` int(11) NOT NULL DEFAULT '0', - `lieferschein_position` int(11) NOT NULL DEFAULT '0', - `proformarechnung_position` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `proformarechnung_lieferschein` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `proformarechnung` int(11) NOT NULL DEFAULT 0, + `lieferschein` int(11) NOT NULL DEFAULT 0, + `lieferschein_position` int(11) NOT NULL DEFAULT 0, + `proformarechnung_position` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `proformarechnung_position` -- +DROP TABLE IF EXISTS `proformarechnung_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `proformarechnung_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `proformarechnung` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `explodiert_parent_artikel` int(11) NOT NULL DEFAULT '0', - `keinrabatterlaubt` int(1) DEFAULT NULL, - `punkte` decimal(10,2) NOT NULL, - `bonuspunkte` decimal(10,2) NOT NULL, - `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, - `mlm_abgerechnet` int(1) DEFAULT NULL, - `grundrabatt` decimal(10,2) DEFAULT NULL, - `rabattsync` int(1) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `einheit` varchar(255) NOT NULL DEFAULT '', - `rabatt` decimal(10,2) NOT NULL, - `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', - `herkunftsland` varchar(128) NOT NULL DEFAULT '0', - `artikelnummerkunde` varchar(128) NOT NULL DEFAULT '', - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `auftrag_position_id` int(11) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(255) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `formelmenge` varchar(255) NOT NULL DEFAULT '', - `formelpreis` varchar(255) NOT NULL DEFAULT '', - `geliefert` decimal(14,4) NOT NULL, - PRIMARY KEY (`id`), - KEY `proformarechnung` (`proformarechnung`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `proformarechnung_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `proformarechnung` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `explodiert_parent_artikel` int(11) NOT NULL DEFAULT 0, + `keinrabatterlaubt` int(1) DEFAULT NULL, + `punkte` decimal(10,2) NOT NULL, + `bonuspunkte` decimal(10,2) NOT NULL, + `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, + `mlm_abgerechnet` int(1) DEFAULT NULL, + `grundrabatt` decimal(10,2) DEFAULT NULL, + `rabattsync` int(1) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `einheit` varchar(255) NOT NULL, + `rabatt` decimal(10,2) NOT NULL, + `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', + `herkunftsland` varchar(128) NOT NULL DEFAULT '0', + `artikelnummerkunde` varchar(128) NOT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `auftrag_position_id` int(11) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(255) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `kostenstelle` varchar(10) NOT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `formelmenge` varchar(255) NOT NULL, + `formelpreis` varchar(255) NOT NULL, + `geliefert` decimal(14,4) NOT NULL, + PRIMARY KEY (`id`), + KEY `proformarechnung` (`proformarechnung`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `proformarechnung_protokoll` -- +DROP TABLE IF EXISTS `proformarechnung_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `proformarechnung_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `proformarechnung` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; +CREATE TABLE `proformarechnung_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `proformarechnung` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `projekt` -- +DROP TABLE IF EXISTS `projekt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `projekt` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `name` text NOT NULL, - `abkuerzung` varchar(128) NOT NULL, - `verantwortlicher` text NOT NULL, - `beschreibung` text NOT NULL, - `sonstiges` text NOT NULL, - `aktiv` varchar(10) NOT NULL, - `farbe` varchar(16) NOT NULL, - `autoversand` int(1) NOT NULL, - `checkok` int(1) NOT NULL, - `portocheck` int(1) NOT NULL, - `automailrechnung` int(1) NOT NULL, - `checkname` text NOT NULL, - `zahlungserinnerung` int(1) NOT NULL, - `zahlungsmailbedinungen` text NOT NULL, - `folgebestaetigung` int(1) NOT NULL, - `stornomail` int(1) NOT NULL, - `kundenfreigabe_loeschen` int(1) NOT NULL, - `autobestellung` int(1) NOT NULL, - `speziallieferschein` int(1) NOT NULL, - `lieferscheinbriefpapier` int(11) NOT NULL, - `speziallieferscheinbeschriftung` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `geloescht` int(1) NOT NULL, - `logdatei` text NOT NULL, - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', - `eigenesteuer` int(1) NOT NULL DEFAULT '0', - `druckerlogistikstufe1` int(11) NOT NULL DEFAULT '0', - `druckerlogistikstufe2` int(11) NOT NULL DEFAULT '0', - `selbstabholermail` tinyint(1) NOT NULL DEFAULT '0', - `eanherstellerscan` tinyint(1) NOT NULL DEFAULT '0', - `reservierung` int(1) DEFAULT NULL, - `verkaufszahlendiagram` int(1) DEFAULT NULL, - `oeffentlich` int(1) NOT NULL DEFAULT '0', - `shopzwangsprojekt` int(1) NOT NULL DEFAULT '0', - `kunde` int(11) DEFAULT NULL, - `dpdkundennr` text NOT NULL, - `dhlkundennr` text NOT NULL, - `dhlformat` text, - `dpdformat` text, - `paketmarke_einzeldatei` int(1) DEFAULT NULL, - `dpdpfad` text DEFAULT NULL, - `dhlpfad` text DEFAULT NULL, - `upspfad` text NOT NULL DEFAULT '0', - `dhlintodb` tinyint(1) NOT NULL DEFAULT '0', - `intraship_enabled` tinyint(1) NOT NULL DEFAULT '0', - `intraship_drucker` int(11) NOT NULL DEFAULT '0', - `intraship_testmode` tinyint(1) NOT NULL DEFAULT '0', - `intraship_user` text NOT NULL DEFAULT '', - `intraship_signature` text NOT NULL DEFAULT '', - `intraship_ekp` text NOT NULL DEFAULT '', - `intraship_api_user` text NOT NULL DEFAULT '', - `intraship_api_password` text NOT NULL DEFAULT '', - `intraship_company_name` text NOT NULL DEFAULT '', - `intraship_street_name` text NOT NULL DEFAULT '', - `intraship_street_number` text NOT NULL DEFAULT '', - `intraship_zip` varchar(12) NOT NULL DEFAULT '', - `intraship_country` text NOT NULL DEFAULT 'germany', - `intraship_city` text NOT NULL DEFAULT '', - `intraship_email` text NOT NULL DEFAULT '', - `intraship_phone` text NOT NULL DEFAULT '', - `intraship_internet` text NOT NULL DEFAULT '', - `intraship_contact_person` text NOT NULL DEFAULT '', - `intraship_account_owner` text NOT NULL DEFAULT '', - `intraship_account_number` text NOT NULL DEFAULT '', - `intraship_bank_code` text NOT NULL DEFAULT '', - `intraship_bank_name` text NOT NULL DEFAULT '', - `intraship_iban` text NOT NULL DEFAULT '', - `intraship_bic` text NOT NULL DEFAULT '', - `intraship_WeightInKG` int(11) NOT NULL DEFAULT '5', - `intraship_LengthInCM` int(11) NOT NULL DEFAULT '50', - `intraship_WidthInCM` int(11) NOT NULL DEFAULT '50', - `intraship_HeightInCM` int(11) NOT NULL DEFAULT '50', - `intraship_PackageType` varchar(8) NOT NULL DEFAULT 'PL', - `abrechnungsart` text NOT NULL, - `kommissionierverfahren` text NOT NULL, - `wechselaufeinstufig` int(11) DEFAULT NULL, - `projektuebergreifendkommisionieren` int(1) DEFAULT NULL, - `absendeadresse` text DEFAULT NULL, - `absendename` text DEFAULT NULL, - `absendesignatur` text NOT NULL, - `autodruckrechnung` int(1) DEFAULT NULL, - `autodruckversandbestaetigung` int(1) DEFAULT NULL, - `automailversandbestaetigung` int(1) DEFAULT NULL, - `autodrucklieferschein` int(1) DEFAULT NULL, - `automaillieferschein` int(1) DEFAULT NULL, - `autodruckstorno` int(1) DEFAULT NULL, - `autodruckanhang` int(1) DEFAULT NULL, - `automailanhang` int(1) DEFAULT NULL, - `autodruckerrechnung` int(11) NOT NULL DEFAULT '1', - `autodruckerlieferschein` int(11) NOT NULL DEFAULT '1', - `autodruckeranhang` int(11) NOT NULL DEFAULT '1', - `autodruckrechnungmenge` int(11) NOT NULL DEFAULT '1', - `autodrucklieferscheinmenge` int(11) NOT NULL DEFAULT '1', - `eigenernummernkreis` int(11) DEFAULT NULL, - `next_angebot` text DEFAULT NULL, - `next_auftrag` text DEFAULT NULL, - `next_rechnung` text DEFAULT NULL, - `next_lieferschein` text DEFAULT NULL, - `next_arbeitsnachweis` text DEFAULT NULL, - `next_reisekosten` text DEFAULT NULL, - `next_bestellung` text DEFAULT NULL, - `next_gutschrift` text DEFAULT NULL, - `next_kundennummer` text DEFAULT NULL, - `next_lieferantennummer` text DEFAULT NULL, - `next_mitarbeiternummer` text DEFAULT NULL, - `next_waren` text DEFAULT NULL, - `next_produktion` text DEFAULT NULL, - `next_sonstiges` text DEFAULT NULL, - `next_anfrage` text DEFAULT NULL, - `next_artikelnummer` text DEFAULT NULL, - `gesamtstunden_max` decimal(10,2) NOT NULL, - `auftragid` int(11) DEFAULT NULL, - `dhlzahlungmandant` varchar(3) NOT NULL, - `dhlretourenschein` int(1) NOT NULL, - `land` varchar(2) NOT NULL DEFAULT 'DE', - `etiketten_positionen` tinyint(1) NOT NULL DEFAULT '0', - `etiketten_drucker` int(11) NOT NULL DEFAULT '0', - `etiketten_art` int(11) NOT NULL DEFAULT '0', - `seriennummernerfassen` tinyint(1) NOT NULL DEFAULT '1', - `versandzweigeteilt` tinyint(1) NOT NULL DEFAULT '0', - `nachnahmecheck` tinyint(1) NOT NULL DEFAULT '1', - `kasse_lieferschein_anlegen` tinyint(1) NOT NULL DEFAULT '0', - `kasse_lagerprozess` text NOT NULL DEFAULT '', - `kasse_belegausgabe` text NOT NULL DEFAULT '', - `kasse_preisgruppe` int(11) NOT NULL DEFAULT '0', - `kasse_text_bemerkung` text NOT NULL DEFAULT 'Interne Bemerkung', - `kasse_text_freitext` text NOT NULL DEFAULT 'Text auf Beleg', - `kasse_drucker` int(11) NOT NULL DEFAULT '0', - `kasse_lieferschein` int(11) NOT NULL DEFAULT '1', - `kasse_rechnung` int(11) NOT NULL DEFAULT '1', - `kasse_lieferschein_doppel` int(11) NOT NULL DEFAULT '1', - `kasse_lager` int(11) NOT NULL DEFAULT '0', - `kasse_konto` int(11) NOT NULL DEFAULT '0', - `kasse_laufkundschaft` int(11) NOT NULL DEFAULT '0', - `kasse_rabatt_artikel` int(11) NOT NULL DEFAULT '0', - `kasse_zahlung_bar` tinyint(1) NOT NULL DEFAULT '1', - `kasse_zahlung_ec` tinyint(1) NOT NULL DEFAULT '1', - `kasse_zahlung_kreditkarte` tinyint(1) NOT NULL DEFAULT '1', - `kasse_zahlung_ueberweisung` tinyint(1) NOT NULL DEFAULT '1', - `kasse_zahlung_paypal` tinyint(1) NOT NULL DEFAULT '0', - `kasse_extra_keinbeleg` tinyint(1) NOT NULL DEFAULT '0', - `kasse_extra_rechnung` tinyint(1) NOT NULL DEFAULT '1', - `kasse_extra_quittung` tinyint(1) NOT NULL DEFAULT '0', - `kasse_extra_gutschein` tinyint(1) NOT NULL DEFAULT '0', - `kasse_extra_rabatt_prozent` tinyint(1) NOT NULL DEFAULT '1', - `kasse_extra_rabatt_euro` tinyint(1) NOT NULL DEFAULT '0', - `kasse_adresse_erweitert` tinyint(1) NOT NULL DEFAULT '1', - `kasse_zahlungsauswahl_zwang` tinyint(1) NOT NULL DEFAULT '1', - `kasse_button_entnahme` tinyint(1) NOT NULL DEFAULT '0', - `kasse_button_trinkgeld` tinyint(1) NOT NULL DEFAULT '0', - `kasse_vorauswahl_anrede` text NOT NULL DEFAULT 'herr', - `kasse_erweiterte_lagerabfrage` tinyint(1) NOT NULL DEFAULT '0', - `filialadresse` int(11) NOT NULL DEFAULT '0', - `versandprojektfiliale` int(11) NOT NULL DEFAULT '0', - `differenz_auslieferung_tage` int(11) NOT NULL DEFAULT '2', - `autostuecklistenanpassung` int(11) NOT NULL DEFAULT '1', - `dpdendung` text NOT NULL DEFAULT '.csv', - `dhlendung` text NOT NULL DEFAULT '.csv', - `tracking_substr_start` int(11) NOT NULL DEFAULT '8', - `tracking_remove_kundennummer` tinyint(11) NOT NULL DEFAULT '1', - `tracking_substr_length` tinyint(11) NOT NULL DEFAULT '0', - `go_drucker` int(11) NOT NULL DEFAULT '0', - `go_apiurl_prefix` text NOT NULL DEFAULT '', - `go_apiurl_postfix` text NOT NULL DEFAULT '', - `go_apiurl_user` text NOT NULL DEFAULT '', - `go_username` text NOT NULL DEFAULT '', - `go_password` text NOT NULL DEFAULT '', - `go_ax4nr` text NOT NULL DEFAULT '', - `go_name1` text NOT NULL DEFAULT '', - `go_name2` text NOT NULL DEFAULT '', - `go_abteilung` text NOT NULL DEFAULT '', - `go_strasse1` text NOT NULL DEFAULT '', - `go_strasse2` text NOT NULL DEFAULT '', - `go_hausnummer` varchar(10) NOT NULL DEFAULT '', - `go_plz` text DEFAULT NULL, - `go_ort` text NOT NULL DEFAULT '', - `go_land` text NOT NULL DEFAULT '', - `go_standardgewicht` decimal(10,2) DEFAULT NULL, - `go_format` text DEFAULT NULL, - `go_ausgabe` text DEFAULT NULL, - `intraship_exportgrund` text NOT NULL DEFAULT '', - `billsafe_merchantId` text NOT NULL DEFAULT '', - `billsafe_merchantLicenseSandbox` text NOT NULL DEFAULT '', - `billsafe_merchantLicenseLive` text NOT NULL DEFAULT '', - `billsafe_applicationSignature` text NOT NULL DEFAULT '', - `billsafe_applicationVersion` text NOT NULL DEFAULT '', - `secupay_apikey` text NOT NULL DEFAULT '', - `secupay_url` text NOT NULL DEFAULT '', - `secupay_demo` tinyint(1) NOT NULL DEFAULT '0', - `mahnwesen` tinyint(1) NOT NULL DEFAULT '1', - `status` text NOT NULL DEFAULT 'gestartet', - `kasse_bondrucker` int(11) NOT NULL DEFAULT '0', - `kasse_bondrucker_aktiv` tinyint(1) NOT NULL DEFAULT '0', - `kasse_bondrucker_qrcode` tinyint(1) NOT NULL DEFAULT '0', - `kasse_bon_zeile1` text NOT NULL DEFAULT 'Xentral Store', - `kasse_bon_zeile2` text NOT NULL, - `kasse_bon_zeile3` text NOT NULL, - `kasse_zahlung_bar_bezahlt` tinyint(1) NOT NULL DEFAULT '0', - `kasse_zahlung_ec_bezahlt` tinyint(1) NOT NULL DEFAULT '0', - `kasse_zahlung_kreditkarte_bezahlt` tinyint(1) NOT NULL DEFAULT '0', - `kasse_zahlung_ueberweisung_bezahlt` tinyint(1) NOT NULL DEFAULT '0', - `kasse_zahlung_paypal_bezahlt` tinyint(1) NOT NULL DEFAULT '0', - `kasse_quittung_rechnung` tinyint(1) NOT NULL DEFAULT '0', - `kasse_button_einlage` tinyint(1) NOT NULL DEFAULT '0', - `kasse_button_schublade` tinyint(1) NOT NULL DEFAULT '0', - `produktionauftragautomatischfreigeben` tinyint(1) NOT NULL DEFAULT '0', - `versandlagerplatzanzeigen` tinyint(1) NOT NULL DEFAULT '0', - `versandartikelnameausstammdaten` tinyint(1) NOT NULL DEFAULT '0', - `projektlager` int(1) NOT NULL DEFAULT '0', - `tracing_substr_length` tinyint(11) NOT NULL DEFAULT '0', - `intraship_partnerid` text NOT NULL DEFAULT '01', - `intraship_retourenlabel` tinyint(1) NOT NULL DEFAULT '0', - `intraship_retourenaccount` varchar(16) NOT NULL DEFAULT '', - `absendegrussformel` text NOT NULL, - `autodruckrechnungdoppel` int(1) NOT NULL DEFAULT '0', - `intraship_partnerid_welt` text NOT NULL DEFAULT '', - `next_kalkulation` text NOT NULL, - `next_preisanfrage` text NOT NULL, - `next_proformarechnung` text NOT NULL, - `next_verbindlichkeit` text DEFAULT NULL, - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `mahnwesen_abweichender_versender` varchar(40) NOT NULL DEFAULT '', - `lagerplatzlieferscheinausblenden` int(11) NOT NULL DEFAULT '0', - `etiketten_sort` tinyint(2) NOT NULL DEFAULT '0', - `eanherstellerscanerlauben` tinyint(1) NOT NULL DEFAULT '0', - `chargenerfassen` tinyint(1) NOT NULL DEFAULT '0', - `mhderfassen` tinyint(1) NOT NULL DEFAULT '0', - `autodruckrechnungstufe1` tinyint(1) NOT NULL DEFAULT '0', - `autodruckrechnungstufe1menge` tinyint(1) NOT NULL DEFAULT '1', - `autodruckrechnungstufe1mail` tinyint(1) NOT NULL DEFAULT '0', - `autodruckkommissionierscheinstufe1` tinyint(1) NOT NULL DEFAULT '0', - `autodruckkommissionierscheinstufe1menge` tinyint(1) NOT NULL DEFAULT '1', - `kasse_bondrucker_freifeld` tinyint(1) NOT NULL DEFAULT '0', - `kasse_bondrucker_anzahl` int(11) NOT NULL DEFAULT '1', - `kasse_rksv_aktiv` tinyint(1) NOT NULL DEFAULT '0', - `kasse_rksv_tool` text NOT NULL DEFAULT '', - `kasse_rksv_kartenleser` text NOT NULL DEFAULT '', - `kasse_rksv_karteseriennummer` text NOT NULL DEFAULT '', - `kasse_rksv_kartepin` text NOT NULL DEFAULT '', - `kasse_rksv_aeskey` text NOT NULL DEFAULT '', - `kasse_rksv_publiczertifikat` text NOT NULL, - `kasse_rksv_publiczertifikatkette` text NOT NULL, - `kasse_rksv_kassenid` text NOT NULL DEFAULT '', - `kasse_gutschrift` int(11) NOT NULL DEFAULT '1', - `rechnungerzeugen` tinyint(1) NOT NULL DEFAULT '0', - `pos_artikeltexteuebernehmen` tinyint(1) NOT NULL DEFAULT '0', - `pos_anzeigenetto` tinyint(1) NOT NULL DEFAULT '0', - `pos_zwischenspeichern` tinyint(1) NOT NULL DEFAULT '0', - `kasse_button_belegladen` tinyint(1) NOT NULL DEFAULT '0', - `kasse_button_storno` tinyint(1) NOT NULL DEFAULT '0', - `pos_kundenalleprojekte` tinyint(1) NOT NULL DEFAULT '0', - `pos_artikelnurausprojekt` tinyint(1) NOT NULL DEFAULT '0', - `allechargenmhd` tinyint(1) NOT NULL DEFAULT '0', - `anzeigesteuerbelege` int(11) NOT NULL DEFAULT '0', - `pos_grosseansicht` tinyint(1) NOT NULL DEFAULT '0', - `preisberechnung` int(11) NOT NULL DEFAULT '0', - `steuernummer` varchar(32) NOT NULL DEFAULT '', - `paketmarkeautodrucken` tinyint(1) NOT NULL DEFAULT '0', - `orderpicking_sort` varchar(26) NOT NULL DEFAULT '', - `deactivateautoshipping` tinyint(1) NOT NULL DEFAULT '0', - `pos_sumarticles` tinyint(1) NOT NULL DEFAULT '0', - `manualtracking` tinyint(1) NOT NULL DEFAULT '0', - `zahlungsweise` text NOT NULL DEFAULT '', - `zahlungsweiselieferant` text NOT NULL DEFAULT '', - `versandart` text NOT NULL DEFAULT '', - `ups_api_user` text NOT NULL DEFAULT '', - `ups_api_password` text NOT NULL DEFAULT '', - `ups_api_key` text NOT NULL DEFAULT '', - `ups_accountnumber` text NOT NULL DEFAULT '', - `ups_company_name` text NOT NULL DEFAULT '', - `ups_street_name` text NOT NULL DEFAULT '', - `ups_street_number` varchar(10) NOT NULL DEFAULT '', - `ups_zip` text NOT NULL DEFAULT '', - `ups_country` varchar(2) NOT NULL DEFAULT '', - `ups_city` text NOT NULL DEFAULT '', - `ups_email` text NOT NULL DEFAULT '', - `ups_phone` text NOT NULL DEFAULT '', - `ups_internet` text NOT NULL DEFAULT '', - `ups_contact_person` text NOT NULL DEFAULT '', - `ups_WeightInKG` decimal(10,2) DEFAULT NULL, - `ups_LengthInCM` decimal(10,2) DEFAULT NULL, - `ups_WidthInCM` decimal(10,2) DEFAULT NULL, - `ups_HeightInCM` decimal(10,2) DEFAULT NULL, - `ups_drucker` int(11) NOT NULL DEFAULT '0', - `ups_ausgabe` text NOT NULL DEFAULT 'GIF', - `ups_package_code` text NOT NULL DEFAULT '02', - `ups_package_description` text NOT NULL DEFAULT 'Customer Supplied', - `ups_service_code` text NOT NULL DEFAULT '11', - `ups_service_description` text NOT NULL DEFAULT 'UPS Standard', - `email_html_template` text, - `druckanhang` int(1) DEFAULT NULL, - `mailanhang` int(1) DEFAULT NULL, - `next_retoure` text DEFAULT '', - `next_goodspostingdocument` text DEFAULT '', - `pos_disable_single_entries` tinyint(1) DEFAULT '0', - `pos_disable_single_day` tinyint(1) DEFAULT '0', - `pos_disable_counting_protocol` tinyint(1) DEFAULT '0', - `pos_disable_signature` tinyint(1) DEFAULT '0', - `steuer_erloese_inland_normal` varchar(10) DEFAULT '', - `steuer_aufwendung_inland_normal` varchar(10) DEFAULT '', - `steuer_erloese_inland_ermaessigt` varchar(10) DEFAULT '', - `steuer_aufwendung_inland_ermaessigt` varchar(10) DEFAULT '', - `steuer_erloese_inland_nichtsteuerbar` varchar(10) DEFAULT '', - `steuer_aufwendung_inland_nichtsteuerbar` varchar(10) DEFAULT '', - `steuer_erloese_inland_innergemeinschaftlich` varchar(10) DEFAULT '', - `steuer_aufwendung_inland_innergemeinschaftlich` varchar(10) DEFAULT '', - `steuer_erloese_inland_eunormal` varchar(10) DEFAULT '', - `steuer_aufwendung_inland_eunormal` varchar(10) DEFAULT '', - `steuer_erloese_inland_euermaessigt` varchar(10) DEFAULT '', - `steuer_aufwendung_inland_euermaessigt` varchar(10) DEFAULT '', - `steuer_erloese_inland_export` varchar(10) DEFAULT '', - `steuer_aufwendung_inland_import` varchar(10) DEFAULT '', - `create_proformainvoice` tinyint(1) DEFAULT '0', - `print_proformainvoice` tinyint(1) DEFAULT '0', - `proformainvoice_amount` int(11) DEFAULT '0', - `anzeigesteuerbelegebestellung` tinyint(1) DEFAULT '0', - `autobestbeforebatch` tinyint(1) DEFAULT '0', - `allwaysautobestbeforebatch` tinyint(1) DEFAULT '0', - `kommissionierlauflieferschein` tinyint(1) NOT NULL DEFAULT '0', - `intraship_exportdrucker` int(11) NOT NULL DEFAULT '0', - `multiorderpicking` tinyint(1) NOT NULL DEFAULT '0', - `standardlager` int(11) NOT NULL DEFAULT '0', - `standardlagerproduktion` int(11) NOT NULL DEFAULT '0', - `klarna_merchantid` text NOT NULL DEFAULT '', - `klarna_sharedsecret` text NOT NULL DEFAULT '', - `nurlagerartikel` tinyint(1) NOT NULL DEFAULT '1', - `paketmarkedrucken` tinyint(1) NOT NULL DEFAULT '0', - `lieferscheinedrucken` tinyint(1) NOT NULL DEFAULT '0', - `lieferscheinedruckenmenge` int(11) NOT NULL DEFAULT '0', - `auftragdrucken` tinyint(1) NOT NULL DEFAULT '0', - `auftragdruckenmenge` int(11) NOT NULL DEFAULT '0', - `druckennachtracking` tinyint(1) NOT NULL DEFAULT '0', - `exportdruckrechnungstufe1` tinyint(1) NOT NULL DEFAULT '0', - `exportdruckrechnungstufe1menge` int(11) NOT NULL DEFAULT '0', - `exportdruckrechnung` tinyint(1) NOT NULL DEFAULT '0', - `exportdruckrechnungmenge` int(11) NOT NULL DEFAULT '0', - `kommissionierlistestufe1` tinyint(1) NOT NULL DEFAULT '0', - `kommissionierlistestufe1menge` int(11) NOT NULL DEFAULT '0', - `fremdnummerscanerlauben` tinyint(1) NOT NULL DEFAULT '0', - `zvt100url` text NOT NULL DEFAULT '', - `zvt100port` varchar(5) NOT NULL DEFAULT '', - `production_show_only_needed_storages` tinyint(1) NOT NULL DEFAULT '0', - `produktion_extra_seiten` tinyint(1) NOT NULL DEFAULT '0', - `kasse_button_trinkgeldeckredit` tinyint(1) NOT NULL DEFAULT '0', - `kasse_autologout` int(11) NOT NULL DEFAULT '0', - `kasse_autologout_abschluss` int(11) NOT NULL DEFAULT '0', - `next_receiptdocument` text DEFAULT '', - `taxfromdoctypesettings` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `abkuerzung` (`abkuerzung`), - KEY `kunde` (`kunde`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `projekt` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `name` text NOT NULL, + `abkuerzung` varchar(128) NOT NULL, + `verantwortlicher` text NOT NULL, + `beschreibung` text NOT NULL, + `sonstiges` text NOT NULL, + `aktiv` varchar(10) NOT NULL, + `farbe` varchar(16) NOT NULL, + `autoversand` int(1) NOT NULL, + `checkok` int(1) NOT NULL, + `portocheck` int(1) NOT NULL, + `automailrechnung` int(1) NOT NULL, + `checkname` text NOT NULL, + `zahlungserinnerung` int(1) NOT NULL, + `zahlungsmailbedinungen` text NOT NULL, + `folgebestaetigung` int(1) NOT NULL, + `stornomail` int(1) NOT NULL, + `kundenfreigabe_loeschen` int(1) NOT NULL, + `autobestellung` int(1) NOT NULL, + `speziallieferschein` int(1) NOT NULL, + `lieferscheinbriefpapier` int(11) NOT NULL, + `speziallieferscheinbeschriftung` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `geloescht` int(1) NOT NULL, + `logdatei` text NOT NULL, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', + `eigenesteuer` int(1) NOT NULL DEFAULT 0, + `druckerlogistikstufe1` int(11) NOT NULL DEFAULT 0, + `druckerlogistikstufe2` int(11) NOT NULL DEFAULT 0, + `selbstabholermail` tinyint(1) NOT NULL DEFAULT 0, + `eanherstellerscan` tinyint(1) NOT NULL DEFAULT 0, + `reservierung` int(1) DEFAULT NULL, + `verkaufszahlendiagram` int(1) DEFAULT NULL, + `oeffentlich` int(1) NOT NULL DEFAULT 0, + `shopzwangsprojekt` int(1) NOT NULL DEFAULT 0, + `kunde` int(11) DEFAULT NULL, + `dpdkundennr` text NOT NULL, + `dhlkundennr` text NOT NULL, + `dhlformat` text DEFAULT NULL, + `dpdformat` text DEFAULT NULL, + `paketmarke_einzeldatei` int(1) DEFAULT NULL, + `dpdpfad` text DEFAULT NULL, + `dhlpfad` text DEFAULT NULL, + `upspfad` varchar(64) NOT NULL DEFAULT '0', + `dhlintodb` tinyint(1) NOT NULL DEFAULT 0, + `intraship_enabled` tinyint(1) NOT NULL DEFAULT 0, + `intraship_drucker` int(11) NOT NULL DEFAULT 0, + `intraship_testmode` tinyint(1) NOT NULL DEFAULT 0, + `intraship_user` text NOT NULL, + `intraship_signature` text NOT NULL, + `intraship_ekp` text NOT NULL, + `intraship_api_user` text NOT NULL, + `intraship_api_password` text NOT NULL, + `intraship_company_name` text NOT NULL, + `intraship_street_name` text NOT NULL, + `intraship_street_number` text NOT NULL, + `intraship_zip` varchar(12) NOT NULL, + `intraship_country` varchar(128) NOT NULL DEFAULT 'germany', + `intraship_city` text NOT NULL, + `intraship_email` text NOT NULL, + `intraship_phone` text NOT NULL, + `intraship_internet` text NOT NULL, + `intraship_contact_person` text NOT NULL, + `intraship_account_owner` text NOT NULL, + `intraship_account_number` text NOT NULL, + `intraship_bank_code` text NOT NULL, + `intraship_bank_name` text NOT NULL, + `intraship_iban` text NOT NULL, + `intraship_bic` text NOT NULL, + `intraship_WeightInKG` int(11) NOT NULL DEFAULT 5, + `intraship_LengthInCM` int(11) NOT NULL DEFAULT 50, + `intraship_WidthInCM` int(11) NOT NULL DEFAULT 50, + `intraship_HeightInCM` int(11) NOT NULL DEFAULT 50, + `intraship_PackageType` varchar(8) NOT NULL DEFAULT 'pl', + `abrechnungsart` text NOT NULL, + `kommissionierverfahren` text NOT NULL, + `wechselaufeinstufig` int(11) DEFAULT NULL, + `projektuebergreifendkommisionieren` int(1) DEFAULT NULL, + `absendeadresse` text DEFAULT NULL, + `absendename` text DEFAULT NULL, + `absendesignatur` text NOT NULL, + `autodruckrechnung` int(1) DEFAULT NULL, + `autodruckversandbestaetigung` int(1) DEFAULT NULL, + `automailversandbestaetigung` int(1) DEFAULT NULL, + `autodrucklieferschein` int(1) DEFAULT NULL, + `automaillieferschein` int(1) DEFAULT NULL, + `autodruckstorno` int(1) DEFAULT NULL, + `autodruckanhang` int(1) DEFAULT NULL, + `automailanhang` int(1) DEFAULT NULL, + `autodruckerrechnung` int(11) NOT NULL DEFAULT 1, + `autodruckerlieferschein` int(11) NOT NULL DEFAULT 1, + `autodruckeranhang` int(11) NOT NULL DEFAULT 1, + `autodruckrechnungmenge` int(11) NOT NULL DEFAULT 1, + `autodrucklieferscheinmenge` int(11) NOT NULL DEFAULT 1, + `eigenernummernkreis` int(11) DEFAULT NULL, + `next_angebot` text DEFAULT NULL, + `next_auftrag` text DEFAULT NULL, + `next_rechnung` text DEFAULT NULL, + `next_lieferschein` text DEFAULT NULL, + `next_arbeitsnachweis` text DEFAULT NULL, + `next_reisekosten` text DEFAULT NULL, + `next_bestellung` text DEFAULT NULL, + `next_gutschrift` text DEFAULT NULL, + `next_kundennummer` text DEFAULT NULL, + `next_lieferantennummer` text DEFAULT NULL, + `next_mitarbeiternummer` text DEFAULT NULL, + `next_waren` text DEFAULT NULL, + `next_produktion` text DEFAULT NULL, + `next_sonstiges` text DEFAULT NULL, + `next_anfrage` text DEFAULT NULL, + `next_artikelnummer` text DEFAULT NULL, + `gesamtstunden_max` decimal(10,2) NOT NULL, + `auftragid` int(11) DEFAULT NULL, + `dhlzahlungmandant` varchar(3) NOT NULL, + `dhlretourenschein` int(1) NOT NULL, + `land` varchar(2) NOT NULL DEFAULT 'de', + `etiketten_positionen` tinyint(1) NOT NULL DEFAULT 0, + `etiketten_drucker` int(11) NOT NULL DEFAULT 0, + `etiketten_art` int(11) NOT NULL DEFAULT 0, + `seriennummernerfassen` tinyint(1) NOT NULL DEFAULT 1, + `versandzweigeteilt` tinyint(1) NOT NULL DEFAULT 0, + `nachnahmecheck` tinyint(1) NOT NULL DEFAULT 1, + `kasse_lieferschein_anlegen` tinyint(1) NOT NULL DEFAULT 0, + `kasse_lagerprozess` text NOT NULL, + `kasse_belegausgabe` text NOT NULL, + `kasse_preisgruppe` int(11) NOT NULL DEFAULT 0, + `kasse_text_bemerkung` varchar(255) NOT NULL DEFAULT 'interne bemerkung', + `kasse_text_freitext` varchar(255) NOT NULL DEFAULT 'text auf beleg', + `kasse_drucker` int(11) NOT NULL DEFAULT 0, + `kasse_lieferschein` int(11) NOT NULL DEFAULT 1, + `kasse_rechnung` int(11) NOT NULL DEFAULT 1, + `kasse_lieferschein_doppel` int(11) NOT NULL DEFAULT 1, + `kasse_lager` int(11) NOT NULL DEFAULT 0, + `kasse_konto` int(11) NOT NULL DEFAULT 0, + `kasse_laufkundschaft` int(11) NOT NULL DEFAULT 0, + `kasse_rabatt_artikel` int(11) NOT NULL DEFAULT 0, + `kasse_zahlung_bar` tinyint(1) NOT NULL DEFAULT 1, + `kasse_zahlung_ec` tinyint(1) NOT NULL DEFAULT 1, + `kasse_zahlung_kreditkarte` tinyint(1) NOT NULL DEFAULT 1, + `kasse_zahlung_ueberweisung` tinyint(1) NOT NULL DEFAULT 1, + `kasse_zahlung_paypal` tinyint(1) NOT NULL DEFAULT 0, + `kasse_extra_keinbeleg` tinyint(1) NOT NULL DEFAULT 0, + `kasse_extra_rechnung` tinyint(1) NOT NULL DEFAULT 1, + `kasse_extra_quittung` tinyint(1) NOT NULL DEFAULT 0, + `kasse_extra_gutschein` tinyint(1) NOT NULL DEFAULT 0, + `kasse_extra_rabatt_prozent` tinyint(1) NOT NULL DEFAULT 1, + `kasse_extra_rabatt_euro` tinyint(1) NOT NULL DEFAULT 0, + `kasse_adresse_erweitert` tinyint(1) NOT NULL DEFAULT 1, + `kasse_zahlungsauswahl_zwang` tinyint(1) NOT NULL DEFAULT 1, + `kasse_button_entnahme` tinyint(1) NOT NULL DEFAULT 0, + `kasse_button_trinkgeld` tinyint(1) NOT NULL DEFAULT 0, + `kasse_vorauswahl_anrede` varchar(64) NOT NULL DEFAULT 'herr', + `kasse_erweiterte_lagerabfrage` tinyint(1) NOT NULL DEFAULT 0, + `filialadresse` int(11) NOT NULL DEFAULT 0, + `versandprojektfiliale` int(11) NOT NULL DEFAULT 0, + `differenz_auslieferung_tage` int(11) NOT NULL DEFAULT 2, + `autostuecklistenanpassung` int(11) NOT NULL DEFAULT 1, + `dpdendung` varchar(32) NOT NULL DEFAULT '.csv', + `dhlendung` varchar(32) NOT NULL DEFAULT '.csv', + `tracking_substr_start` int(11) NOT NULL DEFAULT 8, + `tracking_remove_kundennummer` tinyint(11) NOT NULL DEFAULT 1, + `tracking_substr_length` tinyint(11) NOT NULL DEFAULT 0, + `go_drucker` int(11) NOT NULL DEFAULT 0, + `go_apiurl_prefix` text NOT NULL, + `go_apiurl_postfix` text NOT NULL, + `go_apiurl_user` text NOT NULL, + `go_username` text NOT NULL, + `go_password` text NOT NULL, + `go_ax4nr` text NOT NULL, + `go_name1` text NOT NULL, + `go_name2` text NOT NULL, + `go_abteilung` text NOT NULL, + `go_strasse1` text NOT NULL, + `go_strasse2` text NOT NULL, + `go_hausnummer` varchar(10) NOT NULL, + `go_plz` text DEFAULT NULL, + `go_ort` text NOT NULL, + `go_land` text NOT NULL, + `go_standardgewicht` decimal(10,2) DEFAULT NULL, + `go_format` text DEFAULT NULL, + `go_ausgabe` text DEFAULT NULL, + `intraship_exportgrund` text NOT NULL, + `billsafe_merchantId` text NOT NULL, + `billsafe_merchantLicenseSandbox` text NOT NULL, + `billsafe_merchantLicenseLive` text NOT NULL, + `billsafe_applicationSignature` text NOT NULL, + `billsafe_applicationVersion` text NOT NULL, + `secupay_apikey` text NOT NULL, + `secupay_url` text NOT NULL, + `secupay_demo` tinyint(1) NOT NULL DEFAULT 0, + `mahnwesen` tinyint(1) NOT NULL DEFAULT 1, + `status` varchar(64) NOT NULL DEFAULT 'gestartet', + `kasse_bondrucker` int(11) NOT NULL DEFAULT 0, + `kasse_bondrucker_aktiv` tinyint(1) NOT NULL DEFAULT 0, + `kasse_bondrucker_qrcode` tinyint(1) NOT NULL DEFAULT 0, + `kasse_bon_zeile1` varchar(255) NOT NULL DEFAULT 'xentral store', + `kasse_bon_zeile2` text NOT NULL, + `kasse_bon_zeile3` text NOT NULL, + `kasse_zahlung_bar_bezahlt` tinyint(1) NOT NULL DEFAULT 0, + `kasse_zahlung_ec_bezahlt` tinyint(1) NOT NULL DEFAULT 0, + `kasse_zahlung_kreditkarte_bezahlt` tinyint(1) NOT NULL DEFAULT 0, + `kasse_zahlung_ueberweisung_bezahlt` tinyint(1) NOT NULL DEFAULT 0, + `kasse_zahlung_paypal_bezahlt` tinyint(1) NOT NULL DEFAULT 0, + `kasse_quittung_rechnung` tinyint(1) NOT NULL DEFAULT 0, + `kasse_button_einlage` tinyint(1) NOT NULL DEFAULT 0, + `kasse_button_schublade` tinyint(1) NOT NULL DEFAULT 0, + `produktionauftragautomatischfreigeben` tinyint(1) NOT NULL DEFAULT 0, + `versandlagerplatzanzeigen` tinyint(1) NOT NULL DEFAULT 0, + `versandartikelnameausstammdaten` tinyint(1) NOT NULL DEFAULT 0, + `projektlager` int(1) NOT NULL DEFAULT 0, + `tracing_substr_length` tinyint(11) NOT NULL DEFAULT 0, + `intraship_partnerid` varchar(32) NOT NULL DEFAULT '01', + `intraship_retourenlabel` tinyint(1) NOT NULL DEFAULT 0, + `intraship_retourenaccount` varchar(16) NOT NULL, + `absendegrussformel` text NOT NULL, + `autodruckrechnungdoppel` int(1) NOT NULL DEFAULT 0, + `intraship_partnerid_welt` text NOT NULL, + `next_kalkulation` text NOT NULL, + `next_preisanfrage` text NOT NULL, + `next_proformarechnung` text NOT NULL, + `next_verbindlichkeit` text DEFAULT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `mahnwesen_abweichender_versender` varchar(40) NOT NULL, + `lagerplatzlieferscheinausblenden` int(11) NOT NULL DEFAULT 0, + `etiketten_sort` tinyint(2) NOT NULL DEFAULT 0, + `eanherstellerscanerlauben` tinyint(1) NOT NULL DEFAULT 0, + `chargenerfassen` tinyint(1) NOT NULL DEFAULT 0, + `mhderfassen` tinyint(1) NOT NULL DEFAULT 0, + `autodruckrechnungstufe1` tinyint(1) NOT NULL DEFAULT 0, + `autodruckrechnungstufe1menge` tinyint(1) NOT NULL DEFAULT 1, + `autodruckrechnungstufe1mail` tinyint(1) NOT NULL DEFAULT 0, + `autodruckkommissionierscheinstufe1` tinyint(1) NOT NULL DEFAULT 0, + `autodruckkommissionierscheinstufe1menge` tinyint(1) NOT NULL DEFAULT 1, + `kasse_bondrucker_freifeld` tinyint(1) NOT NULL DEFAULT 0, + `kasse_bondrucker_anzahl` int(11) NOT NULL DEFAULT 1, + `kasse_rksv_aktiv` tinyint(1) NOT NULL DEFAULT 0, + `kasse_rksv_tool` text NOT NULL, + `kasse_rksv_kartenleser` text NOT NULL, + `kasse_rksv_karteseriennummer` text NOT NULL, + `kasse_rksv_kartepin` text NOT NULL, + `kasse_rksv_aeskey` text NOT NULL, + `kasse_rksv_publiczertifikat` text NOT NULL, + `kasse_rksv_publiczertifikatkette` text NOT NULL, + `kasse_rksv_kassenid` text NOT NULL, + `kasse_gutschrift` int(11) NOT NULL DEFAULT 1, + `rechnungerzeugen` tinyint(1) NOT NULL DEFAULT 0, + `pos_artikeltexteuebernehmen` tinyint(1) NOT NULL DEFAULT 0, + `pos_anzeigenetto` tinyint(1) NOT NULL DEFAULT 0, + `pos_zwischenspeichern` tinyint(1) NOT NULL DEFAULT 0, + `kasse_button_belegladen` tinyint(1) NOT NULL DEFAULT 0, + `kasse_button_storno` tinyint(1) NOT NULL DEFAULT 0, + `pos_kundenalleprojekte` tinyint(1) NOT NULL DEFAULT 0, + `pos_artikelnurausprojekt` tinyint(1) NOT NULL DEFAULT 0, + `allechargenmhd` tinyint(1) NOT NULL DEFAULT 0, + `anzeigesteuerbelege` int(11) NOT NULL DEFAULT 0, + `pos_grosseansicht` tinyint(1) NOT NULL DEFAULT 0, + `preisberechnung` int(11) NOT NULL DEFAULT 0, + `steuernummer` varchar(32) NOT NULL, + `paketmarkeautodrucken` tinyint(1) NOT NULL DEFAULT 0, + `orderpicking_sort` varchar(26) NOT NULL, + `deactivateautoshipping` tinyint(1) NOT NULL DEFAULT 0, + `pos_sumarticles` tinyint(1) NOT NULL DEFAULT 0, + `manualtracking` tinyint(1) NOT NULL DEFAULT 0, + `zahlungsweise` text NOT NULL, + `zahlungsweiselieferant` text NOT NULL, + `versandart` text NOT NULL, + `ups_api_user` text NOT NULL, + `ups_api_password` text NOT NULL, + `ups_api_key` text NOT NULL, + `ups_accountnumber` text NOT NULL, + `ups_company_name` text NOT NULL, + `ups_street_name` text NOT NULL, + `ups_street_number` varchar(10) NOT NULL, + `ups_zip` text NOT NULL, + `ups_country` varchar(2) NOT NULL, + `ups_city` text NOT NULL, + `ups_email` text NOT NULL, + `ups_phone` text NOT NULL, + `ups_internet` text NOT NULL, + `ups_contact_person` text NOT NULL, + `ups_WeightInKG` decimal(10,2) DEFAULT NULL, + `ups_LengthInCM` decimal(10,2) DEFAULT NULL, + `ups_WidthInCM` decimal(10,2) DEFAULT NULL, + `ups_HeightInCM` decimal(10,2) DEFAULT NULL, + `ups_drucker` int(11) NOT NULL DEFAULT 0, + `ups_ausgabe` varchar(16) NOT NULL DEFAULT 'gif', + `ups_package_code` varchar(16) NOT NULL DEFAULT '02', + `ups_package_description` varchar(255) NOT NULL DEFAULT 'customer supplied', + `ups_service_code` varchar(16) NOT NULL DEFAULT '11', + `ups_service_description` varchar(255) NOT NULL DEFAULT 'ups standard', + `email_html_template` text DEFAULT NULL, + `druckanhang` int(1) DEFAULT NULL, + `mailanhang` int(1) DEFAULT NULL, + `next_retoure` text DEFAULT NULL, + `next_goodspostingdocument` text DEFAULT NULL, + `pos_disable_single_entries` tinyint(1) DEFAULT 0, + `pos_disable_single_day` tinyint(1) DEFAULT 0, + `pos_disable_counting_protocol` tinyint(1) DEFAULT 0, + `pos_disable_signature` tinyint(1) DEFAULT 0, + `steuer_erloese_inland_normal` varchar(10) DEFAULT NULL, + `steuer_aufwendung_inland_normal` varchar(10) DEFAULT NULL, + `steuer_erloese_inland_ermaessigt` varchar(10) DEFAULT NULL, + `steuer_aufwendung_inland_ermaessigt` varchar(10) DEFAULT NULL, + `steuer_erloese_inland_nichtsteuerbar` varchar(10) DEFAULT NULL, + `steuer_aufwendung_inland_nichtsteuerbar` varchar(10) DEFAULT NULL, + `steuer_erloese_inland_innergemeinschaftlich` varchar(10) DEFAULT NULL, + `steuer_aufwendung_inland_innergemeinschaftlich` varchar(10) DEFAULT NULL, + `steuer_erloese_inland_eunormal` varchar(10) DEFAULT NULL, + `steuer_aufwendung_inland_eunormal` varchar(10) DEFAULT NULL, + `steuer_erloese_inland_euermaessigt` varchar(10) DEFAULT NULL, + `steuer_aufwendung_inland_euermaessigt` varchar(10) DEFAULT NULL, + `steuer_erloese_inland_export` varchar(10) DEFAULT NULL, + `steuer_aufwendung_inland_import` varchar(10) DEFAULT NULL, + `create_proformainvoice` tinyint(1) DEFAULT 0, + `print_proformainvoice` tinyint(1) DEFAULT 0, + `proformainvoice_amount` int(11) DEFAULT 0, + `anzeigesteuerbelegebestellung` tinyint(1) DEFAULT 0, + `autobestbeforebatch` tinyint(1) DEFAULT 0, + `allwaysautobestbeforebatch` tinyint(1) DEFAULT 0, + `kommissionierlauflieferschein` tinyint(1) NOT NULL DEFAULT 0, + `intraship_exportdrucker` int(11) NOT NULL DEFAULT 0, + `multiorderpicking` tinyint(1) NOT NULL DEFAULT 0, + `standardlager` int(11) NOT NULL DEFAULT 0, + `standardlagerproduktion` int(11) NOT NULL DEFAULT 0, + `klarna_merchantid` text NOT NULL, + `klarna_sharedsecret` text NOT NULL, + `nurlagerartikel` tinyint(1) NOT NULL DEFAULT 1, + `paketmarkedrucken` tinyint(1) NOT NULL DEFAULT 0, + `lieferscheinedrucken` tinyint(1) NOT NULL DEFAULT 0, + `lieferscheinedruckenmenge` int(11) NOT NULL DEFAULT 0, + `auftragdrucken` tinyint(1) NOT NULL DEFAULT 0, + `auftragdruckenmenge` int(11) NOT NULL DEFAULT 0, + `druckennachtracking` tinyint(1) NOT NULL DEFAULT 0, + `exportdruckrechnungstufe1` tinyint(1) NOT NULL DEFAULT 0, + `exportdruckrechnungstufe1menge` int(11) NOT NULL DEFAULT 0, + `exportdruckrechnung` tinyint(1) NOT NULL DEFAULT 0, + `exportdruckrechnungmenge` int(11) NOT NULL DEFAULT 0, + `kommissionierlistestufe1` tinyint(1) NOT NULL DEFAULT 0, + `kommissionierlistestufe1menge` int(11) NOT NULL DEFAULT 0, + `fremdnummerscanerlauben` tinyint(1) NOT NULL DEFAULT 0, + `zvt100url` text NOT NULL, + `zvt100port` varchar(5) NOT NULL, + `production_show_only_needed_storages` tinyint(1) NOT NULL DEFAULT 0, + `produktion_extra_seiten` tinyint(1) NOT NULL DEFAULT 0, + `kasse_button_trinkgeldeckredit` tinyint(1) NOT NULL DEFAULT 0, + `kasse_autologout` int(11) NOT NULL DEFAULT 0, + `kasse_autologout_abschluss` int(11) NOT NULL DEFAULT 0, + `next_receiptdocument` text DEFAULT NULL, + `taxfromdoctypesettings` tinyint(1) NOT NULL DEFAULT 0, + `next_lieferantengutschrift` text DEFAULT NULL, + `kasse_print_qr` tinyint(1) NOT NULL DEFAULT 0, + `buchhaltung_berater` varchar(64) NOT NULL, + `buchhaltung_mandant` varchar(64) NOT NULL, + `buchhaltung_wj_beginn` varchar(4) NOT NULL DEFAULT '0101', + `buchhaltung_sachkontenlaenge` int(1) NOT NULL DEFAULT 4, + PRIMARY KEY (`id`), + KEY `abkuerzung` (`abkuerzung`), + KEY `kunde` (`kunde`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `projekt_artikel` -- +DROP TABLE IF EXISTS `projekt_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `projekt_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `projekt` int(11) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `parent` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `geplant` decimal(14,4) NOT NULL, - `cache_BE` decimal(14,4) NOT NULL, - `cache_PR` decimal(14,4) NOT NULL, - `cache_AN` decimal(14,4) NOT NULL, - `cache_AB` decimal(14,4) NOT NULL, - `cache_LS` decimal(14,4) NOT NULL, - `cache_RE` decimal(14,4) NOT NULL, - `cache_GS` decimal(14,4) NOT NULL, - `cache_WE` decimal(14,4) NOT NULL, - `ek_geplant` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `vk_geplant` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `kalkulationbasis` varchar(64) NOT NULL DEFAULT 'prostueck', - `nr` varchar(64) NOT NULL DEFAULT '', - `cache_WA` decimal(14,4) NOT NULL, - `cache_PF` decimal(14,4) NOT NULL, - `cache_PRO` decimal(14,4) NOT NULL, - `lastcheck` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `last_cache` timestamp NULL DEFAULT NULL, - `kommentar` varchar(1024) NOT NULL DEFAULT '', - `showinmonitoring` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `projekt_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `projekt` int(11) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `parent` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `geplant` decimal(14,4) NOT NULL, + `cache_BE` decimal(14,4) NOT NULL, + `cache_PR` decimal(14,4) NOT NULL, + `cache_AN` decimal(14,4) NOT NULL, + `cache_AB` decimal(14,4) NOT NULL, + `cache_LS` decimal(14,4) NOT NULL, + `cache_RE` decimal(14,4) NOT NULL, + `cache_GS` decimal(14,4) NOT NULL, + `cache_WE` decimal(14,4) NOT NULL, + `ek_geplant` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `vk_geplant` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `kalkulationbasis` varchar(64) NOT NULL DEFAULT 'prostueck', + `nr` varchar(64) NOT NULL, + `cache_WA` decimal(14,4) NOT NULL, + `cache_PF` decimal(14,4) NOT NULL, + `cache_PRO` decimal(14,4) NOT NULL, + `lastcheck` timestamp NOT NULL DEFAULT current_timestamp(), + `last_cache` timestamp NULL DEFAULT NULL, + `kommentar` varchar(1024) NOT NULL, + `showinmonitoring` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `projekt_inventar` -- +DROP TABLE IF EXISTS `projekt_inventar`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `projekt_inventar` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `bestellung` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - `mitarbeiter` varchar(255) NOT NULL, - `vpe` varchar(255) NOT NULL, - `zeit` datetime NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `projekt_inventar` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `bestellung` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + `mitarbeiter` varchar(255) NOT NULL, + `vpe` varchar(255) NOT NULL, + `zeit` datetime NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `protokoll` -- +DROP TABLE IF EXISTS `protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `meldung` text NOT NULL, - `dump` text NOT NULL, - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `funktionsname` varchar(64) NOT NULL DEFAULT '', - `datum` datetime DEFAULT NULL, - `parameter` int(11) NOT NULL DEFAULT '0', - `argumente` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8; +CREATE TABLE `protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `meldung` text NOT NULL, + `dump` text NOT NULL, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `bearbeiter` varchar(64) NOT NULL, + `funktionsname` varchar(64) NOT NULL, + `datum` datetime DEFAULT NULL, + `parameter` int(11) NOT NULL DEFAULT 0, + `argumente` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1132 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `provision_regeln` -- +DROP TABLE IF EXISTS `provision_regeln`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `provision_regeln` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `gruppe` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `von` date NOT NULL, - `bis` date NOT NULL, - `typ` varchar(32) NOT NULL DEFAULT '', - `prio` int(11) NOT NULL DEFAULT '0', - `absolut` tinyint(1) NOT NULL DEFAULT '0', - `provision` decimal(10,4) NOT NULL DEFAULT '0.0000', - `belegtyp` varchar(32) NOT NULL DEFAULT '', - `belegnr` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `gruppe` (`gruppe`), - KEY `artikel` (`artikel`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `provision_regeln` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL, + `beschreibung` text NOT NULL, + `gruppe` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `von` date NOT NULL, + `bis` date NOT NULL, + `typ` varchar(32) NOT NULL, + `prio` int(11) NOT NULL DEFAULT 0, + `absolut` tinyint(1) NOT NULL DEFAULT 0, + `provision` decimal(10,4) NOT NULL DEFAULT 0.0000, + `belegtyp` varchar(32) NOT NULL, + `belegnr` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `gruppe` (`gruppe`), + KEY `artikel` (`artikel`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `provisionenartikel_abrechnungen` -- +DROP TABLE IF EXISTS `provisionenartikel_abrechnungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `provisionenartikel_abrechnungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datumvon` date DEFAULT NULL, - `datumbis` date DEFAULT NULL, - `angelegt_von` varchar(128) NOT NULL DEFAULT '', - `umsatz_netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `provision` decimal(10,2) NOT NULL DEFAULT '0.00', - `dynamisch` int(11) NOT NULL DEFAULT '0', - `userid` int(11) NOT NULL DEFAULT '0', - `berechnungstyp` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `userid` (`userid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `provisionenartikel_abrechnungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datumvon` date DEFAULT NULL, + `datumbis` date DEFAULT NULL, + `angelegt_von` varchar(128) NOT NULL, + `umsatz_netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `provision` decimal(10,2) NOT NULL DEFAULT 0.00, + `dynamisch` int(11) NOT NULL DEFAULT 0, + `userid` int(11) NOT NULL DEFAULT 0, + `berechnungstyp` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `userid` (`userid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `provisionenartikel_abrechnungen_provisionen` -- +DROP TABLE IF EXISTS `provisionenartikel_abrechnungen_provisionen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `provisionenartikel_abrechnungen_provisionen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `artikelkategorie` varchar(255) NOT NULL DEFAULT '', - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(128) NOT NULL DEFAULT '', - `menge` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `datum` date DEFAULT NULL, - `provision` decimal(10,2) NOT NULL DEFAULT '0.00', - `abrechnung` int(11) NOT NULL DEFAULT '0', - `rabatt` decimal(10,2) NOT NULL DEFAULT '0.00', - `umsatznetto` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `provisionbetrag` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `typ` tinyint(1) NOT NULL DEFAULT '1', - `typid` int(11) NOT NULL DEFAULT '0', - `vertriebsleiteradresse` int(11) NOT NULL DEFAULT '0', - `vertriebsleiterprovision` decimal(10,2) NOT NULL DEFAULT '0.00', - `vertriebsleiterprovisionbetrag` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `nummer` varchar(255) NOT NULL DEFAULT '', - `name_de` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `provisionenartikel_abrechnungen_provisionen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `artikelkategorie` varchar(255) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(128) NOT NULL, + `menge` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `datum` date DEFAULT NULL, + `provision` decimal(10,2) NOT NULL DEFAULT 0.00, + `abrechnung` int(11) NOT NULL DEFAULT 0, + `rabatt` decimal(10,2) NOT NULL DEFAULT 0.00, + `umsatznetto` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `provisionbetrag` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `typ` tinyint(1) NOT NULL DEFAULT 1, + `typid` int(11) NOT NULL DEFAULT 0, + `vertriebsleiteradresse` int(11) NOT NULL DEFAULT 0, + `vertriebsleiterprovision` decimal(10,2) NOT NULL DEFAULT 0.00, + `vertriebsleiterprovisionbetrag` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `nummer` varchar(255) NOT NULL, + `name_de` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `provisionenartikel_provision` -- +DROP TABLE IF EXISTS `provisionenartikel_provision`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `provisionenartikel_provision` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `kategorie` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `provision` decimal(10,2) NOT NULL DEFAULT '0.00', - `gueltigvon` date DEFAULT NULL, - `gueltigbis` date DEFAULT NULL, - `provisiontyp` varchar(64) NOT NULL DEFAULT '', - `kunde` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `provisionenartikel_provision` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `kategorie` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `provision` decimal(10,2) NOT NULL DEFAULT 0.00, + `gueltigvon` date DEFAULT NULL, + `gueltigbis` date DEFAULT NULL, + `provisiontyp` varchar(64) NOT NULL, + `kunde` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `prozessstarter` -- +DROP TABLE IF EXISTS `prozessstarter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `prozessstarter` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `bedingung` varchar(255) NOT NULL, - `art` varchar(255) NOT NULL, - `startzeit` datetime NOT NULL, - `letzteausfuerhung` datetime NOT NULL, - `periode` varchar(255) NOT NULL DEFAULT '1440', - `typ` varchar(255) NOT NULL, - `parameter` varchar(255) NOT NULL, - `aktiv` int(1) NOT NULL, - `mutex` int(1) NOT NULL, - `mutexcounter` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `art_filter` varchar(20) NOT NULL DEFAULT '', - `status` varchar(255) NOT NULL DEFAULT '', - `status_zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `recommended_period` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `parameter` (`parameter`) -) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8; +CREATE TABLE `prozessstarter` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `bedingung` varchar(255) NOT NULL, + `art` varchar(255) NOT NULL, + `startzeit` datetime NOT NULL, + `letzteausfuerhung` datetime NOT NULL, + `periode` varchar(255) NOT NULL DEFAULT '1440', + `typ` varchar(255) NOT NULL, + `parameter` varchar(255) NOT NULL, + `aktiv` int(1) NOT NULL, + `mutex` int(1) NOT NULL, + `mutexcounter` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `art_filter` varchar(20) NOT NULL, + `status` varchar(255) NOT NULL, + `status_zeit` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `recommended_period` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `parameter` (`parameter`) +) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `pseudostorage_shop` -- +DROP TABLE IF EXISTS `pseudostorage_shop`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pseudostorage_shop` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `formula` text NOT NULL, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `pseudostorage_shop` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `formula` text NOT NULL, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `real_article_mapping` -- +DROP TABLE IF EXISTS `real_article_mapping`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `real_article_mapping` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `article_id` int(11) DEFAULT NULL, - `ignore` int(2) NOT NULL DEFAULT '0', - `ext_sku` varchar(255) NOT NULL DEFAULT '', - `ext_ean` varchar(255) NOT NULL DEFAULT '', - `ext_name` varchar(255) NOT NULL DEFAULT '', - `ext_item_id` varchar(255) NOT NULL DEFAULT '', - `ext_unit_id` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `real_article_mapping` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `article_id` int(11) DEFAULT NULL, + `ignore` int(2) NOT NULL DEFAULT 0, + `ext_sku` varchar(255) NOT NULL, + `ext_ean` varchar(255) NOT NULL, + `ext_name` varchar(255) NOT NULL, + `ext_item_id` varchar(255) NOT NULL, + `ext_unit_id` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `real_kategoriespezifisch` -- +DROP TABLE IF EXISTS `real_kategoriespezifisch`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `real_kategoriespezifisch` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `artikel` int(11) NOT NULL, - `shop` int(11) NOT NULL, - `mandatory` int(1) DEFAULT '0', - `specwert` varchar(255) NOT NULL, - `specbezeichnung` varchar(255) NOT NULL, - `specname` varchar(255) DEFAULT NULL, - `multipleallowed` int(1) DEFAULT '0', - `type` varchar(255) DEFAULT NULL, - `typevalue` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `real_kategoriespezifisch` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `artikel` int(11) NOT NULL, + `shop` int(11) NOT NULL, + `mandatory` int(1) DEFAULT 0, + `specwert` varchar(255) NOT NULL, + `specbezeichnung` varchar(255) NOT NULL, + `specname` varchar(255) DEFAULT NULL, + `multipleallowed` int(1) DEFAULT 0, + `type` varchar(255) DEFAULT NULL, + `typevalue` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `real_kategorievorschlag` -- +DROP TABLE IF EXISTS `real_kategorievorschlag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `real_kategorievorschlag` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `artikel` int(11) NOT NULL, - `shop` int(11) NOT NULL, - `vorschlagid` int(11) DEFAULT NULL, - `vorschlagbezeichnung` varchar(255) DEFAULT NULL, - `vorschlagparentid` varchar(255) DEFAULT NULL, - `level` varchar(255) DEFAULT NULL, - `lieferkategorie` varchar(255) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `real_kategorievorschlag` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `artikel` int(11) NOT NULL, + `shop` int(11) NOT NULL, + `vorschlagid` int(11) DEFAULT NULL, + `vorschlagbezeichnung` varchar(255) DEFAULT NULL, + `vorschlagparentid` varchar(255) DEFAULT NULL, + `level` varchar(255) DEFAULT NULL, + `lieferkategorie` varchar(255) DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `real_versandgruppen` -- +DROP TABLE IF EXISTS `real_versandgruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `real_versandgruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `real_versandgruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `receiptdocument` -- +DROP TABLE IF EXISTS `receiptdocument`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `receiptdocument` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `address_id` int(11) NOT NULL DEFAULT '0', - `order_id` int(11) NOT NULL DEFAULT '0', - `creditnote_id` int(11) NOT NULL DEFAULT '0', - `parcel_receipt_id` int(11) NOT NULL DEFAULT '0', - `useredit_id` int(11) NOT NULL DEFAULT '0', - `status` varchar(32) NOT NULL DEFAULT '', - `status_qs` varchar(32) NOT NULL DEFAULT '', - `updated_by` varchar(255) NOT NULL DEFAULT '', - `document_number` varchar(32) NOT NULL DEFAULT '', - `supplier_order_id` int(11) NOT NULL DEFAULT '0', - `return_order_id` int(11) NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `useredit_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `receiptdocument` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `address_id` int(11) NOT NULL DEFAULT 0, + `order_id` int(11) NOT NULL DEFAULT 0, + `creditnote_id` int(11) NOT NULL DEFAULT 0, + `parcel_receipt_id` int(11) NOT NULL DEFAULT 0, + `useredit_id` int(11) NOT NULL DEFAULT 0, + `status` varchar(32) NOT NULL, + `status_qs` varchar(32) NOT NULL, + `updated_by` varchar(255) NOT NULL, + `document_number` varchar(32) NOT NULL, + `supplier_order_id` int(11) NOT NULL DEFAULT 0, + `return_order_id` int(11) NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `useredit_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `receiptdocument_log` -- +DROP TABLE IF EXISTS `receiptdocument_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `receiptdocument_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `receiptdocument_id` int(11) NOT NULL DEFAULT '0', - `log` varchar(255) NOT NULL DEFAULT '', - `created_by` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `receiptdocument_id` (`receiptdocument_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `receiptdocument_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `receiptdocument_id` int(11) NOT NULL DEFAULT 0, + `log` varchar(255) NOT NULL, + `created_by` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `receiptdocument_id` (`receiptdocument_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `receiptdocument_position` -- +DROP TABLE IF EXISTS `receiptdocument_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `receiptdocument_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `receiptdocument_id` int(11) NOT NULL DEFAULT '0', - `article_id` int(11) NOT NULL DEFAULT '0', - `amount` decimal(14,4) NOT NULL DEFAULT '0.0000', - `amount_good` decimal(14,4) NOT NULL DEFAULT '0.0000', - `amount_bad` decimal(14,4) NOT NULL DEFAULT '0.0000', - `position` int(11) NOT NULL DEFAULT '0', - `type` varchar(32) NOT NULL DEFAULT '', - `doctype` varchar(255) NOT NULL DEFAULT '', - `doctypeid` int(1) NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `receiptdocument_id` (`receiptdocument_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `receiptdocument_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `receiptdocument_id` int(11) NOT NULL DEFAULT 0, + `article_id` int(11) NOT NULL DEFAULT 0, + `amount` decimal(14,4) NOT NULL DEFAULT 0.0000, + `amount_good` decimal(14,4) NOT NULL DEFAULT 0.0000, + `amount_bad` decimal(14,4) NOT NULL DEFAULT 0.0000, + `position` int(11) NOT NULL DEFAULT 0, + `type` varchar(32) NOT NULL, + `doctype` varchar(255) NOT NULL, + `doctypeid` int(1) NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `receiptdocument_id` (`receiptdocument_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rechnung` -- +DROP TABLE IF EXISTS `rechnung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rechnung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `aborechnung` int(1) NOT NULL, - `projekt` varchar(222) NOT NULL, - `anlegeart` varchar(255) NOT NULL, - `belegnr` varchar(255) NOT NULL, - `auftrag` varchar(255) NOT NULL, - `auftragid` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `freitext` text NOT NULL, - `internebemerkung` text NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `ansprechpartner` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `ust_befreit` int(1) NOT NULL, - `ustbrief` int(11) NOT NULL, - `ustbrief_eingang` int(11) NOT NULL, - `ustbrief_eingang_am` date NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(64) DEFAULT NULL, - `lieferschein` int(11) NOT NULL, - `versandart` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `buchhaltung` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungsstatus` varchar(255) NOT NULL, - `ist` decimal(18,2) NOT NULL DEFAULT '0.00', - `soll` decimal(18,2) NOT NULL DEFAULT '0.00', - `skonto_gegeben` decimal(10,2) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `zahlungszielskonto` decimal(10,2) NOT NULL, - `firma` int(11) NOT NULL, - `versendet` int(1) NOT NULL, - `versendet_am` datetime NOT NULL, - `versendet_per` varchar(255) NOT NULL, - `versendet_durch` varchar(255) NOT NULL, - `versendet_mahnwesen` int(1) NOT NULL, - `mahnwesen` varchar(255) NOT NULL, - `mahnwesen_datum` date NOT NULL, - `mahnwesen_gesperrt` int(1) NOT NULL, - `mahnwesen_internebemerkung` text NOT NULL, - `inbearbeitung` int(1) NOT NULL, - `datev_abgeschlossen` int(1) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `doppel` int(1) DEFAULT NULL, - `autodruck_rz` int(1) NOT NULL DEFAULT '0', - `autodruck_periode` int(1) NOT NULL DEFAULT '1', - `autodruck_done` int(1) NOT NULL DEFAULT '0', - `autodruck_anzahlverband` int(11) NOT NULL DEFAULT '0', - `autodruck_anzahlkunde` int(11) NOT NULL DEFAULT '0', - `autodruck_mailverband` int(1) NOT NULL DEFAULT '0', - `autodruck_mailkunde` int(1) NOT NULL DEFAULT '0', - `dta_datei_verband` int(11) NOT NULL DEFAULT '0', - `dta_datei` int(11) NOT NULL DEFAULT '0', - `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT '0', - `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `umsatz_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `erloes_netto` decimal(18,2) NOT NULL DEFAULT '0.00', - `mahnwesenfestsetzen` tinyint(1) NOT NULL DEFAULT '0', - `vertriebid` int(11) DEFAULT NULL, - `aktion` varchar(64) NOT NULL DEFAULT '', - `vertrieb` varchar(255) NOT NULL DEFAULT '', - `provision` decimal(10,2) DEFAULT NULL, - `provision_summe` decimal(10,2) DEFAULT NULL, - `gruppe` int(11) NOT NULL DEFAULT '0', - `punkte` int(11) DEFAULT NULL, - `bonuspunkte` int(11) DEFAULT NULL, - `provdatum` date DEFAULT NULL, - `ihrebestellnummer` varchar(255) DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `realrabatt` decimal(10,2) DEFAULT NULL, - `rabatt` decimal(10,2) DEFAULT NULL, - `einzugsdatum` date DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `forderungsverlust_datum` date DEFAULT NULL, - `forderungsverlust_betrag` decimal(10,2) DEFAULT NULL, - `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT '7.00', - `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', - `keinsteuersatz` int(1) DEFAULT NULL, - `schreibschutz` int(1) NOT NULL DEFAULT '0', - `pdfarchiviert` int(1) NOT NULL DEFAULT '0', - `pdfarchiviertversion` int(11) NOT NULL DEFAULT '0', - `typ` varchar(255) NOT NULL DEFAULT 'firma', - `ohne_briefpapier` int(1) DEFAULT NULL, - `lieferid` int(11) NOT NULL DEFAULT '0', - `ansprechpartnerid` int(11) NOT NULL DEFAULT '0', - `systemfreitext` text NOT NULL, - `projektfiliale` int(11) NOT NULL DEFAULT '0', - `zuarchivieren` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) NOT NULL DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT '0', - `bezahlt_am` date DEFAULT NULL, - `sprache` varchar(32) NOT NULL DEFAULT '', - `bundesland` varchar(64) NOT NULL DEFAULT '', - `gln` varchar(64) NOT NULL DEFAULT '', - `deliverythresholdvatid` varchar(64) NOT NULL DEFAULT '', - `bearbeiterid` int(11) DEFAULT NULL, - `kurs` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `ohne_artikeltext` int(1) DEFAULT NULL, - `anzeigesteuer` tinyint(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `bodyzusatz` text NOT NULL, - `lieferbedingung` text NOT NULL, - `titel` varchar(64) NOT NULL DEFAULT '', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontoberechnet` tinyint(1) NOT NULL DEFAULT '0', - `extsoll` decimal(10,2) NOT NULL DEFAULT '0.00', - `teilstorno` tinyint(1) NOT NULL DEFAULT '0', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - `kundennummer_buchhaltung` varchar(32) NOT NULL DEFAULT '', - `storage_country` varchar(3) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `projekt` (`projekt`), - KEY `adresse` (`adresse`), - KEY `auftragid` (`auftragid`), - KEY `status` (`status`), - KEY `datum` (`datum`), - KEY `belegnr` (`belegnr`), - KEY `soll` (`soll`), - KEY `zahlungsstatus` (`zahlungsstatus`), - KEY `provdatum` (`provdatum`), - KEY `lieferschein` (`lieferschein`), - KEY `versandart` (`versandart`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rechnung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `aborechnung` int(1) NOT NULL, + `projekt` varchar(222) NOT NULL, + `anlegeart` varchar(255) NOT NULL, + `belegnr` varchar(255) NOT NULL, + `auftrag` varchar(255) NOT NULL, + `auftragid` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `internebemerkung` text NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `ansprechpartner` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `ust_befreit` int(1) NOT NULL, + `ustbrief` int(11) NOT NULL, + `ustbrief_eingang` int(11) NOT NULL, + `ustbrief_eingang_am` date NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(64) DEFAULT NULL, + `lieferschein` int(11) NOT NULL, + `versandart` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `buchhaltung` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungsstatus` varchar(255) NOT NULL, + `ist` decimal(18,2) NOT NULL DEFAULT 0.00, + `soll` decimal(18,2) NOT NULL DEFAULT 0.00, + `skonto_gegeben` decimal(10,2) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `zahlungszielskonto` decimal(10,2) NOT NULL, + `firma` int(11) NOT NULL, + `versendet` int(1) NOT NULL, + `versendet_am` datetime NOT NULL, + `versendet_per` varchar(255) NOT NULL, + `versendet_durch` varchar(255) NOT NULL, + `versendet_mahnwesen` int(1) NOT NULL, + `mahnwesen` varchar(255) NOT NULL, + `mahnwesen_datum` date NOT NULL, + `mahnwesen_gesperrt` int(1) NOT NULL, + `mahnwesen_internebemerkung` text NOT NULL, + `inbearbeitung` int(1) NOT NULL, + `datev_abgeschlossen` int(1) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `doppel` int(1) DEFAULT NULL, + `autodruck_rz` int(1) NOT NULL DEFAULT 0, + `autodruck_periode` int(1) NOT NULL DEFAULT 1, + `autodruck_done` int(1) NOT NULL DEFAULT 0, + `autodruck_anzahlverband` int(11) NOT NULL DEFAULT 0, + `autodruck_anzahlkunde` int(11) NOT NULL DEFAULT 0, + `autodruck_mailverband` int(1) NOT NULL DEFAULT 0, + `autodruck_mailkunde` int(1) NOT NULL DEFAULT 0, + `dta_datei_verband` int(11) NOT NULL DEFAULT 0, + `dta_datei` int(11) NOT NULL DEFAULT 0, + `deckungsbeitragcalc` tinyint(1) NOT NULL DEFAULT 0, + `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `umsatz_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `erloes_netto` decimal(18,2) NOT NULL DEFAULT 0.00, + `mahnwesenfestsetzen` tinyint(1) NOT NULL DEFAULT 0, + `vertriebid` int(11) DEFAULT NULL, + `aktion` varchar(64) NOT NULL, + `vertrieb` varchar(255) NOT NULL, + `provision` decimal(10,2) DEFAULT NULL, + `provision_summe` decimal(10,2) DEFAULT NULL, + `gruppe` int(11) NOT NULL DEFAULT 0, + `punkte` int(11) DEFAULT NULL, + `bonuspunkte` int(11) DEFAULT NULL, + `provdatum` date DEFAULT NULL, + `ihrebestellnummer` varchar(255) DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `realrabatt` decimal(10,2) DEFAULT NULL, + `rabatt` decimal(10,2) DEFAULT NULL, + `einzugsdatum` date DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `forderungsverlust_datum` date DEFAULT NULL, + `forderungsverlust_betrag` decimal(10,2) DEFAULT NULL, + `steuersatz_normal` decimal(10,2) NOT NULL DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) NOT NULL DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) NOT NULL DEFAULT 7.00, + `waehrung` varchar(255) NOT NULL DEFAULT 'EUR', + `keinsteuersatz` int(1) DEFAULT NULL, + `schreibschutz` int(1) NOT NULL DEFAULT 0, + `pdfarchiviert` int(1) NOT NULL DEFAULT 0, + `pdfarchiviertversion` int(11) NOT NULL DEFAULT 0, + `typ` varchar(255) NOT NULL DEFAULT 'firma', + `ohne_briefpapier` int(1) DEFAULT NULL, + `lieferid` int(11) NOT NULL DEFAULT 0, + `ansprechpartnerid` int(11) NOT NULL DEFAULT 0, + `systemfreitext` text NOT NULL, + `projektfiliale` int(11) NOT NULL DEFAULT 0, + `zuarchivieren` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) NOT NULL, + `angelegtam` datetime DEFAULT NULL, + `abweichendebezeichnung` tinyint(1) NOT NULL DEFAULT 0, + `bezahlt_am` date DEFAULT NULL, + `sprache` varchar(32) NOT NULL, + `bundesland` varchar(64) NOT NULL, + `gln` varchar(64) NOT NULL, + `deliverythresholdvatid` varchar(64) NOT NULL, + `bearbeiterid` int(11) DEFAULT NULL, + `kurs` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `ohne_artikeltext` int(1) DEFAULT NULL, + `anzeigesteuer` tinyint(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `bodyzusatz` text NOT NULL, + `lieferbedingung` text NOT NULL, + `titel` varchar(64) NOT NULL, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontoberechnet` tinyint(1) NOT NULL DEFAULT 0, + `extsoll` decimal(10,2) NOT NULL DEFAULT 0.00, + `teilstorno` tinyint(1) NOT NULL DEFAULT 0, + `bundesstaat` varchar(32) NOT NULL, + `kundennummer_buchhaltung` varchar(32) NOT NULL, + `storage_country` varchar(3) NOT NULL, + PRIMARY KEY (`id`), + KEY `projekt` (`projekt`), + KEY `adresse` (`adresse`), + KEY `auftragid` (`auftragid`), + KEY `status` (`status`), + KEY `datum` (`datum`), + KEY `belegnr` (`belegnr`), + KEY `soll` (`soll`), + KEY `zahlungsstatus` (`zahlungsstatus`), + KEY `provdatum` (`provdatum`), + KEY `lieferschein` (`lieferschein`), + KEY `versandart` (`versandart`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rechnung_position` -- +DROP TABLE IF EXISTS `rechnung_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rechnung_position` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `rechnung` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `internerkommentar` text NOT NULL, - `nummer` varchar(255) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `lieferdatum` date NOT NULL, - `vpe` varchar(255) NOT NULL, - `sort` int(10) NOT NULL, - `status` varchar(64) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `explodiert_parent_artikel` int(11) NOT NULL DEFAULT '0', - `punkte` decimal(10,2) NOT NULL, - `bonuspunkte` decimal(10,2) NOT NULL, - `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, - `mlm_abgerechnet` int(1) DEFAULT NULL, - `keinrabatterlaubt` int(1) DEFAULT NULL, - `grundrabatt` decimal(10,2) DEFAULT NULL, - `rabattsync` int(1) DEFAULT NULL, - `rabatt1` decimal(10,2) DEFAULT NULL, - `rabatt2` decimal(10,2) DEFAULT NULL, - `rabatt3` decimal(10,2) DEFAULT NULL, - `rabatt4` decimal(10,2) DEFAULT NULL, - `rabatt5` decimal(10,2) DEFAULT NULL, - `einheit` varchar(255) NOT NULL DEFAULT '', - `rabatt` decimal(10,2) NOT NULL, - `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', - `herkunftsland` varchar(128) NOT NULL DEFAULT '0', - `artikelnummerkunde` varchar(128) NOT NULL DEFAULT '', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `lieferdatumkw` tinyint(1) NOT NULL DEFAULT '0', - `auftrag_position_id` int(11) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(1024) DEFAULT NULL, - `erloese` varchar(8) DEFAULT NULL, - `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `einkaufspreiswaehrung` varchar(8) NOT NULL DEFAULT '', - `einkaufspreis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `einkaufspreisid` int(11) NOT NULL DEFAULT '0', - `ekwaehrung` varchar(8) NOT NULL DEFAULT '', - `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `formelmenge` varchar(255) NOT NULL DEFAULT '', - `formelpreis` varchar(255) NOT NULL DEFAULT '', - `ohnepreis` int(1) NOT NULL DEFAULT '0', - `skontobetrag` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, - `steuerbetrag` decimal(14,4) DEFAULT NULL, - `skontosperre` tinyint(1) NOT NULL DEFAULT '0', - `ausblenden_im_pdf` tinyint(1) DEFAULT '0', - `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, - `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `rechnung` (`rechnung`), - KEY `artikel` (`artikel`), - KEY `auftrag_position_id` (`auftrag_position_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rechnung_position` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `rechnung` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `internerkommentar` text NOT NULL, + `nummer` varchar(255) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `lieferdatum` date NOT NULL, + `vpe` varchar(255) NOT NULL, + `sort` int(10) NOT NULL, + `status` varchar(64) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `explodiert_parent_artikel` int(11) NOT NULL DEFAULT 0, + `punkte` decimal(10,2) NOT NULL, + `bonuspunkte` decimal(10,2) NOT NULL, + `mlmdirektpraemie` decimal(10,2) DEFAULT NULL, + `mlm_abgerechnet` int(1) DEFAULT NULL, + `keinrabatterlaubt` int(1) DEFAULT NULL, + `grundrabatt` decimal(10,2) DEFAULT NULL, + `rabattsync` int(1) DEFAULT NULL, + `rabatt1` decimal(10,2) DEFAULT NULL, + `rabatt2` decimal(10,2) DEFAULT NULL, + `rabatt3` decimal(10,2) DEFAULT NULL, + `rabatt4` decimal(10,2) DEFAULT NULL, + `rabatt5` decimal(10,2) DEFAULT NULL, + `einheit` varchar(255) NOT NULL, + `rabatt` decimal(10,2) NOT NULL, + `zolltarifnummer` varchar(128) NOT NULL DEFAULT '0', + `herkunftsland` varchar(128) NOT NULL DEFAULT '0', + `artikelnummerkunde` varchar(128) NOT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `lieferdatumkw` tinyint(1) NOT NULL DEFAULT 0, + `auftrag_position_id` int(11) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `kostenstelle` varchar(10) NOT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) DEFAULT NULL, + `erloese` varchar(8) DEFAULT NULL, + `erloesefestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `einkaufspreiswaehrung` varchar(8) NOT NULL, + `einkaufspreis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisurspruenglich` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `einkaufspreisid` int(11) NOT NULL DEFAULT 0, + `ekwaehrung` varchar(8) NOT NULL, + `deckungsbeitrag` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `formelmenge` varchar(255) NOT NULL, + `formelpreis` varchar(255) NOT NULL, + `ohnepreis` int(1) NOT NULL DEFAULT 0, + `skontobetrag` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_netto_gesamt` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `skontobetrag_brutto_gesamt` decimal(14,4) DEFAULT NULL, + `steuerbetrag` decimal(14,4) DEFAULT NULL, + `skontosperre` tinyint(1) NOT NULL DEFAULT 0, + `ausblenden_im_pdf` tinyint(1) DEFAULT 0, + `umsatz_netto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_netto_gesamt` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_einzeln` decimal(14,4) DEFAULT NULL, + `umsatz_brutto_gesamt` decimal(14,4) DEFAULT NULL, + `explodiert_parent` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `rechnung` (`rechnung`), + KEY `artikel` (`artikel`), + KEY `auftrag_position_id` (`auftrag_position_id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rechnung_protokoll` -- +DROP TABLE IF EXISTS `rechnung_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rechnung_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `rechnung` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `rechnung` (`rechnung`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rechnung_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `rechnung` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `rechnung` (`rechnung`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `reisekosten` -- +DROP TABLE IF EXISTS `reisekosten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `reisekosten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date DEFAULT NULL, - `projekt` varchar(222) DEFAULT NULL, - `teilprojekt` int(11) DEFAULT NULL, - `prefix` varchar(222) DEFAULT NULL, - `reisekostenart` varchar(255) DEFAULT NULL, - `belegnr` varchar(255) NOT NULL, - `bearbeiter` varchar(255) DEFAULT NULL, - `auftrag` varchar(255) DEFAULT NULL, - `auftragid` int(11) DEFAULT NULL, - `freitext` text, - `status` varchar(255) DEFAULT NULL, - `adresse` int(11) DEFAULT NULL, - `mitarbeiter` int(11) DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `abteilung` varchar(255) DEFAULT NULL, - `unterabteilung` varchar(255) DEFAULT NULL, - `strasse` varchar(255) DEFAULT NULL, - `adresszusatz` varchar(255) DEFAULT NULL, - `ansprechpartner` varchar(255) DEFAULT NULL, - `plz` varchar(255) DEFAULT NULL, - `ort` varchar(255) DEFAULT NULL, - `land` varchar(255) DEFAULT NULL, - `ustid` varchar(255) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `telefon` varchar(255) DEFAULT NULL, - `telefax` varchar(255) DEFAULT NULL, - `betreff` varchar(255) DEFAULT NULL, - `kundennummer` varchar(255) DEFAULT NULL, - `versandart` varchar(255) DEFAULT NULL, - `versand` varchar(255) DEFAULT NULL, - `firma` int(11) DEFAULT NULL, - `versendet` int(1) DEFAULT NULL, - `versendet_am` datetime DEFAULT NULL, - `versendet_per` varchar(255) DEFAULT NULL, - `versendet_durch` varchar(255) DEFAULT NULL, - `inbearbeitung_user` int(1) DEFAULT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `ohne_briefpapier` int(1) DEFAULT NULL, - `ust_befreit` int(1) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `steuersatz_normal` decimal(10,2) DEFAULT '19.00', - `steuersatz_zwischen` decimal(10,2) DEFAULT '7.00', - `steuersatz_ermaessigt` decimal(10,2) DEFAULT '7.00', - `steuersatz_starkermaessigt` decimal(10,2) DEFAULT '7.00', - `steuersatz_dienstleistung` decimal(10,2) DEFAULT '7.00', - `waehrung` varchar(255) DEFAULT 'EUR', - `anlass` text, - `internebemerkung` text, - `von` date DEFAULT NULL, - `bis` date DEFAULT NULL, - `von_zeit` varchar(255) DEFAULT NULL, - `bis_zeit` varchar(255) DEFAULT NULL, - `schreibschutz` int(1) DEFAULT '0', - `pdfarchiviert` int(1) DEFAULT '0', - `pdfarchiviertversion` int(11) DEFAULT '0', - `typ` varchar(255) DEFAULT 'firma', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `reisekosten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date DEFAULT NULL, + `projekt` varchar(222) DEFAULT NULL, + `teilprojekt` int(11) DEFAULT NULL, + `prefix` varchar(222) DEFAULT NULL, + `reisekostenart` varchar(255) DEFAULT NULL, + `belegnr` varchar(255) NOT NULL, + `bearbeiter` varchar(255) DEFAULT NULL, + `auftrag` varchar(255) DEFAULT NULL, + `auftragid` int(11) DEFAULT NULL, + `freitext` text DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `adresse` int(11) DEFAULT NULL, + `mitarbeiter` int(11) DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + `abteilung` varchar(255) DEFAULT NULL, + `unterabteilung` varchar(255) DEFAULT NULL, + `strasse` varchar(255) DEFAULT NULL, + `adresszusatz` varchar(255) DEFAULT NULL, + `ansprechpartner` varchar(255) DEFAULT NULL, + `plz` varchar(255) DEFAULT NULL, + `ort` varchar(255) DEFAULT NULL, + `land` varchar(255) DEFAULT NULL, + `ustid` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `telefon` varchar(255) DEFAULT NULL, + `telefax` varchar(255) DEFAULT NULL, + `betreff` varchar(255) DEFAULT NULL, + `kundennummer` varchar(255) DEFAULT NULL, + `versandart` varchar(255) DEFAULT NULL, + `versand` varchar(255) DEFAULT NULL, + `firma` int(11) DEFAULT NULL, + `versendet` int(1) DEFAULT NULL, + `versendet_am` datetime DEFAULT NULL, + `versendet_per` varchar(255) DEFAULT NULL, + `versendet_durch` varchar(255) DEFAULT NULL, + `inbearbeitung_user` int(1) DEFAULT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `ohne_briefpapier` int(1) DEFAULT NULL, + `ust_befreit` int(1) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `steuersatz_normal` decimal(10,2) DEFAULT 19.00, + `steuersatz_zwischen` decimal(10,2) DEFAULT 7.00, + `steuersatz_ermaessigt` decimal(10,2) DEFAULT 7.00, + `steuersatz_starkermaessigt` decimal(10,2) DEFAULT 7.00, + `steuersatz_dienstleistung` decimal(10,2) DEFAULT 7.00, + `waehrung` varchar(255) DEFAULT 'EUR', + `anlass` text DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + `von` date DEFAULT NULL, + `bis` date DEFAULT NULL, + `von_zeit` varchar(255) DEFAULT NULL, + `bis_zeit` varchar(255) DEFAULT NULL, + `schreibschutz` int(1) DEFAULT 0, + `pdfarchiviert` int(1) DEFAULT 0, + `pdfarchiviertversion` int(11) DEFAULT 0, + `typ` varchar(255) DEFAULT 'firma', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `reisekosten_position` -- +DROP TABLE IF EXISTS `reisekosten_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `reisekosten_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `reisekosten` int(11) NOT NULL, - `reisekostenart` varchar(255) DEFAULT NULL, - `artikel` varchar(255) DEFAULT NULL, - `projekt` int(11) DEFAULT NULL, - `bezeichnung` varchar(255) DEFAULT NULL, - `beschreibung` text, - `ort` text, - `internerkommentar` text, - `nummer` varchar(255) DEFAULT NULL, - `verrechnungsart` varchar(255) DEFAULT NULL, - `menge` float DEFAULT NULL, - `arbeitspaket` int(11) DEFAULT NULL, - `datum` date DEFAULT NULL, - `von` varchar(255) DEFAULT NULL, - `bis` varchar(255) DEFAULT NULL, - `sort` int(10) DEFAULT NULL, - `status` varchar(255) DEFAULT NULL, - `bemerkung` text, - `bezahlt_wie` varchar(255) DEFAULT NULL, - `uststeuersatz` varchar(255) DEFAULT NULL, - `keineust` int(1) DEFAULT NULL, - `betrag` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `abrechnen` int(1) DEFAULT NULL, - `abgerechnet` int(1) DEFAULT NULL, - `abgerechnet_objekt` varchar(255) DEFAULT NULL, - `abgerechnet_parameter` int(11) DEFAULT NULL, - `exportiert` int(1) DEFAULT NULL, - `exportiert_am` date DEFAULT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `mitarbeiter` int(11) DEFAULT '0', - `teilprojekt` int(11) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `reisekosten` (`reisekosten`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `reisekosten_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `reisekosten` int(11) NOT NULL, + `reisekostenart` varchar(255) DEFAULT NULL, + `artikel` varchar(255) DEFAULT NULL, + `projekt` int(11) DEFAULT NULL, + `bezeichnung` varchar(255) DEFAULT NULL, + `beschreibung` text DEFAULT NULL, + `ort` text DEFAULT NULL, + `internerkommentar` text DEFAULT NULL, + `nummer` varchar(255) DEFAULT NULL, + `verrechnungsart` varchar(255) DEFAULT NULL, + `menge` float DEFAULT NULL, + `arbeitspaket` int(11) DEFAULT NULL, + `datum` date DEFAULT NULL, + `von` varchar(255) DEFAULT NULL, + `bis` varchar(255) DEFAULT NULL, + `sort` int(10) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `bemerkung` text DEFAULT NULL, + `bezahlt_wie` varchar(255) DEFAULT NULL, + `uststeuersatz` varchar(255) DEFAULT NULL, + `keineust` int(1) DEFAULT NULL, + `betrag` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `abrechnen` int(1) DEFAULT NULL, + `abgerechnet` int(1) DEFAULT NULL, + `abgerechnet_objekt` varchar(255) DEFAULT NULL, + `abgerechnet_parameter` int(11) DEFAULT NULL, + `exportiert` int(1) DEFAULT NULL, + `exportiert_am` date DEFAULT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `mitarbeiter` int(11) DEFAULT 0, + `teilprojekt` int(11) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `reisekosten` (`reisekosten`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `reisekosten_protokoll` -- +DROP TABLE IF EXISTS `reisekosten_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `reisekosten_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `reisekosten` int(11) DEFAULT NULL, - `zeit` datetime DEFAULT NULL, - `bearbeiter` varchar(255) DEFAULT NULL, - `grund` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `reisekosten` (`reisekosten`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `reisekosten_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `reisekosten` int(11) DEFAULT NULL, + `zeit` datetime DEFAULT NULL, + `bearbeiter` varchar(255) DEFAULT NULL, + `grund` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `reisekosten` (`reisekosten`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `reisekostenart` -- +DROP TABLE IF EXISTS `reisekostenart`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `reisekostenart` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `nummer` varchar(20) DEFAULT NULL, - `beschreibung` varchar(512) DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `reisekostenart` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `nummer` varchar(20) DEFAULT NULL, + `beschreibung` varchar(512) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `report` -- +DROP TABLE IF EXISTS `report`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `report` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `description` text NOT NULL, - `project` int(11) NOT NULL DEFAULT '0', - `sql_query` text NOT NULL, - `remark` text, - `category` varchar(255) DEFAULT NULL, - `readonly` tinyint(4) NOT NULL DEFAULT '0', - `csv_delimiter` varchar(32) DEFAULT NULL, - `csv_enclosure` varchar(32) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8; +CREATE TABLE `report` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `description` text NOT NULL, + `project` int(11) NOT NULL DEFAULT 0, + `sql_query` text NOT NULL, + `remark` text DEFAULT NULL, + `category` varchar(255) DEFAULT NULL, + `readonly` tinyint(4) NOT NULL DEFAULT 0, + `csv_delimiter` varchar(32) DEFAULT NULL, + `csv_enclosure` varchar(32) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `report_column` -- +DROP TABLE IF EXISTS `report_column`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `report_column` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `report_id` int(11) NOT NULL DEFAULT '0', - `key_name` varchar(255) NOT NULL DEFAULT '', - `title` varchar(255) NOT NULL DEFAULT '', - `width` varchar(255) NOT NULL DEFAULT '', - `alignment` varchar(255) NOT NULL DEFAULT '', - `sum` tinyint(4) NOT NULL DEFAULT '0', - `sequence` int(11) NOT NULL DEFAULT '0', - `sorting` varchar(255) NOT NULL DEFAULT '', - `format_type` varchar(64) DEFAULT NULL, - `format_statement` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3523 DEFAULT CHARSET=utf8; +CREATE TABLE `report_column` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `report_id` int(11) NOT NULL DEFAULT 0, + `key_name` varchar(255) NOT NULL, + `title` varchar(255) NOT NULL, + `width` varchar(255) NOT NULL, + `alignment` varchar(255) NOT NULL, + `sum` tinyint(4) NOT NULL DEFAULT 0, + `sequence` int(11) NOT NULL DEFAULT 0, + `sorting` varchar(255) NOT NULL, + `format_type` varchar(64) DEFAULT NULL, + `format_statement` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3523 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `report_favorite` -- +DROP TABLE IF EXISTS `report_favorite`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `report_favorite` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `report_id` int(11) NOT NULL DEFAULT '0', - `user_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `report_favorite` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `report_id` int(11) NOT NULL DEFAULT 0, + `user_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `report_parameter` -- +DROP TABLE IF EXISTS `report_parameter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `report_parameter` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `report_id` int(11) NOT NULL DEFAULT '0', - `varname` varchar(255) NOT NULL DEFAULT '', - `displayname` varchar(255) NOT NULL DEFAULT '', - `description` varchar(255) NOT NULL DEFAULT '', - `default_value` varchar(255) NOT NULL DEFAULT '', - `options` varchar(255) NOT NULL DEFAULT '', - `control_type` varchar(255) NOT NULL DEFAULT '', - `editable` tinyint(4) NOT NULL DEFAULT '0', - `variable_extern` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=931 DEFAULT CHARSET=utf8; +CREATE TABLE `report_parameter` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `report_id` int(11) NOT NULL DEFAULT 0, + `varname` varchar(255) NOT NULL, + `displayname` varchar(255) NOT NULL, + `description` varchar(255) NOT NULL, + `default_value` varchar(255) NOT NULL, + `options` varchar(255) NOT NULL, + `control_type` varchar(255) NOT NULL, + `editable` tinyint(4) NOT NULL DEFAULT 0, + `variable_extern` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=931 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `report_share` -- +DROP TABLE IF EXISTS `report_share`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `report_share` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `report_id` int(11) NOT NULL DEFAULT '0', - `chart_public` tinyint(4) NOT NULL DEFAULT '0', - `chart_axislabel` varchar(255) NOT NULL DEFAULT '', - `chart_type` varchar(255) NOT NULL DEFAULT '', - `chart_x_column` varchar(255) NOT NULL DEFAULT '', - `data_columns` varchar(255) NOT NULL DEFAULT '', - `chart_group_column` varchar(255) NOT NULL DEFAULT '', - `chart_dateformat` varchar(255) NOT NULL DEFAULT '', - `chart_interval_value` int(11) NOT NULL DEFAULT '0', - `chart_interval_mode` varchar(255) NOT NULL DEFAULT '', - `file_public` tinyint(4) NOT NULL DEFAULT '0', - `file_pdf_enabled` tinyint(4) NOT NULL DEFAULT '0', - `file_csv_enabled` tinyint(4) NOT NULL DEFAULT '0', - `file_xls_enabled` tinyint(4) NOT NULL DEFAULT '0', - `menu_public` tinyint(4) NOT NULL DEFAULT '0', - `menu_doctype` varchar(255) NOT NULL DEFAULT '', - `menu_label` varchar(255) NOT NULL DEFAULT '', - `menu_format` varchar(255) NOT NULL DEFAULT '', - `tab_public` tinyint(4) NOT NULL DEFAULT '0', - `tab_module` varchar(255) NOT NULL DEFAULT '', - `tab_action` varchar(255) NOT NULL DEFAULT '', - `tab_label` varchar(255) NOT NULL DEFAULT '', - `tab_position` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8; +CREATE TABLE `report_share` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `report_id` int(11) NOT NULL DEFAULT 0, + `chart_public` tinyint(4) NOT NULL DEFAULT 0, + `chart_axislabel` varchar(255) NOT NULL, + `chart_type` varchar(255) NOT NULL, + `chart_x_column` varchar(255) NOT NULL, + `data_columns` varchar(255) NOT NULL, + `chart_group_column` varchar(255) NOT NULL, + `chart_dateformat` varchar(255) NOT NULL, + `chart_interval_value` int(11) NOT NULL DEFAULT 0, + `chart_interval_mode` varchar(255) NOT NULL, + `file_public` tinyint(4) NOT NULL DEFAULT 0, + `file_pdf_enabled` tinyint(4) NOT NULL DEFAULT 0, + `file_csv_enabled` tinyint(4) NOT NULL DEFAULT 0, + `file_xls_enabled` tinyint(4) NOT NULL DEFAULT 0, + `menu_public` tinyint(4) NOT NULL DEFAULT 0, + `menu_doctype` varchar(255) NOT NULL, + `menu_label` varchar(255) NOT NULL, + `menu_format` varchar(255) NOT NULL, + `tab_public` tinyint(4) NOT NULL DEFAULT 0, + `tab_module` varchar(255) NOT NULL, + `tab_action` varchar(255) NOT NULL, + `tab_label` varchar(255) NOT NULL, + `tab_position` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `report_transfer` -- +DROP TABLE IF EXISTS `report_transfer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `report_transfer` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `report_id` int(11) NOT NULL DEFAULT '0', - `ftp_active` tinyint(4) NOT NULL DEFAULT '0', - `ftp_type` varchar(255) NOT NULL DEFAULT '', - `ftp_host` varchar(255) NOT NULL DEFAULT '', - `ftp_port` varchar(255) NOT NULL DEFAULT '', - `ftp_user` varchar(255) NOT NULL DEFAULT '', - `ftp_password` varchar(255) NOT NULL DEFAULT '', - `ftp_interval_mode` varchar(255) NOT NULL DEFAULT '', - `ftp_interval_value` varchar(255) NOT NULL DEFAULT '', - `ftp_daytime` time DEFAULT NULL, - `ftp_format` varchar(255) NOT NULL DEFAULT '', - `ftp_filename` varchar(255) NOT NULL DEFAULT '', - `ftp_last_transfer` datetime DEFAULT NULL, - `email_active` tinyint(4) NOT NULL DEFAULT '0', - `email_recipient` text NOT NULL, - `email_subject` varchar(255) NOT NULL DEFAULT '', - `email_interval_mode` varchar(255) NOT NULL DEFAULT '', - `email_interval_value` varchar(255) NOT NULL DEFAULT '', - `email_daytime` time DEFAULT NULL, - `email_format` varchar(255) NOT NULL DEFAULT '', - `email_filename` varchar(255) NOT NULL DEFAULT '', - `email_last_transfer` datetime DEFAULT NULL, - `url_format` varchar(255) NOT NULL DEFAULT '', - `url_begin` date DEFAULT NULL, - `url_end` date DEFAULT NULL, - `url_address` text NOT NULL, - `url_token` text NOT NULL, - `api_active` tinyint(4) NOT NULL DEFAULT '0', - `api_account_id` int(11) NOT NULL DEFAULT '0', - `api_format` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `report_transfer` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `report_id` int(11) NOT NULL DEFAULT 0, + `ftp_active` tinyint(4) NOT NULL DEFAULT 0, + `ftp_type` varchar(255) NOT NULL, + `ftp_host` varchar(255) NOT NULL, + `ftp_port` varchar(255) NOT NULL, + `ftp_user` varchar(255) NOT NULL, + `ftp_password` varchar(255) NOT NULL, + `ftp_interval_mode` varchar(255) NOT NULL, + `ftp_interval_value` varchar(255) NOT NULL, + `ftp_daytime` time DEFAULT NULL, + `ftp_format` varchar(255) NOT NULL, + `ftp_filename` varchar(255) NOT NULL, + `ftp_last_transfer` datetime DEFAULT NULL, + `email_active` tinyint(4) NOT NULL DEFAULT 0, + `email_recipient` text NOT NULL, + `email_subject` varchar(255) NOT NULL, + `email_interval_mode` varchar(255) NOT NULL, + `email_interval_value` varchar(255) NOT NULL, + `email_daytime` time DEFAULT NULL, + `email_format` varchar(255) NOT NULL, + `email_filename` varchar(255) NOT NULL, + `email_last_transfer` datetime DEFAULT NULL, + `url_format` varchar(255) NOT NULL, + `url_begin` date DEFAULT NULL, + `url_end` date DEFAULT NULL, + `url_address` text NOT NULL, + `url_token` text NOT NULL, + `api_active` tinyint(4) NOT NULL DEFAULT 0, + `api_account_id` int(11) NOT NULL DEFAULT 0, + `api_format` varchar(255) NOT NULL, + `ftp_passive` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `report_user` -- +DROP TABLE IF EXISTS `report_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `report_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `report_id` int(11) NOT NULL DEFAULT '0', - `user_id` int(11) NOT NULL DEFAULT '0', - `name` varchar(255) NOT NULL DEFAULT '', - `chart_enabled` tinyint(4) NOT NULL DEFAULT '0', - `file_enabled` int(11) NOT NULL DEFAULT '0', - `menu_enabled` int(11) NOT NULL DEFAULT '0', - `tab_enabled` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `report_user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `report_id` int(11) NOT NULL DEFAULT 0, + `user_id` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `chart_enabled` tinyint(4) NOT NULL DEFAULT 0, + `file_enabled` int(11) NOT NULL DEFAULT 0, + `menu_enabled` int(11) NOT NULL DEFAULT 0, + `tab_enabled` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `retoure` -- +DROP TABLE IF EXISTS `retoure`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `retoure` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date DEFAULT NULL, - `projekt` varchar(222) DEFAULT NULL, - `belegnr` varchar(255) DEFAULT NULL, - `bearbeiter` varchar(255) DEFAULT NULL, - `lieferschein` varchar(255) DEFAULT NULL, - `lieferscheinid` int(11) DEFAULT NULL, - `auftrag` varchar(255) DEFAULT NULL, - `auftragid` int(11) DEFAULT NULL, - `freitext` text, - `status` varchar(64) DEFAULT NULL, - `adresse` int(11) DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `abteilung` varchar(255) DEFAULT NULL, - `unterabteilung` varchar(255) DEFAULT NULL, - `strasse` varchar(255) DEFAULT NULL, - `adresszusatz` varchar(255) DEFAULT NULL, - `ansprechpartner` varchar(255) DEFAULT NULL, - `plz` varchar(255) DEFAULT NULL, - `ort` varchar(255) DEFAULT NULL, - `land` varchar(255) DEFAULT NULL, - `abweichendelieferadresse` int(11) DEFAULT '0', - `liefername` varchar(255) DEFAULT NULL, - `lieferabteilung` varchar(255) DEFAULT NULL, - `lieferunterabteilung` varchar(255) DEFAULT NULL, - `lieferstrasse` varchar(255) DEFAULT NULL, - `lieferadresszusatz` varchar(255) DEFAULT NULL, - `lieferansprechpartner` varchar(255) DEFAULT NULL, - `lieferplz` varchar(255) DEFAULT NULL, - `lieferort` varchar(255) DEFAULT NULL, - `lieferland` varchar(255) DEFAULT NULL, - `ustid` varchar(255) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `telefon` varchar(255) DEFAULT NULL, - `telefax` varchar(255) DEFAULT NULL, - `betreff` varchar(255) DEFAULT NULL, - `kundennummer` varchar(64) DEFAULT NULL, - `versandart` varchar(255) DEFAULT NULL, - `versand` varchar(255) DEFAULT NULL, - `firma` int(11) DEFAULT NULL, - `versendet` int(1) DEFAULT NULL, - `versendet_am` datetime DEFAULT NULL, - `versendet_per` varchar(255) DEFAULT NULL, - `versendet_durch` varchar(255) DEFAULT NULL, - `inbearbeitung_user` int(1) DEFAULT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `vertriebid` int(11) DEFAULT NULL, - `vertrieb` varchar(255) DEFAULT '', - `ust_befreit` int(1) DEFAULT NULL, - `ihrebestellnummer` varchar(255) DEFAULT NULL, - `anschreiben` varchar(255) DEFAULT NULL, - `usereditid` int(11) DEFAULT NULL, - `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `lieferantenretoure` tinyint(1) DEFAULT '0', - `lieferantenretoureinfo` text, - `lieferant` int(11) DEFAULT '0', - `schreibschutz` int(1) DEFAULT '0', - `pdfarchiviert` int(1) DEFAULT '0', - `pdfarchiviertversion` int(11) DEFAULT '0', - `typ` varchar(255) DEFAULT 'firma', - `internebemerkung` text, - `ohne_briefpapier` int(1) DEFAULT NULL, - `lieferid` int(11) DEFAULT '0', - `ansprechpartnerid` int(11) DEFAULT '0', - `projektfiliale` int(11) DEFAULT '0', - `projektfiliale_eingelagert` tinyint(1) DEFAULT '0', - `zuarchivieren` int(11) DEFAULT '0', - `internebezeichnung` varchar(255) DEFAULT '', - `angelegtam` datetime DEFAULT NULL, - `kommissionierung` int(11) DEFAULT '0', - `sprache` varchar(32) DEFAULT '', - `bundesland` varchar(64) DEFAULT '', - `gln` varchar(64) DEFAULT '', - `rechnungid` int(11) DEFAULT '0', - `bearbeiterid` int(11) DEFAULT NULL, - `keinerechnung` tinyint(1) DEFAULT '0', - `ohne_artikeltext` int(1) DEFAULT NULL, - `abweichendebezeichnung` tinyint(1) DEFAULT '0', - `bodyzusatz` text, - `lieferbedingung` text, - `titel` varchar(64) DEFAULT '', - `standardlager` int(11) DEFAULT '0', - `kommissionskonsignationslager` int(11) DEFAULT '0', - `bundesstaat` varchar(32) DEFAULT '', - `teillieferungvon` int(11) DEFAULT '0', - `teillieferungnummer` int(11) DEFAULT '0', - `gutschrift_id` int(11) NOT NULL DEFAULT '0', - `fortschritt` varchar(16) NOT NULL DEFAULT '', - `storage_ok` tinyint(11) NOT NULL DEFAULT '0', - `replacementorder_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`), - KEY `status` (`status`), - KEY `versandart` (`versandart`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `retoure` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date DEFAULT NULL, + `projekt` varchar(222) DEFAULT NULL, + `belegnr` varchar(255) DEFAULT NULL, + `bearbeiter` varchar(255) DEFAULT NULL, + `lieferschein` varchar(255) DEFAULT NULL, + `lieferscheinid` int(11) DEFAULT NULL, + `auftrag` varchar(255) DEFAULT NULL, + `auftragid` int(11) DEFAULT NULL, + `freitext` text DEFAULT NULL, + `status` varchar(64) DEFAULT NULL, + `adresse` int(11) DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + `abteilung` varchar(255) DEFAULT NULL, + `unterabteilung` varchar(255) DEFAULT NULL, + `strasse` varchar(255) DEFAULT NULL, + `adresszusatz` varchar(255) DEFAULT NULL, + `ansprechpartner` varchar(255) DEFAULT NULL, + `plz` varchar(255) DEFAULT NULL, + `ort` varchar(255) DEFAULT NULL, + `land` varchar(255) DEFAULT NULL, + `abweichendelieferadresse` int(11) DEFAULT 0, + `liefername` varchar(255) DEFAULT NULL, + `lieferabteilung` varchar(255) DEFAULT NULL, + `lieferunterabteilung` varchar(255) DEFAULT NULL, + `lieferstrasse` varchar(255) DEFAULT NULL, + `lieferadresszusatz` varchar(255) DEFAULT NULL, + `lieferansprechpartner` varchar(255) DEFAULT NULL, + `lieferplz` varchar(255) DEFAULT NULL, + `lieferort` varchar(255) DEFAULT NULL, + `lieferland` varchar(255) DEFAULT NULL, + `ustid` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `telefon` varchar(255) DEFAULT NULL, + `telefax` varchar(255) DEFAULT NULL, + `betreff` varchar(255) DEFAULT NULL, + `kundennummer` varchar(64) DEFAULT NULL, + `versandart` varchar(255) DEFAULT NULL, + `versand` varchar(255) DEFAULT NULL, + `firma` int(11) DEFAULT NULL, + `versendet` int(1) DEFAULT NULL, + `versendet_am` datetime DEFAULT NULL, + `versendet_per` varchar(255) DEFAULT NULL, + `versendet_durch` varchar(255) DEFAULT NULL, + `inbearbeitung_user` int(1) DEFAULT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `vertriebid` int(11) DEFAULT NULL, + `vertrieb` varchar(255) DEFAULT NULL, + `ust_befreit` int(1) DEFAULT NULL, + `ihrebestellnummer` varchar(255) DEFAULT NULL, + `anschreiben` varchar(255) DEFAULT NULL, + `usereditid` int(11) DEFAULT NULL, + `useredittimestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `lieferantenretoure` tinyint(1) DEFAULT 0, + `lieferantenretoureinfo` text DEFAULT NULL, + `lieferant` int(11) DEFAULT 0, + `schreibschutz` int(1) DEFAULT 0, + `pdfarchiviert` int(1) DEFAULT 0, + `pdfarchiviertversion` int(11) DEFAULT 0, + `typ` varchar(255) DEFAULT 'firma', + `internebemerkung` text DEFAULT NULL, + `ohne_briefpapier` int(1) DEFAULT NULL, + `lieferid` int(11) DEFAULT 0, + `ansprechpartnerid` int(11) DEFAULT 0, + `projektfiliale` int(11) DEFAULT 0, + `projektfiliale_eingelagert` tinyint(1) DEFAULT 0, + `zuarchivieren` int(11) DEFAULT 0, + `internebezeichnung` varchar(255) DEFAULT NULL, + `angelegtam` datetime DEFAULT NULL, + `kommissionierung` int(11) DEFAULT 0, + `sprache` varchar(32) DEFAULT NULL, + `bundesland` varchar(64) DEFAULT NULL, + `gln` varchar(64) DEFAULT NULL, + `rechnungid` int(11) DEFAULT 0, + `bearbeiterid` int(11) DEFAULT NULL, + `keinerechnung` tinyint(1) DEFAULT 0, + `ohne_artikeltext` int(1) DEFAULT NULL, + `abweichendebezeichnung` tinyint(1) DEFAULT 0, + `bodyzusatz` text DEFAULT NULL, + `lieferbedingung` text DEFAULT NULL, + `titel` varchar(64) DEFAULT NULL, + `standardlager` int(11) DEFAULT 0, + `kommissionskonsignationslager` int(11) DEFAULT 0, + `bundesstaat` varchar(32) DEFAULT NULL, + `teillieferungvon` int(11) DEFAULT 0, + `teillieferungnummer` int(11) DEFAULT 0, + `gutschrift_id` int(11) NOT NULL DEFAULT 0, + `fortschritt` varchar(16) NOT NULL, + `storage_ok` tinyint(11) NOT NULL DEFAULT 0, + `replacementorder_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`), + KEY `status` (`status`), + KEY `versandart` (`versandart`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `retoure_position` -- +DROP TABLE IF EXISTS `retoure_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `retoure_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `retoure` int(11) DEFAULT NULL, - `artikel` int(11) DEFAULT NULL, - `projekt` int(11) DEFAULT NULL, - `bezeichnung` varchar(255) DEFAULT NULL, - `beschreibung` text, - `internerkommentar` text, - `nummer` varchar(255) DEFAULT NULL, - `seriennummer` varchar(255) DEFAULT NULL, - `menge` decimal(14,4) DEFAULT NULL, - `lieferdatum` date DEFAULT NULL, - `vpe` varchar(255) DEFAULT NULL, - `sort` int(10) DEFAULT NULL, - `status` varchar(64) DEFAULT NULL, - `bemerkung` text, - `geliefert` decimal(14,4) DEFAULT NULL, - `abgerechnet` int(1) DEFAULT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `explodiert_parent_artikel` int(11) DEFAULT '0', - `einheit` varchar(255) DEFAULT '', - `zolltarifnummer` varchar(128) DEFAULT '0', - `herkunftsland` varchar(128) DEFAULT '0', - `artikelnummerkunde` varchar(128) DEFAULT '', - `freifeld1` text, - `freifeld2` text, - `freifeld3` text, - `freifeld4` text, - `freifeld5` text, - `freifeld6` text, - `freifeld7` text, - `freifeld8` text, - `freifeld9` text, - `freifeld10` text, - `freifeld11` text, - `freifeld12` text, - `freifeld13` text, - `freifeld14` text, - `freifeld15` text, - `freifeld16` text, - `freifeld17` text, - `freifeld18` text, - `freifeld19` text, - `freifeld20` text, - `freifeld21` text, - `freifeld22` text, - `freifeld23` text, - `freifeld24` text, - `freifeld25` text, - `freifeld26` text, - `freifeld27` text, - `freifeld28` text, - `freifeld29` text, - `freifeld30` text, - `freifeld31` text, - `freifeld32` text, - `freifeld33` text, - `freifeld34` text, - `freifeld35` text, - `freifeld36` text, - `freifeld37` text, - `freifeld38` text, - `freifeld39` text, - `freifeld40` text, - `lieferdatumkw` tinyint(1) DEFAULT '0', - `auftrag_position_id` int(11) DEFAULT '0', - `lieferschein_position_id` int(11) DEFAULT '0', - `kostenlos` tinyint(1) DEFAULT '0', - `lagertext` varchar(255) DEFAULT '', - `teilprojekt` int(11) DEFAULT '0', - `explodiert_parent` int(11) DEFAULT '0', - `ausblenden_im_pdf` tinyint(1) DEFAULT '0', - `grund` varchar(255) DEFAULT '', - `grundbeschreibung` text, - `aktion` varchar(255) DEFAULT '', - `aktionbeschreibung` text, - `menge_eingang` decimal(14,4) NOT NULL DEFAULT '0.0000', - `menge_gutschrift` decimal(14,4) NOT NULL DEFAULT '0.0000', - `default_storagelocation` int(11) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `retoure` (`retoure`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `retoure_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `retoure` int(11) DEFAULT NULL, + `artikel` int(11) DEFAULT NULL, + `projekt` int(11) DEFAULT NULL, + `bezeichnung` varchar(255) DEFAULT NULL, + `beschreibung` text DEFAULT NULL, + `internerkommentar` text DEFAULT NULL, + `nummer` varchar(255) DEFAULT NULL, + `seriennummer` varchar(255) DEFAULT NULL, + `menge` decimal(14,4) DEFAULT NULL, + `lieferdatum` date DEFAULT NULL, + `vpe` varchar(255) DEFAULT NULL, + `sort` int(10) DEFAULT NULL, + `status` varchar(64) DEFAULT NULL, + `bemerkung` text DEFAULT NULL, + `geliefert` decimal(14,4) DEFAULT NULL, + `abgerechnet` int(1) DEFAULT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `explodiert_parent_artikel` int(11) DEFAULT 0, + `einheit` varchar(255) DEFAULT NULL, + `zolltarifnummer` varchar(128) DEFAULT '0', + `herkunftsland` varchar(128) DEFAULT '0', + `artikelnummerkunde` varchar(128) DEFAULT NULL, + `freifeld1` text DEFAULT NULL, + `freifeld2` text DEFAULT NULL, + `freifeld3` text DEFAULT NULL, + `freifeld4` text DEFAULT NULL, + `freifeld5` text DEFAULT NULL, + `freifeld6` text DEFAULT NULL, + `freifeld7` text DEFAULT NULL, + `freifeld8` text DEFAULT NULL, + `freifeld9` text DEFAULT NULL, + `freifeld10` text DEFAULT NULL, + `freifeld11` text DEFAULT NULL, + `freifeld12` text DEFAULT NULL, + `freifeld13` text DEFAULT NULL, + `freifeld14` text DEFAULT NULL, + `freifeld15` text DEFAULT NULL, + `freifeld16` text DEFAULT NULL, + `freifeld17` text DEFAULT NULL, + `freifeld18` text DEFAULT NULL, + `freifeld19` text DEFAULT NULL, + `freifeld20` text DEFAULT NULL, + `freifeld21` text DEFAULT NULL, + `freifeld22` text DEFAULT NULL, + `freifeld23` text DEFAULT NULL, + `freifeld24` text DEFAULT NULL, + `freifeld25` text DEFAULT NULL, + `freifeld26` text DEFAULT NULL, + `freifeld27` text DEFAULT NULL, + `freifeld28` text DEFAULT NULL, + `freifeld29` text DEFAULT NULL, + `freifeld30` text DEFAULT NULL, + `freifeld31` text DEFAULT NULL, + `freifeld32` text DEFAULT NULL, + `freifeld33` text DEFAULT NULL, + `freifeld34` text DEFAULT NULL, + `freifeld35` text DEFAULT NULL, + `freifeld36` text DEFAULT NULL, + `freifeld37` text DEFAULT NULL, + `freifeld38` text DEFAULT NULL, + `freifeld39` text DEFAULT NULL, + `freifeld40` text DEFAULT NULL, + `lieferdatumkw` tinyint(1) DEFAULT 0, + `auftrag_position_id` int(11) DEFAULT 0, + `lieferschein_position_id` int(11) DEFAULT 0, + `kostenlos` tinyint(1) DEFAULT 0, + `lagertext` varchar(255) DEFAULT NULL, + `teilprojekt` int(11) DEFAULT 0, + `explodiert_parent` int(11) DEFAULT 0, + `ausblenden_im_pdf` tinyint(1) DEFAULT 0, + `grund` varchar(255) DEFAULT NULL, + `grundbeschreibung` text DEFAULT NULL, + `aktion` varchar(255) DEFAULT NULL, + `aktionbeschreibung` text DEFAULT NULL, + `menge_eingang` decimal(14,4) NOT NULL DEFAULT 0.0000, + `menge_gutschrift` decimal(14,4) NOT NULL DEFAULT 0.0000, + `default_storagelocation` int(11) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `retoure` (`retoure`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `retoure_protokoll` -- +DROP TABLE IF EXISTS `retoure_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `retoure_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `retoure` int(11) DEFAULT NULL, - `zeit` datetime DEFAULT NULL, - `bearbeiter` varchar(255) DEFAULT NULL, - `grund` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `retoure` (`retoure`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `retoure_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `retoure` int(11) DEFAULT NULL, + `zeit` datetime DEFAULT NULL, + `bearbeiter` varchar(255) DEFAULT NULL, + `grund` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `retoure` (`retoure`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `returnorder_quantity` -- +DROP TABLE IF EXISTS `returnorder_quantity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `returnorder_quantity` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `delivery_note_id` int(11) NOT NULL DEFAULT '0', - `quantity` decimal(14,4) DEFAULT NULL, - `serialnumber` varchar(255) NOT NULL DEFAULT '', - `batch` varchar(255) NOT NULL DEFAULT '', - `bestbefore` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `delivery_note_id` (`delivery_note_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `returnorder_quantity` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `delivery_note_id` int(11) NOT NULL DEFAULT 0, + `quantity` decimal(14,4) DEFAULT NULL, + `serialnumber` varchar(255) NOT NULL, + `batch` varchar(255) NOT NULL, + `bestbefore` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `delivery_note_id` (`delivery_note_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rma` -- +DROP TABLE IF EXISTS `rma`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rma` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `projekt` varchar(222) NOT NULL, - `belegnr` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `freigabe` int(1) NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `name` varchar(255) NOT NULL, - `vorname` varchar(255) NOT NULL, - `abteilung` varchar(255) NOT NULL, - `unterabteilung` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `adresszusatz` varchar(255) NOT NULL, - `plz` varchar(64) NOT NULL, - `ort` varchar(255) NOT NULL, - `ustid` varchar(64) NOT NULL, - `email` varchar(255) NOT NULL, - `telefon` varchar(255) NOT NULL, - `telefax` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `kundennummer` varchar(255) NOT NULL, - `lieferantennummer` varchar(255) NOT NULL, - `zahlungsweise` varchar(255) NOT NULL, - `zahlungszieltage` int(11) NOT NULL, - `versandart` varchar(255) NOT NULL, - `bestellbestaetigung` int(1) NOT NULL, - `freitext` varchar(255) NOT NULL, - `zahlungszielskonto` int(11) NOT NULL, - `zahlungszieltageskonto` int(11) NOT NULL, - `bestellbestaetigungsdatum` date NOT NULL, - `lieferdatum` date NOT NULL, - `einkaeufer` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rma` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `projekt` varchar(222) NOT NULL, + `belegnr` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `freigabe` int(1) NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `name` varchar(255) NOT NULL, + `vorname` varchar(255) NOT NULL, + `abteilung` varchar(255) NOT NULL, + `unterabteilung` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `adresszusatz` varchar(255) NOT NULL, + `plz` varchar(64) NOT NULL, + `ort` varchar(255) NOT NULL, + `ustid` varchar(64) NOT NULL, + `email` varchar(255) NOT NULL, + `telefon` varchar(255) NOT NULL, + `telefax` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `kundennummer` varchar(255) NOT NULL, + `lieferantennummer` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `zahlungszieltage` int(11) NOT NULL, + `versandart` varchar(255) NOT NULL, + `bestellbestaetigung` int(1) NOT NULL, + `freitext` varchar(255) NOT NULL, + `zahlungszielskonto` int(11) NOT NULL, + `zahlungszieltageskonto` int(11) NOT NULL, + `bestellbestaetigungsdatum` date NOT NULL, + `lieferdatum` date NOT NULL, + `einkaeufer` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rma_artikel` -- +DROP TABLE IF EXISTS `rma_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rma_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `wareneingang` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `lieferschein` int(11) NOT NULL, - `pos` int(11) NOT NULL, - `wunsch` varchar(255) NOT NULL, - `bemerkung` text NOT NULL, - `artikel` int(11) NOT NULL, - `status` varchar(64) NOT NULL, - `angelegtam` date NOT NULL, - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `techniker` text NOT NULL, - `buchhaltung` text NOT NULL, - `abgeschlossen` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `seriennummer` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rma_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `wareneingang` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `lieferschein` int(11) NOT NULL, + `pos` int(11) NOT NULL, + `wunsch` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `artikel` int(11) NOT NULL, + `status` varchar(64) NOT NULL, + `angelegtam` date NOT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `techniker` text NOT NULL, + `buchhaltung` text NOT NULL, + `abgeschlossen` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `seriennummer` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rma_position` -- +DROP TABLE IF EXISTS `rma_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rma_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `rma_artikel` int(15) DEFAULT '0', - `status` varchar(255) DEFAULT 'offen', - `sort` int(15) DEFAULT '0', - `letzter_kommentar` int(11) DEFAULT '0', - `bearbeiter` varchar(255) DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rma_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `rma_artikel` int(15) DEFAULT 0, + `status` varchar(255) DEFAULT 'offen', + `sort` int(15) DEFAULT 0, + `letzter_kommentar` int(11) DEFAULT 0, + `bearbeiter` varchar(255) DEFAULT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rma_protokoll` -- +DROP TABLE IF EXISTS `rma_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rma_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `rma_artikel` int(15) DEFAULT '0', - `rma_position` int(15) DEFAULT '0', - `kommentar` varchar(255) DEFAULT '', - `link` varchar(255) DEFAULT '', - `interngrund` text, - `externgrund` text, - `bearbeiter` varchar(255) DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rma_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `rma_artikel` int(15) DEFAULT 0, + `rma_position` int(15) DEFAULT 0, + `kommentar` varchar(255) DEFAULT NULL, + `link` varchar(255) DEFAULT NULL, + `interngrund` text DEFAULT NULL, + `externgrund` text DEFAULT NULL, + `bearbeiter` varchar(255) DEFAULT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rma_vorlagen_grund` -- +DROP TABLE IF EXISTS `rma_vorlagen_grund`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rma_vorlagen_grund` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `sprache` varchar(10) NOT NULL, - `projekt` int(11) NOT NULL DEFAULT '0', - `ausblenden` tinyint(1) NOT NULL DEFAULT '0', - `rmakategorie` int(11) NOT NULL DEFAULT '0', - `default_storagelocation` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `rmakategorie` (`rmakategorie`) -) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; +CREATE TABLE `rma_vorlagen_grund` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `sprache` varchar(10) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `ausblenden` tinyint(1) NOT NULL DEFAULT 0, + `rmakategorie` int(11) NOT NULL DEFAULT 0, + `default_storagelocation` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `rmakategorie` (`rmakategorie`) +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rma_vorlagen_kategorien` -- +DROP TABLE IF EXISTS `rma_vorlagen_kategorien`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rma_vorlagen_kategorien` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `beschreibung` text NOT NULL, - `aktion` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; +CREATE TABLE `rma_vorlagen_kategorien` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `aktion` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `rohstoffe` -- +DROP TABLE IF EXISTS `rohstoffe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `rohstoffe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `menge` decimal(18,8) NOT NULL, - `artikel` int(11) NOT NULL DEFAULT '0', - `rohstoffvonartikel` int(11) NOT NULL DEFAULT '0', - `lagerwert` tinyint(1) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `referenz` text, - `art` varchar(64) NOT NULL DEFAULT 'material', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `rohstoffe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `menge` decimal(18,8) NOT NULL, + `artikel` int(11) NOT NULL DEFAULT 0, + `rohstoffvonartikel` int(11) NOT NULL DEFAULT 0, + `lagerwert` tinyint(1) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `referenz` text DEFAULT NULL, + `art` varchar(64) NOT NULL DEFAULT 'material', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `sammelrechnung_position` -- +DROP TABLE IF EXISTS `sammelrechnung_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sammelrechnung_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `rechnung` int(11) NOT NULL DEFAULT '0', - `menge` float NOT NULL DEFAULT '0', - `rechnung_position_id` int(11) NOT NULL DEFAULT '0', - `auftrag_position_id` int(11) NOT NULL DEFAULT '0', - `lieferschein_position_id` int(11) NOT NULL DEFAULT '0', - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `auswahl` tinyint(4) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `lieferschein_position_id` (`lieferschein_position_id`), - KEY `auftrag_position_id` (`auftrag_position_id`), - KEY `rechnung` (`rechnung`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `sammelrechnung_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `rechnung` int(11) NOT NULL DEFAULT 0, + `menge` float NOT NULL DEFAULT 0, + `rechnung_position_id` int(11) NOT NULL DEFAULT 0, + `auftrag_position_id` int(11) NOT NULL DEFAULT 0, + `lieferschein_position_id` int(11) NOT NULL DEFAULT 0, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `auswahl` tinyint(4) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `lieferschein_position_id` (`lieferschein_position_id`), + KEY `auftrag_position_id` (`auftrag_position_id`), + KEY `rechnung` (`rechnung`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `scheck_checked` -- +DROP TABLE IF EXISTS `scheck_checked`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `scheck_checked` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `gutschrift` int(11) NOT NULL, - `user` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `scheck_checked` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `gutschrift` int(11) NOT NULL, + `user` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `scheck_druck` -- +DROP TABLE IF EXISTS `scheck_druck`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `scheck_druck` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bearbeiter` int(11) NOT NULL DEFAULT '0', - `kommentar` varchar(255) NOT NULL, - `layout` int(11) NOT NULL DEFAULT '0', - `konto` int(11) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `scheck_druck` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bearbeiter` int(11) NOT NULL DEFAULT 0, + `kommentar` varchar(255) NOT NULL, + `layout` int(11) NOT NULL DEFAULT 0, + `konto` int(11) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `scheck_gutschrift` -- +DROP TABLE IF EXISTS `scheck_gutschrift`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `scheck_gutschrift` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `gutschrift` int(11) NOT NULL DEFAULT '0', - `druck` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `scheck_gutschrift` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `gutschrift` int(11) NOT NULL DEFAULT 0, + `druck` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `seriennummern` -- +DROP TABLE IF EXISTS `seriennummern`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `seriennummern` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `seriennummer` varchar(255) NOT NULL, - `adresse` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `beschreibung` varchar(255) NOT NULL, - `lieferung` date NOT NULL, - `lieferschein` int(11) NOT NULL, - `lieferscheinpos` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` datetime NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `seriennummern` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `seriennummer` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `beschreibung` varchar(255) NOT NULL, + `lieferung` date NOT NULL, + `lieferschein` int(11) NOT NULL, + `lieferscheinpos` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `seriennummern_log` -- +DROP TABLE IF EXISTS `seriennummern_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `seriennummern_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `lager_platz` int(11) NOT NULL DEFAULT '0', - `eingang` int(1) NOT NULL DEFAULT '0', - `bezeichnung` text NOT NULL, - `internebemerkung` text NOT NULL, - `zeit` datetime DEFAULT NULL, - `adresse_mitarbeiter` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `doctype` varchar(32) NOT NULL DEFAULT '', - `doctypeid` int(11) NOT NULL DEFAULT '0', - `bestbeforedate` date DEFAULT NULL, - `batch` varchar(255) DEFAULT NULL, - `storage_movement_id` int(11) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `seriennummern_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `lager_platz` int(11) NOT NULL DEFAULT 0, + `eingang` int(1) NOT NULL DEFAULT 0, + `bezeichnung` text NOT NULL, + `internebemerkung` text NOT NULL, + `zeit` datetime DEFAULT NULL, + `adresse_mitarbeiter` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `doctype` varchar(32) NOT NULL, + `doctypeid` int(11) NOT NULL DEFAULT 0, + `bestbeforedate` date DEFAULT NULL, + `batch` varchar(255) DEFAULT NULL, + `storage_movement_id` int(11) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `service` -- +DROP TABLE IF EXISTS `service`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `service` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `zuweisen` int(11) NOT NULL DEFAULT '0', - `ansprechpartner` varchar(255) NOT NULL DEFAULT '', - `nummer` varchar(64) DEFAULT NULL, - `prio` varchar(10) NOT NULL DEFAULT 'niedrig', - `eingangart` varchar(10) NOT NULL DEFAULT '', - `datum` datetime DEFAULT NULL, - `erledigenbis` date DEFAULT NULL, - `betreff` varchar(255) NOT NULL DEFAULT '', - `beschreibung_html` longtext NOT NULL, - `internebemerkung` longtext NOT NULL, - `antwortankunden` longtext NOT NULL, - `angelegtvonuser` int(11) NOT NULL DEFAULT '0', - `status` varchar(20) NOT NULL DEFAULT 'angelegt', - `artikel` int(11) NOT NULL DEFAULT '0', - `seriennummer` varchar(255) NOT NULL DEFAULT '', - `antwortpermail` tinyint(1) NOT NULL DEFAULT '0', - `bezahlte_zusatzleistung` tinyint(1) NOT NULL DEFAULT '0', - `freigabe` tinyint(1) NOT NULL DEFAULT '0', - `freigabe_datum` datetime DEFAULT NULL, - `freigabe_bearbeiter` int(11) NOT NULL DEFAULT '0', - `dauer_geplant` decimal(10,2) NOT NULL DEFAULT '0.00', - `art` varchar(64) NOT NULL DEFAULT '', - `bereich` varchar(64) NOT NULL DEFAULT '', - `freifeld1` text NOT NULL, - `freifeld2` text NOT NULL, - `freifeld3` text NOT NULL, - `freifeld4` text NOT NULL, - `freifeld5` text NOT NULL, - `version` text NOT NULL, - `antwortankundenempfaenger` varchar(64) NOT NULL DEFAULT '', - `antwortankundenkopie` varchar(64) NOT NULL DEFAULT '', - `antwortankundenblindkopie` varchar(64) NOT NULL DEFAULT '', - `antwortankundenbetreff` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - UNIQUE KEY `nummer` (`nummer`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `service` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `zuweisen` int(11) NOT NULL DEFAULT 0, + `ansprechpartner` varchar(255) NOT NULL, + `nummer` varchar(64) DEFAULT NULL, + `prio` varchar(10) NOT NULL DEFAULT 'niedrig', + `eingangart` varchar(10) NOT NULL, + `datum` datetime DEFAULT NULL, + `erledigenbis` date DEFAULT NULL, + `betreff` varchar(255) NOT NULL, + `beschreibung_html` longtext NOT NULL, + `internebemerkung` longtext NOT NULL, + `antwortankunden` longtext NOT NULL, + `angelegtvonuser` int(11) NOT NULL DEFAULT 0, + `status` varchar(20) NOT NULL DEFAULT 'angelegt', + `artikel` int(11) NOT NULL DEFAULT 0, + `seriennummer` varchar(255) NOT NULL, + `antwortpermail` tinyint(1) NOT NULL DEFAULT 0, + `bezahlte_zusatzleistung` tinyint(1) NOT NULL DEFAULT 0, + `freigabe` tinyint(1) NOT NULL DEFAULT 0, + `freigabe_datum` datetime DEFAULT NULL, + `freigabe_bearbeiter` int(11) NOT NULL DEFAULT 0, + `dauer_geplant` decimal(10,2) NOT NULL DEFAULT 0.00, + `art` varchar(64) NOT NULL, + `bereich` varchar(64) NOT NULL, + `freifeld1` text NOT NULL, + `freifeld2` text NOT NULL, + `freifeld3` text NOT NULL, + `freifeld4` text NOT NULL, + `freifeld5` text NOT NULL, + `version` text NOT NULL, + `antwortankundenempfaenger` varchar(64) NOT NULL, + `antwortankundenkopie` varchar(64) NOT NULL, + `antwortankundenblindkopie` varchar(64) NOT NULL, + `antwortankundenbetreff` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `nummer` (`nummer`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `sevensenders_shipment` -- +DROP TABLE IF EXISTS `sevensenders_shipment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sevensenders_shipment` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `date` datetime DEFAULT CURRENT_TIMESTAMP, - `lieferschein` int(11) DEFAULT NULL, - `carrier` text, - `shipment_id` text, - `shipment_reference` text, - `tracking` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `sevensenders_shipment` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `date` datetime DEFAULT current_timestamp(), + `lieferschein` int(11) DEFAULT NULL, + `carrier` text DEFAULT NULL, + `shipment_id` text DEFAULT NULL, + `shipment_reference` text DEFAULT NULL, + `tracking` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport` -- +DROP TABLE IF EXISTS `shopexport`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `typ` varchar(255) NOT NULL, - `url` varchar(255) NOT NULL, - `passwort` varchar(255) NOT NULL, - `token` varchar(255) NOT NULL, - `challenge` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `cms` int(1) NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `geloescht` int(1) NOT NULL DEFAULT '0', - `artikelporto` int(11) NOT NULL DEFAULT '0', - `artikelnachnahme` int(11) NOT NULL DEFAULT '0', - `artikelimport` int(1) NOT NULL DEFAULT '0', - `artikelimporteinzeln` int(1) NOT NULL DEFAULT '0', - `demomodus` tinyint(1) NOT NULL DEFAULT '0', - `aktiv` int(1) NOT NULL DEFAULT '1', - `lagerexport` int(1) NOT NULL DEFAULT '1', - `artikelexport` int(1) NOT NULL DEFAULT '1', - `multiprojekt` int(1) NOT NULL DEFAULT '0', - `artikelnachnahme_extraartikel` tinyint(1) NOT NULL DEFAULT '1', - `vorabbezahltmarkieren_ohnevorkasse_bar` int(11) NOT NULL DEFAULT '0', - `einzelsync` tinyint(1) NOT NULL DEFAULT '0', - `utf8codierung` tinyint(1) NOT NULL DEFAULT '1', - `auftragabgleich` int(1) NOT NULL DEFAULT '0', - `rabatteportofestschreiben` tinyint(1) NOT NULL DEFAULT '0', - `artikelnummernummerkreis` tinyint(1) NOT NULL DEFAULT '0', - `holealle` tinyint(1) NOT NULL DEFAULT '0', - `ab_nummer` varchar(255) NOT NULL DEFAULT '', - `direktimport` tinyint(1) NOT NULL DEFAULT '0', - `ust_ok` tinyint(1) NOT NULL DEFAULT '0', - `anzgleichzeitig` int(15) NOT NULL DEFAULT '1', - `datumvon` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `datumbis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `tmpdatumvon` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `tmpdatumbis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `holeallestati` tinyint(1) NOT NULL DEFAULT '1', - `cronjobaktiv` tinyint(1) NOT NULL DEFAULT '0', - `nummersyncstatusaendern` tinyint(1) NOT NULL DEFAULT '0', - `zahlungsweisenmapping` tinyint(1) NOT NULL DEFAULT '0', - `versandartenmapping` tinyint(1) NOT NULL DEFAULT '0', - `artikelnummeruebernehmen` tinyint(1) NOT NULL DEFAULT '0', - `artikelbeschreibungauswawision` tinyint(1) NOT NULL DEFAULT '0', - `artikelbeschreibungenuebernehmen` tinyint(1) NOT NULL DEFAULT '0', - `stuecklisteergaenzen` tinyint(1) NOT NULL DEFAULT '0', - `adressupdate` tinyint(1) NOT NULL DEFAULT '0', - `kundenurvonprojekt` tinyint(1) NOT NULL DEFAULT '0', - `add_debitorennummer` tinyint(1) NOT NULL DEFAULT '0', - `debitorennummer` varchar(16) NOT NULL DEFAULT '', - `sendonlywithtracking` tinyint(1) NOT NULL DEFAULT '0', - `api_account_id` int(10) NOT NULL DEFAULT '0', - `api_account_token` varchar(1024) NOT NULL DEFAULT '', - `autosendarticle` tinyint(1) NOT NULL DEFAULT '0', - `autosendarticle_last` timestamp NULL DEFAULT NULL, - `shopbilderuebertragen` tinyint(1) NOT NULL DEFAULT '0', - `adressennichtueberschreiben` tinyint(1) NOT NULL DEFAULT '0', - `auftraegeaufspaeter` tinyint(1) NOT NULL DEFAULT '0', - `autoversandbeikommentardeaktivieren` tinyint(1) NOT NULL DEFAULT '0', - `artikeltexteuebernehmen` tinyint(1) NOT NULL DEFAULT '1', - `artikelportoermaessigt` int(11) NOT NULL DEFAULT '0', - `artikelrabatt` int(11) NOT NULL DEFAULT '0', - `artikelrabattsteuer` decimal(4,2) NOT NULL DEFAULT '-1.00', - `positionsteuersaetzeerlauben` tinyint(1) NOT NULL DEFAULT '0', - `json` text NOT NULL, - `freitext` varchar(64) NOT NULL DEFAULT '', - `artikelbezeichnungauswawision` tinyint(1) NOT NULL DEFAULT '0', - `angeboteanlegen` tinyint(1) NOT NULL DEFAULT '0', - `autoversandoption` varchar(255) NOT NULL DEFAULT 'standard', - `artikelnummerbeimanlegenausshop` tinyint(1) NOT NULL DEFAULT '0', - `shoptyp` varchar(32) NOT NULL DEFAULT '', - `modulename` varchar(64) NOT NULL DEFAULT '', - `einstellungen_json` mediumtext NOT NULL, - `maxmanuell` int(11) NOT NULL DEFAULT '0', - `preisgruppe` int(11) NOT NULL DEFAULT '0', - `variantenuebertragen` tinyint(1) NOT NULL DEFAULT '1', - `crosssellingartikeluebertragen` tinyint(1) NOT NULL DEFAULT '1', - `staffelpreiseuebertragen` tinyint(1) NOT NULL DEFAULT '1', - `lagergrundlage` tinyint(1) NOT NULL DEFAULT '0', - `portoartikelanlegen` tinyint(1) NOT NULL DEFAULT '0', - `nurneueartikel` tinyint(1) NOT NULL DEFAULT '1', - `startdate` date DEFAULT NULL, - `ueberschreibe_lagerkorrekturwert` tinyint(1) NOT NULL DEFAULT '0', - `lagerkorrekturwert` int(11) NOT NULL DEFAULT '0', - `vertrieb` int(11) NOT NULL DEFAULT '0', - `eigenschaftenuebertragen` tinyint(1) NOT NULL DEFAULT '0', - `kategorienuebertragen` tinyint(1) NOT NULL DEFAULT '0', - `stornoabgleich` tinyint(1) NOT NULL DEFAULT '0', - `nurpreise` tinyint(1) NOT NULL DEFAULT '0', - `steuerfreilieferlandexport` tinyint(1) NOT NULL DEFAULT '1', - `gutscheineuebertragen` tinyint(1) NOT NULL DEFAULT '0', - `gesamtbetragfestsetzen` tinyint(1) NOT NULL DEFAULT '0', - `lastschriftdatenueberschreiben` tinyint(1) NOT NULL DEFAULT '0', - `gesamtbetragfestsetzendifferenz` decimal(10,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `typ` varchar(255) NOT NULL, + `url` varchar(255) NOT NULL, + `passwort` varchar(255) NOT NULL, + `token` varchar(255) NOT NULL, + `challenge` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `cms` int(1) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `geloescht` int(1) NOT NULL DEFAULT 0, + `artikelporto` int(11) NOT NULL DEFAULT 0, + `artikelnachnahme` int(11) NOT NULL DEFAULT 0, + `artikelimport` int(1) NOT NULL DEFAULT 0, + `artikelimporteinzeln` int(1) NOT NULL DEFAULT 0, + `demomodus` tinyint(1) NOT NULL DEFAULT 0, + `aktiv` int(1) NOT NULL DEFAULT 1, + `lagerexport` int(1) NOT NULL DEFAULT 1, + `artikelexport` int(1) NOT NULL DEFAULT 1, + `multiprojekt` int(1) NOT NULL DEFAULT 0, + `artikelnachnahme_extraartikel` tinyint(1) NOT NULL DEFAULT 1, + `vorabbezahltmarkieren_ohnevorkasse_bar` int(11) NOT NULL DEFAULT 0, + `einzelsync` tinyint(1) NOT NULL DEFAULT 0, + `utf8codierung` tinyint(1) NOT NULL DEFAULT 1, + `auftragabgleich` int(1) NOT NULL DEFAULT 0, + `rabatteportofestschreiben` tinyint(1) NOT NULL DEFAULT 0, + `artikelnummernummerkreis` tinyint(1) NOT NULL DEFAULT 0, + `holealle` tinyint(1) NOT NULL DEFAULT 0, + `ab_nummer` varchar(255) NOT NULL, + `direktimport` tinyint(1) NOT NULL DEFAULT 0, + `ust_ok` tinyint(1) NOT NULL DEFAULT 0, + `anzgleichzeitig` int(15) NOT NULL DEFAULT 1, + `datumvon` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `datumbis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `tmpdatumvon` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `tmpdatumbis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `holeallestati` tinyint(1) NOT NULL DEFAULT 1, + `cronjobaktiv` tinyint(1) NOT NULL DEFAULT 0, + `nummersyncstatusaendern` tinyint(1) NOT NULL DEFAULT 0, + `zahlungsweisenmapping` tinyint(1) NOT NULL DEFAULT 0, + `versandartenmapping` tinyint(1) NOT NULL DEFAULT 0, + `artikelnummeruebernehmen` tinyint(1) NOT NULL DEFAULT 0, + `artikelbeschreibungauswawision` tinyint(1) NOT NULL DEFAULT 0, + `artikelbeschreibungenuebernehmen` tinyint(1) NOT NULL DEFAULT 0, + `stuecklisteergaenzen` tinyint(1) NOT NULL DEFAULT 0, + `adressupdate` tinyint(1) NOT NULL DEFAULT 0, + `kundenurvonprojekt` tinyint(1) NOT NULL DEFAULT 0, + `add_debitorennummer` tinyint(1) NOT NULL DEFAULT 0, + `debitorennummer` varchar(16) NOT NULL, + `sendonlywithtracking` tinyint(1) NOT NULL DEFAULT 0, + `api_account_id` int(10) NOT NULL DEFAULT 0, + `api_account_token` varchar(1024) NOT NULL, + `autosendarticle` tinyint(1) NOT NULL DEFAULT 0, + `autosendarticle_last` timestamp NULL DEFAULT NULL, + `shopbilderuebertragen` tinyint(1) NOT NULL DEFAULT 0, + `adressennichtueberschreiben` tinyint(1) NOT NULL DEFAULT 0, + `auftraegeaufspaeter` tinyint(1) NOT NULL DEFAULT 0, + `autoversandbeikommentardeaktivieren` tinyint(1) NOT NULL DEFAULT 0, + `artikeltexteuebernehmen` tinyint(1) NOT NULL DEFAULT 1, + `artikelportoermaessigt` int(11) NOT NULL DEFAULT 0, + `artikelrabatt` int(11) NOT NULL DEFAULT 0, + `artikelrabattsteuer` decimal(4,2) NOT NULL DEFAULT -1.00, + `positionsteuersaetzeerlauben` tinyint(1) NOT NULL DEFAULT 0, + `json` text NOT NULL, + `freitext` varchar(64) NOT NULL, + `artikelbezeichnungauswawision` tinyint(1) NOT NULL DEFAULT 0, + `angeboteanlegen` tinyint(1) NOT NULL DEFAULT 0, + `autoversandoption` varchar(255) NOT NULL DEFAULT 'standard', + `artikelnummerbeimanlegenausshop` tinyint(1) NOT NULL DEFAULT 0, + `shoptyp` varchar(32) NOT NULL, + `modulename` varchar(64) NOT NULL, + `einstellungen_json` mediumtext NOT NULL, + `maxmanuell` int(11) NOT NULL DEFAULT 0, + `preisgruppe` int(11) NOT NULL DEFAULT 0, + `variantenuebertragen` tinyint(1) NOT NULL DEFAULT 1, + `crosssellingartikeluebertragen` tinyint(1) NOT NULL DEFAULT 1, + `staffelpreiseuebertragen` tinyint(1) NOT NULL DEFAULT 1, + `lagergrundlage` tinyint(1) NOT NULL DEFAULT 0, + `portoartikelanlegen` tinyint(1) NOT NULL DEFAULT 0, + `nurneueartikel` tinyint(1) NOT NULL DEFAULT 1, + `startdate` date DEFAULT NULL, + `ueberschreibe_lagerkorrekturwert` tinyint(1) NOT NULL DEFAULT 0, + `lagerkorrekturwert` int(11) NOT NULL DEFAULT 0, + `vertrieb` int(11) NOT NULL DEFAULT 0, + `eigenschaftenuebertragen` tinyint(1) NOT NULL DEFAULT 0, + `kategorienuebertragen` tinyint(1) NOT NULL DEFAULT 0, + `stornoabgleich` tinyint(1) NOT NULL DEFAULT 0, + `nurpreise` tinyint(1) NOT NULL DEFAULT 0, + `steuerfreilieferlandexport` tinyint(1) NOT NULL DEFAULT 1, + `gutscheineuebertragen` tinyint(1) NOT NULL DEFAULT 0, + `gesamtbetragfestsetzen` tinyint(1) NOT NULL DEFAULT 0, + `lastschriftdatenueberschreiben` tinyint(1) NOT NULL DEFAULT 0, + `gesamtbetragfestsetzendifferenz` decimal(10,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_adressenuebertragen` -- +DROP TABLE IF EXISTS `shopexport_adressenuebertragen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_adressenuebertragen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_adressenuebertragen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_archiv` -- +DROP TABLE IF EXISTS `shopexport_archiv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_archiv` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL DEFAULT '0', - `anzahl` int(11) NOT NULL DEFAULT '0', - `erfolgreich` int(11) NOT NULL DEFAULT '0', - `status` varchar(255) NOT NULL DEFAULT '', - `letzteabgeholtenummer` varchar(255) NOT NULL DEFAULT '', - `type` varchar(255) NOT NULL DEFAULT '', - `datumvon` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `datumbis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `nummervon` varchar(255) NOT NULL DEFAULT '', - `nummerbis` varchar(255) NOT NULL DEFAULT '', - `abschliessen` tinyint(1) NOT NULL DEFAULT '1', - `stornierteabholen` tinyint(1) NOT NULL DEFAULT '1', - `rechnung_erzeugen` tinyint(1) NOT NULL DEFAULT '1', - `rechnung_bezahlt` tinyint(1) NOT NULL DEFAULT '1', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `donotimport` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shop` (`shop`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_archiv` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL DEFAULT 0, + `anzahl` int(11) NOT NULL DEFAULT 0, + `erfolgreich` int(11) NOT NULL DEFAULT 0, + `status` varchar(255) NOT NULL, + `letzteabgeholtenummer` varchar(255) NOT NULL, + `type` varchar(255) NOT NULL, + `datumvon` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `datumbis` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `nummervon` varchar(255) NOT NULL, + `nummerbis` varchar(255) NOT NULL, + `abschliessen` tinyint(1) NOT NULL DEFAULT 1, + `stornierteabholen` tinyint(1) NOT NULL DEFAULT 1, + `rechnung_erzeugen` tinyint(1) NOT NULL DEFAULT 1, + `rechnung_bezahlt` tinyint(1) NOT NULL DEFAULT 1, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `donotimport` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shop` (`shop`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_artikel` -- +DROP TABLE IF EXISTS `shopexport_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopid` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `name` varchar(255) NOT NULL DEFAULT '', - `wert` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shopid` (`shopid`,`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopid` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `wert` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shopid` (`shopid`,`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_artikeluebertragen` -- +DROP TABLE IF EXISTS `shopexport_artikeluebertragen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_artikeluebertragen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `check_nr` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_artikeluebertragen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `check_nr` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_artikeluebertragen_check` -- +DROP TABLE IF EXISTS `shopexport_artikeluebertragen_check`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_artikeluebertragen_check` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_artikeluebertragen_check` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_change_log` -- +DROP TABLE IF EXISTS `shopexport_change_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_change_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `username` varchar(255) NOT NULL DEFAULT '', - `diff` text NOT NULL, - `creation_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `message` varchar(255) NOT NULL DEFAULT '', - `plaindiff` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_change_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `username` varchar(255) NOT NULL, + `diff` text NOT NULL, + `creation_timestamp` timestamp NOT NULL DEFAULT current_timestamp(), + `message` varchar(255) NOT NULL, + `plaindiff` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_freifelder` -- +DROP TABLE IF EXISTS `shopexport_freifelder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_freifelder` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `freifeld_wawi` varchar(255) NOT NULL DEFAULT '', - `freifeld_shop` varchar(255) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` timestamp NULL DEFAULT NULL, - `updatedby` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_freifelder` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `freifeld_wawi` varchar(255) NOT NULL, + `freifeld_shop` varchar(255) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `updated` timestamp NULL DEFAULT NULL, + `updatedby` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_getarticles` -- +DROP TABLE IF EXISTS `shopexport_getarticles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_getarticles` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `nummer` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `shop` (`shop`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_getarticles` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `nummer` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `shop` (`shop`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_kampange` -- +DROP TABLE IF EXISTS `shopexport_kampange`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_kampange` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `banner` int(11) NOT NULL, - `unterbanner` int(11) NOT NULL, - `von` date NOT NULL, - `bis` date NOT NULL, - `link` text NOT NULL, - `firma` int(11) NOT NULL, - `views` int(11) NOT NULL, - `clicks` int(11) NOT NULL, - `aktiv` int(1) NOT NULL, - `shop` int(11) NOT NULL, - `artikel` varchar(255) NOT NULL, - `aktion` varchar(255) NOT NULL, - `geloescht` int(1) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_kampange` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `banner` int(11) NOT NULL, + `unterbanner` int(11) NOT NULL, + `von` date NOT NULL, + `bis` date NOT NULL, + `link` text NOT NULL, + `firma` int(11) NOT NULL, + `views` int(11) NOT NULL, + `clicks` int(11) NOT NULL, + `aktiv` int(1) NOT NULL, + `shop` int(11) NOT NULL, + `artikel` varchar(255) NOT NULL, + `aktion` varchar(255) NOT NULL, + `geloescht` int(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_kategorien` -- +DROP TABLE IF EXISTS `shopexport_kategorien`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_kategorien` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL DEFAULT '0', - `kategorie` int(11) NOT NULL DEFAULT '0', - `extsort` int(11) NOT NULL DEFAULT '0', - `extid` varchar(255) NOT NULL DEFAULT '', - `extparent` varchar(255) NOT NULL DEFAULT '', - `extname` varchar(255) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` timestamp NULL DEFAULT NULL, - `updatedby` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `shop` (`shop`), - KEY `kategorie` (`kategorie`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_kategorien` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL DEFAULT 0, + `kategorie` int(11) NOT NULL DEFAULT 0, + `extsort` int(11) NOT NULL DEFAULT 0, + `extid` varchar(255) NOT NULL, + `extparent` varchar(255) NOT NULL, + `extname` varchar(255) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `updated` timestamp NULL DEFAULT NULL, + `updatedby` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `shop` (`shop`), + KEY `kategorie` (`kategorie`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_kundengruppen` -- +DROP TABLE IF EXISTS `shopexport_kundengruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_kundengruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopid` int(11) NOT NULL DEFAULT '0', - `gruppeid` int(11) NOT NULL DEFAULT '0', - `apply_to_new_customers` tinyint(1) NOT NULL DEFAULT '0', - `type` varchar(255) NOT NULL DEFAULT 'Mitglied', - `extgruppename` varchar(255) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` timestamp NULL DEFAULT NULL, - `updatedby` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_kundengruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopid` int(11) NOT NULL DEFAULT 0, + `gruppeid` int(11) NOT NULL DEFAULT 0, + `apply_to_new_customers` tinyint(1) NOT NULL DEFAULT 0, + `type` varchar(255) NOT NULL DEFAULT 'mitglied', + `extgruppename` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `updated` timestamp NULL DEFAULT NULL, + `updatedby` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_log` -- +DROP TABLE IF EXISTS `shopexport_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopid` int(11) NOT NULL DEFAULT '0', - `typ` varchar(64) NOT NULL DEFAULT '', - `parameter1` text NOT NULL, - `parameter2` text NOT NULL, - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `parameter3` varchar(255) NOT NULL DEFAULT '', - `parameter4` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `shopid` (`shopid`,`typ`,`parameter3`,`parameter4`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopid` int(11) NOT NULL DEFAULT 0, + `typ` varchar(64) NOT NULL, + `parameter1` text NOT NULL, + `parameter2` text NOT NULL, + `bearbeiter` varchar(64) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `parameter3` varchar(255) NOT NULL, + `parameter4` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `shopid` (`shopid`,`typ`,`parameter3`,`parameter4`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_mapping` -- +DROP TABLE IF EXISTS `shopexport_mapping`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_mapping` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL DEFAULT '0', - `tabelle` varchar(255) NOT NULL DEFAULT '', - `intid` int(11) NOT NULL DEFAULT '0', - `intid2` int(11) NOT NULL DEFAULT '0', - `extid` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop` (`shop`), - KEY `tabelle` (`tabelle`), - KEY `intid` (`intid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_mapping` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL DEFAULT 0, + `tabelle` varchar(255) NOT NULL, + `intid` int(11) NOT NULL DEFAULT 0, + `intid2` int(11) NOT NULL DEFAULT 0, + `extid` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop` (`shop`), + KEY `tabelle` (`tabelle`), + KEY `intid` (`intid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_sprachen` -- +DROP TABLE IF EXISTS `shopexport_sprachen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_sprachen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL DEFAULT '0', - `land` varchar(32) NOT NULL DEFAULT '', - `sprache` varchar(255) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` timestamp NULL DEFAULT NULL, - `updatedby` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_sprachen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL DEFAULT 0, + `land` varchar(32) NOT NULL, + `sprache` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `updated` timestamp NULL DEFAULT NULL, + `updatedby` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_status` -- +DROP TABLE IF EXISTS `shopexport_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_status` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikelexport` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `zeit` datetime NOT NULL, - `bemerkung` text NOT NULL, - `befehl` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_status` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikelexport` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeit` datetime NOT NULL, + `bemerkung` text NOT NULL, + `befehl` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_subshop` -- +DROP TABLE IF EXISTS `shopexport_subshop`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_subshop` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `subshopkennung` varchar(255) NOT NULL DEFAULT '', - `sprache` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` timestamp NULL DEFAULT NULL, - `updatedby` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_subshop` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `subshopkennung` varchar(255) NOT NULL, + `sprache` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `updated` timestamp NULL DEFAULT NULL, + `updatedby` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_versandarten` -- +DROP TABLE IF EXISTS `shopexport_versandarten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_versandarten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `versandart_shop` varchar(255) NOT NULL DEFAULT '', - `versandart_wawision` varchar(255) NOT NULL DEFAULT '', - `autoversand` int(11) NOT NULL DEFAULT '0', - `land` text NOT NULL, - `aktiv` int(11) NOT NULL DEFAULT '0', - `versandart_ausgehend` varchar(255) NOT NULL DEFAULT '', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` timestamp NULL DEFAULT NULL, - `updatedby` varchar(255) NOT NULL DEFAULT '', - `fastlane` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_versandarten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `versandart_shop` varchar(255) NOT NULL, + `versandart_wawision` varchar(255) NOT NULL, + `autoversand` int(11) NOT NULL DEFAULT 0, + `land` text NOT NULL, + `aktiv` int(11) NOT NULL DEFAULT 0, + `versandart_ausgehend` varchar(255) NOT NULL, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `updated` timestamp NULL DEFAULT NULL, + `updatedby` varchar(255) NOT NULL, + `fastlane` tinyint(1) NOT NULL DEFAULT 0, + `produkt_ausgehend` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_voucher_cache` -- +DROP TABLE IF EXISTS `shopexport_voucher_cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_voucher_cache` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `voucher_id` int(11) NOT NULL, - `value` float NOT NULL DEFAULT '0', - `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `voucher_id` (`voucher_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_voucher_cache` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `voucher_id` int(11) NOT NULL, + `value` float NOT NULL DEFAULT 0, + `updated` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + UNIQUE KEY `voucher_id` (`voucher_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_zahlungsstatus` -- +DROP TABLE IF EXISTS `shopexport_zahlungsstatus`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_zahlungsstatus` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL DEFAULT '0', - `auftrag` varchar(255) NOT NULL DEFAULT '', - `status` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop` (`shop`), - KEY `auftrag` (`auftrag`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_zahlungsstatus` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL DEFAULT 0, + `auftrag` varchar(255) NOT NULL, + `status` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop` (`shop`), + KEY `auftrag` (`auftrag`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopexport_zahlweisen` -- +DROP TABLE IF EXISTS `shopexport_zahlweisen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopexport_zahlweisen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL, - `zahlweise_shop` varchar(255) NOT NULL DEFAULT '', - `zahlweise_wawision` varchar(255) NOT NULL DEFAULT '', - `vorabbezahltmarkieren` int(11) NOT NULL DEFAULT '0', - `autoversand` int(11) NOT NULL DEFAULT '0', - `aktiv` int(11) NOT NULL DEFAULT '0', - `keinerechnung` tinyint(1) NOT NULL DEFAULT '0', - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updatedby` varchar(255) NOT NULL DEFAULT '', - `fastlane` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopexport_zahlweisen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL, + `zahlweise_shop` varchar(255) NOT NULL, + `zahlweise_wawision` varchar(255) NOT NULL, + `vorabbezahltmarkieren` int(11) NOT NULL DEFAULT 0, + `autoversand` int(11) NOT NULL DEFAULT 0, + `aktiv` int(11) NOT NULL DEFAULT 0, + `keinerechnung` tinyint(1) NOT NULL DEFAULT 0, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + `updatedby` varchar(255) NOT NULL, + `fastlane` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimport_amazon_aufrufe` -- +DROP TABLE IF EXISTS `shopimport_amazon_aufrufe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimport_amazon_aufrufe` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `shop` varchar(100) NOT NULL, - `funktion` varchar(100) NOT NULL, - `daten` mediumtext NOT NULL, - `abgeschlossen` int(1) NOT NULL DEFAULT '0', - `maxpuffer` int(3) NOT NULL, - `timeout` int(4) NOT NULL, - `zeitstempel` datetime DEFAULT NULL, - `ausgefuehrt` int(1) DEFAULT '0', - `preismenge` int(1) DEFAULT NULL, - `apifunktion` varchar(100) NOT NULL, - `feedid` varchar(50) DEFAULT NULL, - `relatedtoid` int(4) DEFAULT NULL, - `inbearbeitung` int(1) DEFAULT '0', - `fehlertext` text, - `shopid` int(11) NOT NULL DEFAULT '0', - `json_encoded` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimport_amazon_aufrufe` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `shop` varchar(100) NOT NULL, + `funktion` varchar(100) NOT NULL, + `daten` mediumtext NOT NULL, + `abgeschlossen` int(1) NOT NULL DEFAULT 0, + `maxpuffer` int(3) NOT NULL, + `timeout` int(4) NOT NULL, + `zeitstempel` datetime DEFAULT NULL, + `ausgefuehrt` int(1) DEFAULT 0, + `preismenge` int(1) DEFAULT NULL, + `apifunktion` varchar(100) NOT NULL, + `feedid` varchar(50) DEFAULT NULL, + `relatedtoid` int(4) DEFAULT NULL, + `inbearbeitung` int(1) DEFAULT 0, + `fehlertext` text DEFAULT NULL, + `shopid` int(11) NOT NULL DEFAULT 0, + `json_encoded` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimport_amazon_gotorders` -- +DROP TABLE IF EXISTS `shopimport_amazon_gotorders`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimport_amazon_gotorders` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `orderid` varchar(30) DEFAULT NULL, - `orderitemid` varchar(30) DEFAULT NULL, - `nextordertoken` varchar(30) DEFAULT NULL, - `nextitemtoken` varchar(30) DEFAULT NULL, - `zeitstempel` datetime DEFAULT NULL, - `tracking` varchar(64) DEFAULT '', - `sent` tinyint(1) DEFAULT '0', - `shopid` int(11) NOT NULL DEFAULT '0', - `isprime` tinyint(1) DEFAULT '-1', - `isprimenextday` tinyint(1) DEFAULT '-1', - `imported` tinyint(1) DEFAULT '1', - `isfba` tinyint(1) DEFAULT '-1', - `marketplace` varchar(16) DEFAULT '', - PRIMARY KEY (`id`), - KEY `orderid` (`orderid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimport_amazon_gotorders` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `orderid` varchar(30) DEFAULT NULL, + `orderitemid` varchar(30) DEFAULT NULL, + `nextordertoken` varchar(30) DEFAULT NULL, + `nextitemtoken` varchar(30) DEFAULT NULL, + `zeitstempel` datetime DEFAULT NULL, + `tracking` varchar(64) DEFAULT NULL, + `sent` tinyint(1) DEFAULT 0, + `shopid` int(11) NOT NULL DEFAULT 0, + `isprime` tinyint(1) DEFAULT -1, + `isprimenextday` tinyint(1) DEFAULT -1, + `imported` tinyint(1) DEFAULT 1, + `isfba` tinyint(1) DEFAULT -1, + `marketplace` varchar(16) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `orderid` (`orderid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimport_amazon_throttling` -- +DROP TABLE IF EXISTS `shopimport_amazon_throttling`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimport_amazon_throttling` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `apifunktion` varchar(100) DEFAULT '', - `shop` varchar(100) DEFAULT NULL, - `typ` varchar(50) DEFAULT NULL, - `max` int(3) DEFAULT NULL, - `stunde` int(3) DEFAULT NULL, - `restore` float DEFAULT NULL, - `zaehlermax` int(3) DEFAULT NULL, - `zaehlerstunde` int(3) DEFAULT NULL, - `ersteraufruf` datetime DEFAULT NULL, - `letzteraufruf` datetime DEFAULT NULL, - `maxpuffer` int(3) DEFAULT NULL, - `minpuffer` int(3) DEFAULT NULL, - `timeout` int(4) DEFAULT NULL, - `zaehleraufrufe` int(3) DEFAULT '0', - `zeitstempel` datetime DEFAULT NULL, - `shopid` int(11) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shopid` (`shopid`) -) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8; +CREATE TABLE `shopimport_amazon_throttling` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `apifunktion` varchar(100) DEFAULT NULL, + `shop` varchar(100) DEFAULT NULL, + `typ` varchar(50) DEFAULT NULL, + `max` int(3) DEFAULT NULL, + `stunde` int(3) DEFAULT NULL, + `restore` float DEFAULT NULL, + `zaehlermax` int(3) DEFAULT NULL, + `zaehlerstunde` int(3) DEFAULT NULL, + `ersteraufruf` datetime DEFAULT NULL, + `letzteraufruf` datetime DEFAULT NULL, + `maxpuffer` int(3) DEFAULT NULL, + `minpuffer` int(3) DEFAULT NULL, + `timeout` int(4) DEFAULT NULL, + `zaehleraufrufe` int(3) DEFAULT 0, + `zeitstempel` datetime DEFAULT NULL, + `shopid` int(11) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shopid` (`shopid`) +) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimport_auftraege` -- +DROP TABLE IF EXISTS `shopimport_auftraege`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimport_auftraege` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopid` int(11) NOT NULL DEFAULT '0', - `extid` varchar(255) NOT NULL DEFAULT '', - `sessionid` varchar(255) NOT NULL, - `warenkorb` mediumtext NOT NULL, - `imported` int(1) NOT NULL, - `trash` int(1) NOT NULL, - `projekt` int(11) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` datetime NOT NULL, - `bestellnummer` varchar(255) DEFAULT NULL, - `jsonencoded` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimport_auftraege` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopid` int(11) NOT NULL DEFAULT 0, + `extid` varchar(255) NOT NULL, + `sessionid` varchar(255) NOT NULL, + `warenkorb` mediumtext NOT NULL, + `imported` int(1) NOT NULL, + `trash` int(1) NOT NULL, + `projekt` int(11) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` datetime NOT NULL, + `bestellnummer` varchar(255) DEFAULT NULL, + `jsonencoded` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimport_checkorder` -- +DROP TABLE IF EXISTS `shopimport_checkorder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimport_checkorder` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `order_id` int(11) NOT NULL DEFAULT '0', - `ext_order` varchar(255) NOT NULL DEFAULT '0', - `fetch_counter` int(11) NOT NULL DEFAULT '0', - `status` varchar(255) NOT NULL DEFAULT 'unpaid', - `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, - `date_last_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimport_checkorder` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `order_id` int(11) NOT NULL DEFAULT 0, + `ext_order` varchar(255) NOT NULL DEFAULT '0', + `fetch_counter` int(11) NOT NULL DEFAULT 0, + `status` varchar(255) NOT NULL DEFAULT 'unpaid', + `date_created` datetime NOT NULL DEFAULT current_timestamp(), + `date_last_modified` datetime NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_attachedoffers` -- +DROP TABLE IF EXISTS `shopimporter_amazon_attachedoffers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_attachedoffers` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `article_id` int(11) NOT NULL DEFAULT '0', - `is_fba` tinyint(1) NOT NULL DEFAULT '0', - `marketplace` varchar(16) NOT NULL DEFAULT '', - `title` varchar(255) NOT NULL DEFAULT '', - `merchantgroup` varchar(255) NOT NULL DEFAULT '', - `condition` varchar(32) NOT NULL DEFAULT 'New', - `sku` varchar(64) NOT NULL DEFAULT '', - `asin` varchar(16) NOT NULL DEFAULT '', - `status` varchar(32) NOT NULL DEFAULT '', - `currency` varchar(4) NOT NULL DEFAULT '', - `status_article` int(1) NOT NULL DEFAULT '0', - `status_storage` int(1) NOT NULL DEFAULT '0', - `status_price` int(1) NOT NULL DEFAULT '0', - `status_flat` int(1) NOT NULL DEFAULT '0', - `price` decimal(10,2) NOT NULL DEFAULT '0.00', - `feed_submission_id` varchar(32) NOT NULL DEFAULT '', - `feed_submission_id_price` varchar(32) NOT NULL DEFAULT '', - `feed_submission_id_storage` varchar(32) NOT NULL DEFAULT '', - `feed_submission_id_flat` varchar(32) NOT NULL DEFAULT '', - `error_code` varchar(8) NOT NULL DEFAULT '', - `error_message` varchar(1024) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `article_id` (`article_id`), - KEY `sku` (`sku`), - KEY `asin` (`asin`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_attachedoffers` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `article_id` int(11) NOT NULL DEFAULT 0, + `is_fba` tinyint(1) NOT NULL DEFAULT 0, + `marketplace` varchar(16) NOT NULL, + `title` varchar(255) NOT NULL, + `merchantgroup` varchar(255) NOT NULL, + `condition` varchar(32) NOT NULL DEFAULT 'new', + `sku` varchar(64) NOT NULL, + `asin` varchar(16) NOT NULL, + `status` varchar(32) NOT NULL, + `currency` varchar(4) NOT NULL, + `status_article` int(1) NOT NULL DEFAULT 0, + `status_storage` int(1) NOT NULL DEFAULT 0, + `status_price` int(1) NOT NULL DEFAULT 0, + `status_flat` int(1) NOT NULL DEFAULT 0, + `price` decimal(10,2) NOT NULL DEFAULT 0.00, + `feed_submission_id` varchar(32) NOT NULL, + `feed_submission_id_price` varchar(32) NOT NULL, + `feed_submission_id_storage` varchar(32) NOT NULL, + `feed_submission_id_flat` varchar(32) NOT NULL, + `error_code` varchar(8) NOT NULL, + `error_message` varchar(1024) NOT NULL, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `article_id` (`article_id`), + KEY `sku` (`sku`), + KEY `asin` (`asin`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_browsetree` -- +DROP TABLE IF EXISTS `shopimporter_amazon_browsetree`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_browsetree` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `browsenodeid` varchar(32) DEFAULT '', - `marketplace` varchar(32) DEFAULT '', - `parent_id` int(11) DEFAULT '0', - `browseNodename` varchar(255) DEFAULT '', - `browseNodestorecontextname` varchar(255) DEFAULT '', - `browsepathbyid` varchar(1024) DEFAULT '', - `browsepathbyname` varchar(1024) DEFAULT '', - `haschildren` tinyint(1) DEFAULT '0', - `producttypedefinitions` varchar(255) DEFAULT '', - `refinementsinformationcount` int(11) DEFAULT '0', - `deprecated` tinyint(1) DEFAULT '0', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `browsenodeid` (`browsenodeid`), - KEY `parent_id` (`parent_id`) -) ENGINE=InnoDB AUTO_INCREMENT=68633 DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_browsetree` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `browsenodeid` varchar(32) DEFAULT NULL, + `marketplace` varchar(32) DEFAULT NULL, + `parent_id` int(11) DEFAULT 0, + `browseNodename` varchar(255) DEFAULT NULL, + `browseNodestorecontextname` varchar(255) DEFAULT NULL, + `browsepathbyid` varchar(1024) DEFAULT NULL, + `browsepathbyname` varchar(1024) DEFAULT NULL, + `haschildren` tinyint(1) DEFAULT 0, + `producttypedefinitions` varchar(255) DEFAULT NULL, + `refinementsinformationcount` int(11) DEFAULT 0, + `deprecated` tinyint(1) DEFAULT 0, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `browsenodeid` (`browsenodeid`), + KEY `parent_id` (`parent_id`) +) ENGINE=InnoDB AUTO_INCREMENT=68633 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_categorie` -- +DROP TABLE IF EXISTS `shopimporter_amazon_categorie`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_categorie` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `root_node` varchar(32) DEFAULT '', - `name` varchar(255) DEFAULT '', - `node_de` varchar(32) DEFAULT '', - `node_uk` varchar(32) DEFAULT '', - `node_fr` varchar(32) DEFAULT '', - `node_it` varchar(32) DEFAULT '', - `node_es` varchar(32) DEFAULT '', - PRIMARY KEY (`id`), - KEY `name` (`name`), - KEY `node_de` (`node_de`) -) ENGINE=InnoDB AUTO_INCREMENT=16081 DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_categorie` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `root_node` varchar(32) DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + `node_de` varchar(32) DEFAULT NULL, + `node_uk` varchar(32) DEFAULT NULL, + `node_fr` varchar(32) DEFAULT NULL, + `node_it` varchar(32) DEFAULT NULL, + `node_es` varchar(32) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `name` (`name`), + KEY `node_de` (`node_de`) +) ENGINE=InnoDB AUTO_INCREMENT=16081 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_creditnotes_adjustmentid` -- +DROP TABLE IF EXISTS `shopimporter_amazon_creditnotes_adjustmentid`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_creditnotes_adjustmentid` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `creditnote_id` int(11) NOT NULL DEFAULT '0', - `article_id` int(11) NOT NULL DEFAULT '0', - `invoice_id` int(11) NOT NULL DEFAULT '0', - `adjustmentid` varchar(64) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `creditnote_id` (`creditnote_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_creditnotes_adjustmentid` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `creditnote_id` int(11) NOT NULL DEFAULT 0, + `article_id` int(11) NOT NULL DEFAULT 0, + `invoice_id` int(11) NOT NULL DEFAULT 0, + `adjustmentid` varchar(64) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `creditnote_id` (`creditnote_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_feedsubmission` -- +DROP TABLE IF EXISTS `shopimporter_amazon_feedsubmission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_feedsubmission` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) DEFAULT '0', - `feed_submission_id` varchar(32) DEFAULT '', - `feed_type` varchar(64) DEFAULT '', - `feed_processing_status` varchar(32) DEFAULT '', - `parameter` varchar(32) DEFAULT '', - `started_processing_date` datetime DEFAULT NULL, - `submitted_date` datetime DEFAULT NULL, - `completed_processing_date` datetime DEFAULT NULL, - `lastcheck` datetime DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`,`feed_submission_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_feedsubmission` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) DEFAULT 0, + `feed_submission_id` varchar(32) DEFAULT NULL, + `feed_type` varchar(64) DEFAULT NULL, + `feed_processing_status` varchar(32) DEFAULT NULL, + `parameter` varchar(32) DEFAULT NULL, + `started_processing_date` datetime DEFAULT NULL, + `submitted_date` datetime DEFAULT NULL, + `completed_processing_date` datetime DEFAULT NULL, + `lastcheck` datetime DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`,`feed_submission_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_flatfile_article` -- +DROP TABLE IF EXISTS `shopimporter_amazon_flatfile_article`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_flatfile_article` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `article_id` int(11) NOT NULL DEFAULT '0', - `flatfile_id` int(11) NOT NULL DEFAULT '0', - `sku` varchar(255) NOT NULL DEFAULT '', - `status` varchar(255) NOT NULL DEFAULT '', - `marketplace` varchar(32) NOT NULL DEFAULT '', - `feedsubmissionid` varchar(255) NOT NULL DEFAULT '', - `error_message` text, - `all_required_ok` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_flatfile_article` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `article_id` int(11) NOT NULL DEFAULT 0, + `flatfile_id` int(11) NOT NULL DEFAULT 0, + `sku` varchar(255) NOT NULL, + `status` varchar(255) NOT NULL, + `marketplace` varchar(32) NOT NULL, + `feedsubmissionid` varchar(255) NOT NULL, + `error_message` text DEFAULT NULL, + `all_required_ok` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_flatfile_article_image` -- +DROP TABLE IF EXISTS `shopimporter_amazon_flatfile_article_image`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_flatfile_article_image` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopimporter_amazon_flatfile_article_id` int(11) DEFAULT '0', - `file_id` int(11) DEFAULT '0', - `name` varchar(255) DEFAULT '', - `url` varchar(255) DEFAULT '', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shopimporter_amazon_flatfile_article_id` (`shopimporter_amazon_flatfile_article_id`), - KEY `file_id` (`file_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_flatfile_article_image` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopimporter_amazon_flatfile_article_id` int(11) DEFAULT 0, + `file_id` int(11) DEFAULT 0, + `name` varchar(255) DEFAULT NULL, + `url` varchar(255) DEFAULT NULL, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shopimporter_amazon_flatfile_article_id` (`shopimporter_amazon_flatfile_article_id`), + KEY `file_id` (`file_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_flatfile_article_value` -- +DROP TABLE IF EXISTS `shopimporter_amazon_flatfile_article_value`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_flatfile_article_value` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shopimporter_amazon_flatfile_article_id` int(11) NOT NULL DEFAULT '0', - `name` varchar(255) NOT NULL DEFAULT '', - `value` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `shopimporter_amazon_flatfile_article_id` (`shopimporter_amazon_flatfile_article_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_flatfile_article_value` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shopimporter_amazon_flatfile_article_id` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `value` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `shopimporter_amazon_flatfile_article_id` (`shopimporter_amazon_flatfile_article_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_flatfiledefinition` -- +DROP TABLE IF EXISTS `shopimporter_amazon_flatfiledefinition`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_flatfiledefinition` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `country` varchar(2) NOT NULL DEFAULT '', - `csv` text, - `definitions_json` mediumtext, - `requirements_json` mediumtext, - `allowed_values_json` mediumtext, - PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_flatfiledefinition` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `country` varchar(2) NOT NULL, + `csv` text DEFAULT NULL, + `definitions_json` mediumtext DEFAULT NULL, + `requirements_json` mediumtext DEFAULT NULL, + `allowed_values_json` mediumtext DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_flatfilefields` -- +DROP TABLE IF EXISTS `shopimporter_amazon_flatfilefields`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_flatfilefields` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `fieldname` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `fieldname` (`fieldname`) -) ENGINE=InnoDB AUTO_INCREMENT=4499 DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_flatfilefields` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `fieldname` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `fieldname` (`fieldname`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=4499 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_invoice_address` -- +DROP TABLE IF EXISTS `shopimporter_amazon_invoice_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_invoice_address` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `orderid` varchar(19) NOT NULL DEFAULT '', - `name` varchar(255) NOT NULL DEFAULT '', - `addressfieldone` varchar(255) NOT NULL DEFAULT '', - `addressfieldtwo` varchar(255) NOT NULL DEFAULT '', - `addressfieldthree` varchar(255) NOT NULL DEFAULT '', - `city` varchar(255) NOT NULL DEFAULT '', - `region` varchar(255) NOT NULL DEFAULT '', - `postalcode` varchar(32) NOT NULL DEFAULT '', - `countrycode` varchar(32) NOT NULL DEFAULT '', - `email` varchar(255) NOT NULL DEFAULT '', - `phonenumber` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `orderid` (`orderid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_invoice_address` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `orderid` varchar(19) NOT NULL, + `name` varchar(255) NOT NULL, + `addressfieldone` varchar(255) NOT NULL, + `addressfieldtwo` varchar(255) NOT NULL, + `addressfieldthree` varchar(255) NOT NULL, + `city` varchar(255) NOT NULL, + `region` varchar(255) NOT NULL, + `postalcode` varchar(32) NOT NULL, + `countrycode` varchar(32) NOT NULL, + `email` varchar(255) NOT NULL, + `phonenumber` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `orderid` (`orderid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_invoice_upload` -- +DROP TABLE IF EXISTS `shopimporter_amazon_invoice_upload`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_invoice_upload` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `int_order_id` int(11) NOT NULL DEFAULT '0', - `invoice_id` int(11) NOT NULL DEFAULT '0', - `credit_note_id` int(11) NOT NULL DEFAULT '0', - `file_id` int(11) NOT NULL DEFAULT '0', - `orderid` varchar(19) NOT NULL DEFAULT '', - `shippingid` varchar(19) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `sent_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `report` varchar(32) NOT NULL DEFAULT '', - `marketplace` varchar(32) NOT NULL DEFAULT '', - `status` varchar(32) NOT NULL DEFAULT '', - `error_code` varchar(5) NOT NULL DEFAULT '', - `error_message` text NOT NULL, - `invoice_number` varchar(64) NOT NULL DEFAULT '', - `total_amount` decimal(12,2) NOT NULL DEFAULT '0.00', - `total_vat_amount` decimal(12,2) NOT NULL DEFAULT '0.00', - `transaction_id` varchar(255) NOT NULL DEFAULT '', - `count_sent` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `orderid` (`orderid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_invoice_upload` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `int_order_id` int(11) NOT NULL DEFAULT 0, + `invoice_id` int(11) NOT NULL DEFAULT 0, + `credit_note_id` int(11) NOT NULL DEFAULT 0, + `file_id` int(11) NOT NULL DEFAULT 0, + `orderid` varchar(19) NOT NULL, + `shippingid` varchar(19) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `sent_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `report` varchar(32) NOT NULL, + `marketplace` varchar(32) NOT NULL, + `status` varchar(32) NOT NULL, + `error_code` varchar(5) NOT NULL, + `error_message` text NOT NULL, + `invoice_number` varchar(64) NOT NULL, + `total_amount` decimal(12,2) NOT NULL DEFAULT 0.00, + `total_vat_amount` decimal(12,2) NOT NULL DEFAULT 0.00, + `transaction_id` varchar(255) NOT NULL, + `count_sent` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `orderid` (`orderid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_listing` -- +DROP TABLE IF EXISTS `shopimporter_amazon_listing`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_listing` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `marketplace_request` varchar(32) NOT NULL DEFAULT '', - `request_date_listing` datetime DEFAULT NULL, - `request_date_listing_inactive` datetime DEFAULT NULL, - `seller_sku` varchar(255) NOT NULL DEFAULT '', - `item_name` varchar(1024) NOT NULL DEFAULT '', - `article_id` int(11) NOT NULL DEFAULT '0', - `listing_id` varchar(255) NOT NULL DEFAULT '', - `item_description` text, - `price` decimal(12,2) DEFAULT NULL, - `quantity` int(11) DEFAULT NULL, - `open_date` datetime DEFAULT NULL, - `image_url` varchar(255) NOT NULL DEFAULT '', - `item_is_marketplace` varchar(1) NOT NULL DEFAULT '', - `product_id_type` int(11) DEFAULT NULL, - `zshop_shipping_fee` decimal(12,2) DEFAULT NULL, - `item_note` varchar(255) NOT NULL DEFAULT '', - `item_condition` int(11) DEFAULT NULL, - `zshop_category1` varchar(255) NOT NULL DEFAULT '', - `zshop_browse_path` varchar(255) NOT NULL DEFAULT '', - `zshop_storefron_feature` varchar(255) NOT NULL DEFAULT '', - `asin` varchar(10) NOT NULL DEFAULT '', - `asin2` varchar(10) NOT NULL DEFAULT '', - `asin3` varchar(10) NOT NULL DEFAULT '', - `will_ship_internationally` varchar(32) NOT NULL DEFAULT '', - `expedited_shipping` varchar(32) NOT NULL DEFAULT '', - `zshop_boldface` varchar(1) NOT NULL DEFAULT '', - `product_id` varchar(255) NOT NULL DEFAULT '', - `bid_for_fetatured_placement` varchar(255) NOT NULL DEFAULT '', - `add_delete` varchar(255) NOT NULL DEFAULT '', - `pending_quantity` int(11) DEFAULT NULL, - `fulfillment_channel` varchar(255) NOT NULL DEFAULT '', - `business_price` decimal(12,2) DEFAULT NULL, - `quantity_price_type` varchar(255) NOT NULL DEFAULT '', - `quantity_lower_bound1` int(11) DEFAULT NULL, - `quantity_price1` decimal(12,2) DEFAULT NULL, - `quantity_lower_bound2` int(11) DEFAULT NULL, - `quantity_price2` decimal(12,2) DEFAULT NULL, - `quantity_lower_bound3` int(11) DEFAULT NULL, - `quantity_price3` decimal(12,2) DEFAULT NULL, - `quantity_lower_bound4` int(11) DEFAULT NULL, - `quantity_price4` decimal(12,2) DEFAULT NULL, - `quantity_lower_bound5` int(11) DEFAULT NULL, - `quantity_price5` decimal(12,2) DEFAULT NULL, - `merchant_shipping_group` varchar(255) NOT NULL DEFAULT '', - `status` varchar(32) NOT NULL DEFAULT '', - `is_fba` tinyint(1) DEFAULT '-1', - `active` tinyint(1) DEFAULT NULL, - `recommended_article_id` tinyint(1) DEFAULT '0', - PRIMARY KEY (`id`), - KEY `article_id` (`article_id`), - KEY `seller_sku` (`seller_sku`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_listing` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `marketplace_request` varchar(32) NOT NULL, + `request_date_listing` datetime DEFAULT NULL, + `request_date_listing_inactive` datetime DEFAULT NULL, + `seller_sku` varchar(255) NOT NULL, + `item_name` varchar(1024) NOT NULL, + `article_id` int(11) NOT NULL DEFAULT 0, + `listing_id` varchar(255) NOT NULL, + `item_description` text DEFAULT NULL, + `price` decimal(12,2) DEFAULT NULL, + `quantity` int(11) DEFAULT NULL, + `open_date` datetime DEFAULT NULL, + `image_url` varchar(255) NOT NULL, + `item_is_marketplace` varchar(1) NOT NULL, + `product_id_type` int(11) DEFAULT NULL, + `zshop_shipping_fee` decimal(12,2) DEFAULT NULL, + `item_note` varchar(255) NOT NULL, + `item_condition` int(11) DEFAULT NULL, + `zshop_category1` varchar(255) NOT NULL, + `zshop_browse_path` varchar(255) NOT NULL, + `zshop_storefron_feature` varchar(255) NOT NULL, + `asin` varchar(10) NOT NULL, + `asin2` varchar(10) NOT NULL, + `asin3` varchar(10) NOT NULL, + `will_ship_internationally` varchar(32) NOT NULL, + `expedited_shipping` varchar(32) NOT NULL, + `zshop_boldface` varchar(1) NOT NULL, + `product_id` varchar(255) NOT NULL, + `bid_for_fetatured_placement` varchar(255) NOT NULL, + `add_delete` varchar(255) NOT NULL, + `pending_quantity` int(11) DEFAULT NULL, + `fulfillment_channel` varchar(255) NOT NULL, + `business_price` decimal(12,2) DEFAULT NULL, + `quantity_price_type` varchar(255) NOT NULL, + `quantity_lower_bound1` int(11) DEFAULT NULL, + `quantity_price1` decimal(12,2) DEFAULT NULL, + `quantity_lower_bound2` int(11) DEFAULT NULL, + `quantity_price2` decimal(12,2) DEFAULT NULL, + `quantity_lower_bound3` int(11) DEFAULT NULL, + `quantity_price3` decimal(12,2) DEFAULT NULL, + `quantity_lower_bound4` int(11) DEFAULT NULL, + `quantity_price4` decimal(12,2) DEFAULT NULL, + `quantity_lower_bound5` int(11) DEFAULT NULL, + `quantity_price5` decimal(12,2) DEFAULT NULL, + `merchant_shipping_group` varchar(255) NOT NULL, + `status` varchar(32) NOT NULL, + `is_fba` tinyint(1) DEFAULT -1, + `active` tinyint(1) DEFAULT NULL, + `recommended_article_id` tinyint(1) DEFAULT 0, + PRIMARY KEY (`id`), + KEY `article_id` (`article_id`), + KEY `seller_sku` (`seller_sku`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_merchantgroup` -- +DROP TABLE IF EXISTS `shopimporter_amazon_merchantgroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_merchantgroup` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) DEFAULT '0', - `groupname` varchar(255) DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_merchantgroup` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) DEFAULT 0, + `groupname` varchar(255) DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_order_status` -- +DROP TABLE IF EXISTS `shopimporter_amazon_order_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_order_status` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `orderid` varchar(19) NOT NULL DEFAULT '', - `status` varchar(32) NOT NULL DEFAULT '', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `shop_id` (`shop_id`,`orderid`,`status`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_order_status` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `orderid` varchar(19) NOT NULL, + `status` varchar(32) NOT NULL, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + UNIQUE KEY `shop_id` (`shop_id`,`orderid`,`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_orderadjustment` -- +DROP TABLE IF EXISTS `shopimporter_amazon_orderadjustment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_orderadjustment` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `payment_transaction_id` int(11) NOT NULL DEFAULT '0', - `submitfeedid` varchar(32) NOT NULL DEFAULT '', - `status` varchar(32) NOT NULL DEFAULT '', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `status` (`status`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_orderadjustment` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `payment_transaction_id` int(11) NOT NULL DEFAULT 0, + `submitfeedid` varchar(32) NOT NULL, + `status` varchar(32) NOT NULL, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_orderinfo` -- +DROP TABLE IF EXISTS `shopimporter_amazon_orderinfo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_orderinfo` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) DEFAULT '0', - `orderid` varchar(32) DEFAULT '', - `isprime` tinyint(1) DEFAULT '-1', - `isfba` tinyint(1) DEFAULT '-1', - `trackingsent` tinyint(1) DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `orderid` (`orderid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_orderinfo` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) DEFAULT 0, + `orderid` varchar(32) DEFAULT NULL, + `isprime` tinyint(1) DEFAULT -1, + `isfba` tinyint(1) DEFAULT -1, + `trackingsent` tinyint(1) DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `orderid` (`orderid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_recommendation` -- +DROP TABLE IF EXISTS `shopimporter_amazon_recommendation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_recommendation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) DEFAULT '0', - `recommendationtype` varchar(255) DEFAULT '', - `itemname` varchar(255) DEFAULT '', - `defectgroup` varchar(255) DEFAULT '', - `recommendationid` varchar(255) DEFAULT '', - `recommendationreason` varchar(255) DEFAULT '', - `defectattribute` varchar(255) DEFAULT '', - `asin` varchar(255) DEFAULT '', - `sku` varchar(255) DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `recommendationid` (`recommendationid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_recommendation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) DEFAULT 0, + `recommendationtype` varchar(255) DEFAULT NULL, + `itemname` varchar(255) DEFAULT NULL, + `defectgroup` varchar(255) DEFAULT NULL, + `recommendationid` varchar(255) DEFAULT NULL, + `recommendationreason` varchar(255) DEFAULT NULL, + `defectattribute` varchar(255) DEFAULT NULL, + `asin` varchar(255) DEFAULT NULL, + `sku` varchar(255) DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `recommendationid` (`recommendationid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_report_scheduler` -- +DROP TABLE IF EXISTS `shopimporter_amazon_report_scheduler`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_report_scheduler` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `request_date` datetime DEFAULT NULL, - `request_period` int(11) NOT NULL DEFAULT '0', - `marketplace_request` varchar(32) NOT NULL DEFAULT '', - `report_type` varchar(255) NOT NULL DEFAULT '', - `last_reportrequestid` varchar(32) NOT NULL DEFAULT '', - `last_generatedreportid` varchar(32) NOT NULL DEFAULT '', - `last_report_status` varchar(32) NOT NULL DEFAULT '', - `imported` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `shop_id` (`shop_id`,`report_type`,`marketplace_request`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_report_scheduler` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `request_date` datetime DEFAULT NULL, + `request_period` int(11) NOT NULL DEFAULT 0, + `marketplace_request` varchar(32) NOT NULL, + `report_type` varchar(255) NOT NULL, + `last_reportrequestid` varchar(32) NOT NULL, + `last_generatedreportid` varchar(32) NOT NULL, + `last_report_status` varchar(32) NOT NULL, + `imported` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `shop_id` (`shop_id`,`report_type`,`marketplace_request`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_requestinfo` -- +DROP TABLE IF EXISTS `shopimporter_amazon_requestinfo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_requestinfo` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) DEFAULT '0', - `type` varchar(64) DEFAULT '', - `doctype` varchar(64) DEFAULT '', - `parameter` varchar(32) DEFAULT '', - `parameter2` varchar(32) DEFAULT '', - `status` varchar(32) DEFAULT '', - `shopimporter_amazon_aufrufe_id` int(11) DEFAULT '0', - `error` text, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`,`type`), - KEY `shopimporter_amazon_aufrufe_id` (`shopimporter_amazon_aufrufe_id`), - KEY `status` (`status`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_requestinfo` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) DEFAULT 0, + `type` varchar(64) DEFAULT NULL, + `doctype` varchar(64) DEFAULT NULL, + `parameter` varchar(32) DEFAULT NULL, + `parameter2` varchar(32) DEFAULT NULL, + `status` varchar(32) DEFAULT NULL, + `shopimporter_amazon_aufrufe_id` int(11) DEFAULT 0, + `error` text DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`,`type`), + KEY `shopimporter_amazon_aufrufe_id` (`shopimporter_amazon_aufrufe_id`), + KEY `status` (`status`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_service_status` -- +DROP TABLE IF EXISTS `shopimporter_amazon_service_status`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_service_status` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `status` varchar(32) NOT NULL DEFAULT '', - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`), - KEY `updated_at` (`updated_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_service_status` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `status` varchar(32) NOT NULL, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`), + KEY `updated_at` (`updated_at`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_small_and_light` -- +DROP TABLE IF EXISTS `shopimporter_amazon_small_and_light`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_small_and_light` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `marketplace_request` varchar(32) NOT NULL DEFAULT '', - `request_date` datetime DEFAULT NULL, - `sku` varchar(255) NOT NULL DEFAULT '', - `fnsku` varchar(10) NOT NULL DEFAULT '', - `asin` varchar(10) NOT NULL DEFAULT '', - `protuct_name` varchar(1024) NOT NULL DEFAULT '', - `enrolled_in_snl` varchar(3) NOT NULL DEFAULT '', - `marketplace` varchar(16) NOT NULL DEFAULT '', - `your_snl_price` decimal(12,2) DEFAULT NULL, - `inventory_in_snl_fc` int(11) DEFAULT NULL, - `inventory_in_non_snl_fc` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_small_and_light` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `marketplace_request` varchar(32) NOT NULL, + `request_date` datetime DEFAULT NULL, + `sku` varchar(255) NOT NULL, + `fnsku` varchar(10) NOT NULL, + `asin` varchar(10) NOT NULL, + `protuct_name` varchar(1024) NOT NULL, + `enrolled_in_snl` varchar(3) NOT NULL, + `marketplace` varchar(16) NOT NULL, + `your_snl_price` decimal(12,2) DEFAULT NULL, + `inventory_in_snl_fc` int(11) DEFAULT NULL, + `inventory_in_non_snl_fc` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_token` -- +DROP TABLE IF EXISTS `shopimporter_amazon_token`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_token` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL DEFAULT '0', - `type` varchar(255) NOT NULL DEFAULT '', - `token` text NOT NULL, - `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `shop_id` (`shop_id`,`type`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_token` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL DEFAULT 0, + `type` varchar(255) NOT NULL, + `token` text NOT NULL, + `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`,`type`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_amazon_xsd_enumerations` -- +DROP TABLE IF EXISTS `shopimporter_amazon_xsd_enumerations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_amazon_xsd_enumerations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `parent_name` varchar(255) NOT NULL DEFAULT '', - `direct_parent` varchar(255) NOT NULL DEFAULT '', - `element_name` varchar(255) NOT NULL DEFAULT '', - `element_value` varchar(255) NOT NULL DEFAULT '', - `enumeration_type` varchar(255) NOT NULL DEFAULT '', - `restriction` varchar(255) NOT NULL DEFAULT '', - `file` varchar(255) NOT NULL DEFAULT '', - `position` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `enumeration_type` (`enumeration_type`), - KEY `element_name` (`element_name`) -) ENGINE=InnoDB AUTO_INCREMENT=26745 DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_amazon_xsd_enumerations` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `parent_name` varchar(255) NOT NULL, + `direct_parent` varchar(255) NOT NULL, + `element_name` varchar(255) NOT NULL, + `element_value` varchar(255) NOT NULL, + `enumeration_type` varchar(255) NOT NULL, + `restriction` varchar(255) NOT NULL, + `file` varchar(255) NOT NULL, + `position` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `enumeration_type` (`enumeration_type`), + KEY `element_name` (`element_name`) +) ENGINE=InnoDB AUTO_INCREMENT=26745 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopimporter_shopify_auftraege` -- +DROP TABLE IF EXISTS `shopimporter_shopify_auftraege`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopimporter_shopify_auftraege` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop` int(11) NOT NULL DEFAULT '0', - `extid` varchar(32) NOT NULL DEFAULT '', - `status` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(32) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `transaction_id` varchar(64) NOT NULL DEFAULT '', - `zahlungsweise` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `shop` (`shop`), - KEY `extid` (`extid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopimporter_shopify_auftraege` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop` int(11) NOT NULL DEFAULT 0, + `extid` varchar(32) NOT NULL, + `status` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(32) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `transaction_id` varchar(64) NOT NULL, + `zahlungsweise` varchar(64) NOT NULL, + `getestet` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `shop` (`shop`), + KEY `extid` (`extid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `shopnavigation` -- +DROP TABLE IF EXISTS `shopnavigation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `shopnavigation` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL, - `position` int(11) NOT NULL, - `parent` int(11) NOT NULL, - `bezeichnung_en` varchar(255) NOT NULL, - `plugin` varchar(255) NOT NULL, - `pluginparameter` varchar(255) NOT NULL, - `shop` int(11) NOT NULL, - `target` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `shopnavigation` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `position` int(11) NOT NULL, + `parent` int(11) NOT NULL, + `bezeichnung_en` varchar(255) NOT NULL, + `plugin` varchar(255) NOT NULL, + `pluginparameter` varchar(255) NOT NULL, + `shop` int(11) NOT NULL, + `target` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `singleshipment_order` -- +DROP TABLE IF EXISTS `singleshipment_order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `singleshipment_order` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `order_id` int(11) NOT NULL, - `deliverynote_id` int(11) NOT NULL, - `date` datetime NOT NULL, - `status` varchar(255) NOT NULL, - `trackingnumber` varchar(255) NOT NULL DEFAULT '', - `quality` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `singleshipment_order` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `order_id` int(11) NOT NULL, + `deliverynote_id` int(11) NOT NULL, + `date` datetime NOT NULL, + `status` varchar(255) NOT NULL, + `trackingnumber` varchar(255) NOT NULL, + `quality` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `snapaddy_address` -- +DROP TABLE IF EXISTS `snapaddy_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `snapaddy_address` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `address_id` varchar(64) DEFAULT NULL, - `contact_list` varchar(64) DEFAULT NULL, - `firstName` varchar(64) DEFAULT NULL, - `lastName` varchar(64) DEFAULT NULL, - `phone` varchar(64) DEFAULT NULL, - `email` varchar(64) DEFAULT NULL, - `city` varchar(64) DEFAULT NULL, - `website` varchar(64) DEFAULT NULL, - `zip` varchar(64) DEFAULT NULL, - `xentral_id` int(11) DEFAULT '0', - `snap_created` varchar(64) DEFAULT NULL, - `snap_hash` varchar(64) NOT NULL, - `address` text, - PRIMARY KEY (`id`), - UNIQUE KEY `snap_hash` (`snap_hash`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `snapaddy_address` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `address_id` varchar(64) DEFAULT NULL, + `contact_list` varchar(64) DEFAULT NULL, + `firstName` varchar(64) DEFAULT NULL, + `lastName` varchar(64) DEFAULT NULL, + `phone` varchar(64) DEFAULT NULL, + `email` varchar(64) DEFAULT NULL, + `city` varchar(64) DEFAULT NULL, + `website` varchar(64) DEFAULT NULL, + `zip` varchar(64) DEFAULT NULL, + `xentral_id` int(11) DEFAULT 0, + `snap_created` varchar(64) DEFAULT NULL, + `snap_hash` varchar(64) NOT NULL, + `address` text DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `snap_hash` (`snap_hash`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `snapaddy_log` -- +DROP TABLE IF EXISTS `snapaddy_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `snapaddy_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `lvl` varchar(16) NOT NULL, - `msg` text NOT NULL, - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `snapaddy_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `lvl` varchar(16) NOT NULL, + `msg` text NOT NULL, + `created` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `sprachen` -- +DROP TABLE IF EXISTS `sprachen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sprachen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `iso` varchar(2) NOT NULL, - `bezeichnung_de` varchar(255) NOT NULL DEFAULT '', - `bezeichnung_en` varchar(255) NOT NULL DEFAULT '', - `alias` varchar(255) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; +CREATE TABLE `sprachen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `iso` varchar(2) NOT NULL, + `bezeichnung_de` varchar(255) NOT NULL, + `bezeichnung_en` varchar(255) NOT NULL, + `alias` varchar(255) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `spryker_data` -- +DROP TABLE IF EXISTS `spryker_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `spryker_data` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `internal_id` int(11) NOT NULL DEFAULT '0', - `reference` varchar(255) NOT NULL DEFAULT '', - `type` varchar(255) NOT NULL, - `time_of_validity` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `spryker_data` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `internal_id` int(11) NOT NULL DEFAULT 0, + `reference` varchar(255) NOT NULL, + `type` varchar(255) NOT NULL, + `time_of_validity` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `spryker_online_number` -- +DROP TABLE IF EXISTS `spryker_online_number`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `spryker_online_number` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `order_reference` varchar(255) NOT NULL, - `order_shipment` varchar(255) NOT NULL, - `order_number` int(11) NOT NULL, - PRIMARY KEY (`id`), - KEY `order_reference` (`order_reference`), - KEY `order_shipment` (`order_shipment`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `spryker_online_number` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `order_reference` varchar(255) NOT NULL, + `order_shipment` varchar(255) NOT NULL, + `order_number` int(11) NOT NULL, + PRIMARY KEY (`id`), + KEY `order_reference` (`order_reference`), + KEY `order_shipment` (`order_shipment`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `spryker_order_reference` -- +DROP TABLE IF EXISTS `spryker_order_reference`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `spryker_order_reference` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `shop_id` int(11) NOT NULL, - `order_reference` varchar(255) NOT NULL, - `shipment_id` varchar(255) NOT NULL, - `order_item_reference` varchar(255) NOT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `shop_id` (`shop_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `spryker_order_reference` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `shop_id` int(11) NOT NULL, + `order_reference` varchar(255) NOT NULL, + `shipment_id` varchar(255) NOT NULL, + `order_item_reference` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `shop_id` (`shop_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `sqlcache` -- +DROP TABLE IF EXISTS `sqlcache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sqlcache` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `abfrage` text NOT NULL, - `ergebnis` text NOT NULL, - `shortcode` varchar(255) NOT NULL DEFAULT '', - `sekunden` int(11) NOT NULL DEFAULT '120', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=481 DEFAULT CHARSET=utf8; +CREATE TABLE `sqlcache` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `abfrage` text NOT NULL, + `ergebnis` text NOT NULL, + `shortcode` varchar(255) NOT NULL, + `sekunden` int(11) NOT NULL DEFAULT 120, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=496 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `standardpackage` -- +DROP TABLE IF EXISTS `standardpackage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `standardpackage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `description` varchar(255) NOT NULL, - `width` decimal(14,2) NOT NULL DEFAULT '0.00', - `height` decimal(14,2) NOT NULL DEFAULT '0.00', - `length` decimal(14,2) NOT NULL DEFAULT '0.00', - `xvp` decimal(14,2) NOT NULL DEFAULT '0.00', - `active` tinyint(1) NOT NULL DEFAULT '0', - `color` varchar(128) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `standardpackage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `description` varchar(255) NOT NULL, + `width` decimal(14,2) NOT NULL DEFAULT 0.00, + `height` decimal(14,2) NOT NULL DEFAULT 0.00, + `length` decimal(14,2) NOT NULL DEFAULT 0.00, + `xvp` decimal(14,2) NOT NULL DEFAULT 0.00, + `active` tinyint(1) NOT NULL DEFAULT 0, + `color` varchar(128) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `stechuhr` -- +DROP TABLE IF EXISTS `stechuhr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `stechuhr` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` datetime DEFAULT NULL, - `adresse` int(11) NOT NULL DEFAULT '0', - `user` int(11) NOT NULL DEFAULT '0', - `kommen` tinyint(1) NOT NULL DEFAULT '0', - `uebernommen` tinyint(1) NOT NULL DEFAULT '0', - `status` varchar(20) NOT NULL DEFAULT '', - `mitarbeiterzeiterfassungid` int(15) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `datum` (`datum`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `stechuhr` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` datetime DEFAULT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `user` int(11) NOT NULL DEFAULT 0, + `kommen` tinyint(1) NOT NULL DEFAULT 0, + `uebernommen` tinyint(1) NOT NULL DEFAULT 0, + `status` varchar(20) NOT NULL, + `mitarbeiterzeiterfassungid` int(15) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `datum` (`datum`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `stechuhrdevice` +-- + +DROP TABLE IF EXISTS `stechuhrdevice`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `stechuhrdevice` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `url` varchar(255) NOT NULL, + `reduziert` int(11) NOT NULL DEFAULT 0, + `code` int(11) NOT NULL DEFAULT 0, + `aktiv` int(11) NOT NULL DEFAULT 0, + `IP` int(4) NOT NULL DEFAULT 0, + `submask` int(4) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `steuersaetze` -- +DROP TABLE IF EXISTS `steuersaetze`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `steuersaetze` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(64) NOT NULL DEFAULT '', - `satz` decimal(5,2) NOT NULL DEFAULT '0.00', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `project_id` int(11) NOT NULL DEFAULT '0', - `valid_from` date DEFAULT NULL, - `valid_to` date DEFAULT NULL, - `type` varchar(32) NOT NULL DEFAULT '', - `country_code` varchar(8) NOT NULL DEFAULT '', - `set_data` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `steuersaetze` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(64) NOT NULL, + `satz` decimal(5,2) NOT NULL DEFAULT 0.00, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `bearbeiter` varchar(64) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `project_id` int(11) NOT NULL DEFAULT 0, + `valid_from` date DEFAULT NULL, + `valid_to` date DEFAULT NULL, + `type` varchar(32) NOT NULL, + `country_code` varchar(8) NOT NULL, + `set_data` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `stock_replenishment_list` -- +DROP TABLE IF EXISTS `stock_replenishment_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `stock_replenishment_list` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `article_id` int(11) NOT NULL DEFAULT '0', - `storage_area_id` int(11) NOT NULL DEFAULT '0', - `amount` decimal(14,2) NOT NULL DEFAULT '0.00', - `amount_to_relocate` decimal(14,2) NOT NULL DEFAULT '0.00', - `storage_min_amount` decimal(14,2) NOT NULL DEFAULT '0.00', - `storage_max_amount` decimal(14,2) NOT NULL DEFAULT '0.00', - `is_replenishment` tinyint(1) NOT NULL DEFAULT '0', - `needed` decimal(14,2) NOT NULL DEFAULT '0.00', - `inorder` decimal(14,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`), - KEY `article_id` (`article_id`,`is_replenishment`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `stock_replenishment_list` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `article_id` int(11) NOT NULL DEFAULT 0, + `storage_area_id` int(11) NOT NULL DEFAULT 0, + `amount` decimal(14,2) NOT NULL DEFAULT 0.00, + `amount_to_relocate` decimal(14,2) NOT NULL DEFAULT 0.00, + `storage_min_amount` decimal(14,2) NOT NULL DEFAULT 0.00, + `storage_max_amount` decimal(14,2) NOT NULL DEFAULT 0.00, + `is_replenishment` tinyint(1) NOT NULL DEFAULT 0, + `needed` decimal(14,2) NOT NULL DEFAULT 0.00, + `inorder` decimal(14,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`), + KEY `article_id` (`article_id`,`is_replenishment`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `stueckliste` -- +DROP TABLE IF EXISTS `stueckliste`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `stueckliste` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `sort` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `referenz` text NOT NULL, - `place` varchar(255) NOT NULL, - `layer` varchar(255) NOT NULL, - `stuecklistevonartikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `firma` int(11) NOT NULL, - `wert` text NOT NULL, - `bauform` text NOT NULL, - `alternative` int(11) NOT NULL DEFAULT '0', - `zachse` varchar(64) NOT NULL DEFAULT '', - `xpos` varchar(64) NOT NULL DEFAULT '', - `ypos` varchar(64) NOT NULL DEFAULT '', - `art` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `stuecklistevonartikel` (`stuecklistevonartikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `stueckliste` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `sort` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `referenz` text NOT NULL, + `place` varchar(255) NOT NULL, + `layer` varchar(255) NOT NULL, + `stuecklistevonartikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `firma` int(11) NOT NULL, + `wert` text NOT NULL, + `bauform` text NOT NULL, + `alternative` int(11) NOT NULL DEFAULT 0, + `zachse` varchar(64) NOT NULL, + `xpos` varchar(64) NOT NULL, + `ypos` varchar(64) NOT NULL, + `art` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + KEY `stuecklistevonartikel` (`stuecklistevonartikel`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `stundensatz` -- +DROP TABLE IF EXISTS `stundensatz`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `stundensatz` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `satz` float NOT NULL, - `typ` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `datum` datetime NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `stundensatz` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `satz` float NOT NULL, + `typ` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `datum` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `subscription_cycle_job` +-- + +DROP TABLE IF EXISTS `subscription_cycle_job`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `subscription_cycle_job` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `address_id` int(11) NOT NULL, + `document_type` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `job_type` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `printer_id` int(11) DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `address` (`address_id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supersearch_index_group` -- +DROP TABLE IF EXISTS `supersearch_index_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supersearch_index_group` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(16) NOT NULL, - `title` varchar(32) NOT NULL, - `module` varchar(38) DEFAULT NULL, - `active` tinyint(1) unsigned NOT NULL DEFAULT '1', - `last_full_update` timestamp NULL DEFAULT NULL, - `last_diff_update` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; +CREATE TABLE `supersearch_index_group` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(16) NOT NULL, + `title` varchar(32) NOT NULL, + `module` varchar(38) DEFAULT NULL, + `active` tinyint(1) unsigned NOT NULL DEFAULT 1, + `last_full_update` timestamp NULL DEFAULT NULL, + `last_diff_update` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supersearch_index_item` -- +DROP TABLE IF EXISTS `supersearch_index_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supersearch_index_item` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `index_name` varchar(16) NOT NULL, - `index_id` varchar(38) NOT NULL, - `project_id` int(10) unsigned NOT NULL DEFAULT '0', - `title` varchar(128) NOT NULL, - `subtitle` varchar(128) DEFAULT NULL, - `additional_infos` varchar(255) DEFAULT NULL, - `link` varchar(128) NOT NULL, - `search_words` text NOT NULL, - `outdated` tinyint(1) unsigned NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `index_identifier` (`index_name`,`index_id`), - KEY `project_id` (`project_id`), - FULLTEXT KEY `FullText` (`search_words`) -) ENGINE=InnoDB AUTO_INCREMENT=382 DEFAULT CHARSET=utf8; +CREATE TABLE `supersearch_index_item` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `index_name` varchar(16) NOT NULL, + `index_id` varchar(38) NOT NULL, + `project_id` int(10) unsigned NOT NULL DEFAULT 0, + `title` varchar(128) NOT NULL, + `subtitle` varchar(128) DEFAULT NULL, + `additional_infos` varchar(255) DEFAULT NULL, + `link` varchar(128) NOT NULL, + `search_words` text NOT NULL, + `outdated` tinyint(1) unsigned NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `index_identifier` (`index_name`,`index_id`), + KEY `project_id` (`project_id`), + FULLTEXT KEY `FullText` (`search_words`) +) ENGINE=InnoDB AUTO_INCREMENT=382 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supportapp` -- +DROP TABLE IF EXISTS `supportapp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supportapp` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `mitarbeiter` int(11) NOT NULL DEFAULT '0', - `startdatum` date NOT NULL, - `zeitgeplant` int(11) NOT NULL DEFAULT '0', - `version` text NOT NULL, - `bemerkung` text NOT NULL, - `status` varchar(10) NOT NULL DEFAULT '', - `phase` varchar(10) NOT NULL DEFAULT '', - `intervall` int(11) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `supportapp` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `mitarbeiter` int(11) NOT NULL DEFAULT 0, + `startdatum` date NOT NULL, + `zeitgeplant` int(11) NOT NULL DEFAULT 0, + `version` text NOT NULL, + `bemerkung` text NOT NULL, + `status` varchar(10) NOT NULL, + `phase` varchar(10) NOT NULL, + `intervall` int(11) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supportapp_artikel` -- +DROP TABLE IF EXISTS `supportapp_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supportapp_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `typ` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `supportapp_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `typ` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supportapp_auftrag_check` -- +DROP TABLE IF EXISTS `supportapp_auftrag_check`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supportapp_auftrag_check` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `gruppe` int(11) NOT NULL, - `schritt` int(11) NOT NULL, - `auftragposition` int(11) NOT NULL, - `status` int(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `supportapp_auftrag_check` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `gruppe` int(11) NOT NULL, + `schritt` int(11) NOT NULL, + `auftragposition` int(11) NOT NULL, + `status` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supportapp_gruppen` -- +DROP TABLE IF EXISTS `supportapp_gruppen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supportapp_gruppen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `aktiv` int(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `supportapp_gruppen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `aktiv` int(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supportapp_log` -- +DROP TABLE IF EXISTS `supportapp_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supportapp_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `bearbeiter` int(11) NOT NULL DEFAULT '0', - `logdatei` datetime NOT NULL, - `details` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `supportapp_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `bearbeiter` int(11) NOT NULL DEFAULT 0, + `logdatei` datetime NOT NULL, + `details` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supportapp_schritte` -- +DROP TABLE IF EXISTS `supportapp_schritte`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supportapp_schritte` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - `beschreibung` text NOT NULL, - `aktiv` int(1) NOT NULL DEFAULT '0', - `sort` int(11) DEFAULT '0', - `vorgaenger` int(11) DEFAULT '0', - `filter` int(1) DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `supportapp_schritte` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL DEFAULT '0', + `gruppe` int(11) NOT NULL DEFAULT 0, + `beschreibung` text NOT NULL, + `aktiv` int(1) NOT NULL DEFAULT 0, + `sort` int(11) DEFAULT 0, + `vorgaenger` int(11) DEFAULT 0, + `filter` int(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `supportapp_vorlagen` -- +DROP TABLE IF EXISTS `supportapp_vorlagen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `supportapp_vorlagen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `taetigkeit` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `supportapp_vorlagen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) NOT NULL, + `taetigkeit` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `survey` -- +DROP TABLE IF EXISTS `survey`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `survey` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `once_per_user` tinyint(1) NOT NULL DEFAULT '0', - `send_to_xentral` tinyint(1) NOT NULL DEFAULT '0', - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; +CREATE TABLE `survey` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `once_per_user` tinyint(1) NOT NULL DEFAULT 0, + `send_to_xentral` tinyint(1) NOT NULL DEFAULT 0, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `survey_user` -- +DROP TABLE IF EXISTS `survey_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `survey_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `survey_id` int(11) NOT NULL DEFAULT '0', - `user_id` int(11) NOT NULL DEFAULT '0', - `data` text, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `survey_id` (`survey_id`), - KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `survey_user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `survey_id` int(11) NOT NULL DEFAULT 0, + `user_id` int(11) NOT NULL DEFAULT 0, + `data` text DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `survey_id` (`survey_id`), + KEY `user_id` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `system_disk_free` -- +DROP TABLE IF EXISTS `system_disk_free`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `system_disk_free` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `disk_free_kb_start` int(11) DEFAULT NULL, - `disk_free_kb_end` int(11) DEFAULT NULL, - `db_size` int(11) DEFAULT NULL, - `userdata_mb_size` int(11) DEFAULT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `created_at` (`created_at`) -) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; +CREATE TABLE `system_disk_free` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `disk_free_kb_start` int(11) DEFAULT NULL, + `disk_free_kb_end` int(11) DEFAULT NULL, + `db_size` int(11) DEFAULT NULL, + `userdata_mb_size` int(11) DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `created_at` (`created_at`) +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemhealth` -- +DROP TABLE IF EXISTS `systemhealth`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemhealth` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `systemhealth_category_id` int(11) NOT NULL DEFAULT '0', - `name` varchar(64) NOT NULL DEFAULT '', - `description` varchar(64) NOT NULL DEFAULT '', - `status` varchar(64) NOT NULL DEFAULT '', - `message` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `lastupdate` timestamp NULL DEFAULT NULL, - `resetable` tinyint(1) NOT NULL DEFAULT '0', - `last_reset` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `systemhealth_category_id` (`systemhealth_category_id`), - KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8; +CREATE TABLE `systemhealth` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `systemhealth_category_id` int(11) NOT NULL DEFAULT 0, + `name` varchar(64) NOT NULL, + `description` varchar(64) NOT NULL, + `status` varchar(64) NOT NULL, + `message` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `lastupdate` timestamp NULL DEFAULT NULL, + `resetable` tinyint(1) NOT NULL DEFAULT 0, + `last_reset` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `systemhealth_category_id` (`systemhealth_category_id`), + KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemhealth_category` -- +DROP TABLE IF EXISTS `systemhealth_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemhealth_category` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL DEFAULT '', - `description` text, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; +CREATE TABLE `systemhealth_category` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL, + `description` text DEFAULT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`), + KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemhealth_custom_error_lvl` -- +DROP TABLE IF EXISTS `systemhealth_custom_error_lvl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemhealth_custom_error_lvl` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `systemhealth_id` int(11) NOT NULL DEFAULT '0', - `status` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `systemhealth_id` (`systemhealth_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `systemhealth_custom_error_lvl` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `systemhealth_id` int(11) NOT NULL DEFAULT 0, + `status` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + KEY `systemhealth_id` (`systemhealth_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemhealth_event` -- +DROP TABLE IF EXISTS `systemhealth_event`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemhealth_event` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `systemhealth_id` int(11) NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `doctype` varchar(64) NOT NULL DEFAULT '', - `doctype_id` int(11) NOT NULL DEFAULT '0', - `status` varchar(64) NOT NULL DEFAULT '', - `message` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `systemhealth_id` (`systemhealth_id`), - KEY `created_at` (`created_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `systemhealth_event` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `systemhealth_id` int(11) NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `doctype` varchar(64) NOT NULL, + `doctype_id` int(11) NOT NULL DEFAULT 0, + `status` varchar(64) NOT NULL, + `message` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `systemhealth_id` (`systemhealth_id`), + KEY `created_at` (`created_at`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemhealth_notification` -- +DROP TABLE IF EXISTS `systemhealth_notification`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemhealth_notification` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `status` varchar(64) NOT NULL DEFAULT '', - `email` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `systemhealth_notification` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `status` varchar(64) NOT NULL, + `email` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemhealth_notification_item` -- +DROP TABLE IF EXISTS `systemhealth_notification_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemhealth_notification_item` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `systemhealth_id` int(11) NOT NULL DEFAULT '0', - `user_id` int(11) NOT NULL DEFAULT '0', - `status` varchar(64) NOT NULL DEFAULT '', - `email` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `systemhealth_notification_item` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `systemhealth_id` int(11) NOT NULL DEFAULT 0, + `user_id` int(11) NOT NULL DEFAULT 0, + `status` varchar(64) NOT NULL, + `email` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemlog` -- +DROP TABLE IF EXISTS `systemlog`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemlog` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `meldung` text NOT NULL, - `dump` text NOT NULL, - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `funktionsname` varchar(64) NOT NULL DEFAULT '', - `datum` datetime DEFAULT NULL, - `parameter` int(11) NOT NULL DEFAULT '0', - `argumente` text NOT NULL, - `level` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `systemlog` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `meldung` text NOT NULL, + `dump` text NOT NULL, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `bearbeiter` varchar(64) NOT NULL, + `funktionsname` varchar(64) NOT NULL, + `datum` datetime DEFAULT NULL, + `parameter` int(11) NOT NULL DEFAULT 0, + `argumente` text NOT NULL, + `level` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `systemtemplates` -- +DROP TABLE IF EXISTS `systemtemplates`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `systemtemplates` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `filename` varchar(200) NOT NULL DEFAULT '', - `footer_icons` varchar(200) NOT NULL DEFAULT '', - `category` varchar(100) NOT NULL DEFAULT '', - `title` varchar(100) NOT NULL DEFAULT '', - `description` text, - `created_at` datetime DEFAULT CURRENT_TIMESTAMP, - `hidden` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `system_pkey` (`id`,`hidden`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `systemtemplates` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `filename` varchar(200) NOT NULL, + `footer_icons` varchar(200) NOT NULL, + `category` varchar(100) NOT NULL, + `title` varchar(100) NOT NULL, + `description` text DEFAULT NULL, + `created_at` datetime DEFAULT current_timestamp(), + `hidden` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `system_pkey` (`id`,`hidden`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `task_subscription` -- +DROP TABLE IF EXISTS `task_subscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `task_subscription` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `task_id` int(11) NOT NULL, - `address_id` int(11) NOT NULL, - PRIMARY KEY (`id`), - KEY `task_id` (`task_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `task_subscription` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `task_id` int(11) NOT NULL, + `address_id` int(11) NOT NULL, + PRIMARY KEY (`id`), + KEY `task_id` (`task_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `task_timeline` -- +DROP TABLE IF EXISTS `task_timeline`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `task_timeline` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `task_id` int(11) NOT NULL, - `address_id` int(11) NOT NULL, - `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `content` text NOT NULL, - PRIMARY KEY (`id`), - KEY `task_id` (`task_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `task_timeline` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `task_id` int(11) NOT NULL, + `address_id` int(11) NOT NULL, + `time` timestamp NOT NULL DEFAULT current_timestamp(), + `content` text NOT NULL, + PRIMARY KEY (`id`), + KEY `task_id` (`task_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `teilprojekt_geplante_zeiten` -- +DROP TABLE IF EXISTS `teilprojekt_geplante_zeiten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `teilprojekt_geplante_zeiten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `projekt` int(11) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `stundensatz` decimal(5,2) NOT NULL DEFAULT '0.00', - `stunden` decimal(8,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `teilprojekt_geplante_zeiten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `projekt` int(11) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) NOT NULL, + `stundensatz` decimal(5,2) NOT NULL DEFAULT 0.00, + `stunden` decimal(8,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `telefonrueckruf` -- +DROP TABLE IF EXISTS `telefonrueckruf`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `telefonrueckruf` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `zeit` time NOT NULL, - `adresse` int(11) NOT NULL DEFAULT '0', - `adressetext` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - `ticket` int(11) NOT NULL DEFAULT '0', - `angenommenvon` int(11) NOT NULL DEFAULT '0', - `rueckrufvon` int(11) NOT NULL DEFAULT '0', - `telefonnummer` varchar(255) NOT NULL, - `kommentar` text NOT NULL, - `abgeschlossen` tinyint(4) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `rueckrufvon` (`rueckrufvon`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `telefonrueckruf` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `zeit` time NOT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `adressetext` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + `ticket` int(11) NOT NULL DEFAULT 0, + `angenommenvon` int(11) NOT NULL DEFAULT 0, + `rueckrufvon` int(11) NOT NULL DEFAULT 0, + `telefonnummer` varchar(255) NOT NULL, + `kommentar` text NOT NULL, + `abgeschlossen` tinyint(4) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `rueckrufvon` (`rueckrufvon`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `telefonrueckruf_versuche` -- +DROP TABLE IF EXISTS `telefonrueckruf_versuche`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `telefonrueckruf_versuche` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `telefonrueckruf` int(11) NOT NULL DEFAULT '0', - `datum` date NOT NULL, - `zeit` time NOT NULL, - `bearbeiter` int(11) NOT NULL DEFAULT '0', - `beschreibung` text, - PRIMARY KEY (`id`), - KEY `telefonrueckruf` (`telefonrueckruf`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `telefonrueckruf_versuche` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `telefonrueckruf` int(11) NOT NULL DEFAULT 0, + `datum` date NOT NULL, + `zeit` time NOT NULL, + `bearbeiter` int(11) NOT NULL DEFAULT 0, + `beschreibung` text DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `telefonrueckruf` (`telefonrueckruf`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `templatemessage` -- +DROP TABLE IF EXISTS `templatemessage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatemessage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL DEFAULT '0', - `message` text NOT NULL, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `user` (`user`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `templatemessage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL DEFAULT 0, + `message` text NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `user` (`user`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `textvorlagen` -- +DROP TABLE IF EXISTS `textvorlagen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `textvorlagen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) DEFAULT NULL, - `text` text, - `stichwoerter` varchar(255) DEFAULT NULL, - `projekt` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `textvorlagen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) DEFAULT NULL, + `text` text DEFAULT NULL, + `stichwoerter` varchar(255) DEFAULT NULL, + `projekt` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket` -- +DROP TABLE IF EXISTS `ticket`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ticket` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `schluessel` varchar(255) NOT NULL, - `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `projekt` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `quelle` varchar(255) NOT NULL, - `status` varchar(64) NOT NULL, - `adresse` int(11) NOT NULL, - `kunde` varchar(255) NOT NULL, - `warteschlange` varchar(255) NOT NULL, - `mailadresse` varchar(255) NOT NULL, - `prio` int(1) NOT NULL, - `betreff` varchar(255) NOT NULL, - `zugewiesen` int(1) NOT NULL, - `inbearbeitung` int(1) NOT NULL, - `inbearbeitung_user` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `notiz` text NOT NULL, - `bitteantworten` tinyint(1) NOT NULL DEFAULT '0', - `service` int(11) NOT NULL DEFAULT '0', - `kommentar` text NOT NULL, - `privat` tinyint(1) NOT NULL DEFAULT '0', - `dsgvo` tinyint(1) NOT NULL DEFAULT '0', - `tags` text NOT NULL, - `nachrichten_anz` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `schluessel` (`schluessel`), - KEY `service` (`service`), - KEY `adresse` (`adresse`), - KEY `warteschlange` (`warteschlange`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ticket` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `schluessel` varchar(255) NOT NULL, + `zeit` timestamp NOT NULL DEFAULT current_timestamp(), + `projekt` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `quelle` varchar(255) NOT NULL, + `status` varchar(64) NOT NULL, + `adresse` int(11) NOT NULL, + `kunde` varchar(255) NOT NULL, + `warteschlange` varchar(255) NOT NULL, + `mailadresse` varchar(255) NOT NULL, + `prio` int(1) NOT NULL, + `betreff` varchar(255) NOT NULL, + `zugewiesen` int(1) NOT NULL, + `inbearbeitung` int(1) NOT NULL, + `inbearbeitung_user` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `notiz` text NOT NULL, + `bitteantworten` tinyint(1) NOT NULL DEFAULT 0, + `service` int(11) NOT NULL DEFAULT 0, + `kommentar` text NOT NULL, + `privat` tinyint(1) NOT NULL DEFAULT 0, + `dsgvo` tinyint(1) NOT NULL DEFAULT 0, + `tags` text NOT NULL, + `nachrichten_anz` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `schluessel` (`schluessel`), + KEY `service` (`service`), + KEY `adresse` (`adresse`), + KEY `warteschlange` (`warteschlange`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_category` -- +DROP TABLE IF EXISTS `ticket_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ticket_category` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `project_id` int(10) NOT NULL DEFAULT '0', - `parent_id` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ticket_category` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `project_id` int(10) NOT NULL DEFAULT 0, + `parent_id` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_header` -- +DROP TABLE IF EXISTS `ticket_header`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ticket_header` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ticket_nachricht` int(15) NOT NULL, - `type` varchar(255) NOT NULL, - `value` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ticket_header` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ticket_nachricht` int(15) NOT NULL, + `type` varchar(255) NOT NULL, + `value` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_nachricht` -- +DROP TABLE IF EXISTS `ticket_nachricht`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ticket_nachricht` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ticket` varchar(255) NOT NULL, - `verfasser` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `mail` varchar(255) NOT NULL, - `zeit` datetime NOT NULL, - `zeitausgang` datetime NULL, - `text` longtext NOT NULL, - `textausgang` longtext NOT NULL DEFAULT '', - `betreff` varchar(255) NOT NULL, - `bemerkung` text NOT NULL DEFAULT '', - `medium` varchar(255) NOT NULL, - `versendet` varchar(255) NOT NULL DEFAULT '', - `status` varchar(64) NOT NULL, - `mail_cc` varchar(128) NOT NULL DEFAULT '', - `verfasser_replyto` varchar(255) NOT NULL, - `mail_replyto` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `ticket` (`ticket`), - FULLTEXT KEY `FullText` (`betreff`,`verfasser`,`text`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ticket_nachricht` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ticket` varchar(255) NOT NULL, + `verfasser` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `mail` varchar(255) NOT NULL, + `zeit` datetime NOT NULL, + `zeitausgang` datetime DEFAULT NULL, + `text` longtext NOT NULL, + `textausgang` longtext NOT NULL, + `betreff` varchar(255) NOT NULL, + `bemerkung` text NOT NULL, + `medium` varchar(255) NOT NULL, + `versendet` varchar(255) NOT NULL, + `status` varchar(64) NOT NULL, + `mail_cc` varchar(128) NOT NULL, + `verfasser_replyto` varchar(255) NOT NULL, + `mail_replyto` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `ticket` (`ticket`), + FULLTEXT KEY `FullText` (`betreff`,`verfasser`,`text`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_regeln` -- +DROP TABLE IF EXISTS `ticket_regeln`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ticket_regeln` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `empfaenger_email` varchar(255) NOT NULL, - `sender_email` varchar(255) NOT NULL, - `name` varchar(255) NOT NULL, - `betreff` varchar(255) NOT NULL, - `spam` tinyint(1) NOT NULL DEFAULT '0', - `persoenlich` tinyint(1) NOT NULL DEFAULT '0', - `prio` tinyint(1) NOT NULL DEFAULT '0', - `dsgvo` tinyint(1) NOT NULL DEFAULT '0', - `warteschlange` text NOT NULL, - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ticket_regeln` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `empfaenger_email` varchar(255) NOT NULL, + `sender_email` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + `betreff` varchar(255) NOT NULL, + `spam` tinyint(1) NOT NULL DEFAULT 0, + `persoenlich` tinyint(1) NOT NULL DEFAULT 0, + `prio` tinyint(1) NOT NULL DEFAULT 0, + `dsgvo` tinyint(1) NOT NULL DEFAULT 0, + `warteschlange` text NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `adresse` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ticket_vorlage` -- +DROP TABLE IF EXISTS `ticket_vorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ticket_vorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `projekt` int(10) NOT NULL, - `vorlagenname` varchar(255) NOT NULL, - `vorlage` text NOT NULL, - `firma` int(11) NOT NULL, - `sichtbar` int(1) NOT NULL, - `sort` int(11) NOT NULL DEFAULT '0', - `ticket_category_id` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `ticket_category_id` (`ticket_category_id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; +CREATE TABLE `ticket_vorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `projekt` int(10) NOT NULL, + `vorlagenname` varchar(255) NOT NULL, + `vorlage` text NOT NULL, + `firma` int(11) NOT NULL, + `sichtbar` int(1) NOT NULL, + `sort` int(11) NOT NULL DEFAULT 0, + `ticket_category_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `ticket_category_id` (`ticket_category_id`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `transfer_account_label` -- +DROP TABLE IF EXISTS `transfer_account_label`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transfer_account_label` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `transfer_id` int(11) NOT NULL DEFAULT '0', - `filter_type` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `transfer_account_label` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `transfer_id` int(11) NOT NULL DEFAULT 0, + `filter_type` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `transfer_sellingreport_job` -- +DROP TABLE IF EXISTS `transfer_sellingreport_job`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transfer_sellingreport_job` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `transfer_id` int(11) NOT NULL DEFAULT '0', - `date_from` date NOT NULL, - `date_to` date NOT NULL, - `status` varchar(32) NOT NULL DEFAULT 'created', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `transfer_sellingreport_job` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `transfer_id` int(11) NOT NULL DEFAULT 0, + `date_from` date NOT NULL, + `date_to` date NOT NULL, + `status` varchar(32) NOT NULL DEFAULT 'created', + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebersetzung` -- +DROP TABLE IF EXISTS `uebersetzung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebersetzung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `label` varchar(255) NOT NULL DEFAULT '', - `beschriftung` text NOT NULL, - `sprache` varchar(255) NOT NULL DEFAULT '', - `original` text NOT NULL, - PRIMARY KEY (`id`), - KEY `sprache` (`sprache`), - KEY `label` (`label`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebersetzung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `label` varchar(255) NOT NULL, + `beschriftung` text NOT NULL, + `sprache` varchar(255) NOT NULL, + `original` text NOT NULL, + PRIMARY KEY (`id`), + KEY `sprache` (`sprache`), + KEY `label` (`label`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_account` -- +DROP TABLE IF EXISTS `uebertragungen_account`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_account` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(64) NOT NULL DEFAULT '', - `typ` varchar(32) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `projekt` int(11) NOT NULL DEFAULT '0', - `server` varchar(255) NOT NULL DEFAULT '', - `port` varchar(255) NOT NULL DEFAULT '', - `username` varchar(255) NOT NULL DEFAULT '', - `passwort` varchar(255) NOT NULL DEFAULT '', - `parameter1` varchar(255) NOT NULL DEFAULT '', - `parameter2` varchar(255) NOT NULL DEFAULT '', - `parameter3` varchar(255) NOT NULL DEFAULT '', - `parameter4` varchar(255) NOT NULL DEFAULT '', - `authmethod` varchar(255) NOT NULL DEFAULT '', - `publickeyfile` varchar(255) NOT NULL DEFAULT '', - `privatekeyfile` varchar(255) NOT NULL DEFAULT '', - `publickey` text, - `privatekey` text, - `ssl_aktiv` tinyint(1) NOT NULL DEFAULT '1', - `sammeln` tinyint(1) NOT NULL DEFAULT '1', - `minwartezeit` int(11) NOT NULL DEFAULT '0', - `bearbeiter` varchar(64) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `letzte_uebertragung` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `letzter_status` varchar(255) NOT NULL DEFAULT '', - `api` int(11) NOT NULL DEFAULT '0', - `loeschen_nach_download` tinyint(1) NOT NULL DEFAULT '0', - `xml_pdf` varchar(32) NOT NULL DEFAULT 'xml', - `belegtyp` varchar(32) NOT NULL DEFAULT '', - `documenttype_incoming` varchar(32) NOT NULL DEFAULT '', - `belegstatus` varchar(32) NOT NULL DEFAULT '', - `belegab_id` int(11) NOT NULL DEFAULT '0', - `belegab_datum` date NOT NULL DEFAULT '0000-00-00', - `briefpapierimxml` tinyint(1) NOT NULL DEFAULT '0', - `maxbelege` int(11) NOT NULL DEFAULT '10', - `emailbody` text NOT NULL, - `importwarteschlange` tinyint(1) NOT NULL DEFAULT '1', - `xml_zusatz` text NOT NULL, - `gln_freifeld` int(4) NOT NULL DEFAULT '0', - `trackingmail` tinyint(1) NOT NULL DEFAULT '0', - `rechnungmail` tinyint(1) NOT NULL DEFAULT '0', - `lager` int(11) NOT NULL DEFAULT '0', - `einzelnexml` tinyint(1) NOT NULL DEFAULT '0', - `lagerzahlen` tinyint(1) NOT NULL DEFAULT '0', - `tracking` tinyint(1) NOT NULL DEFAULT '0', - `csv_codierung` varchar(32) NOT NULL DEFAULT '', - `csv_trennzeichen` varchar(32) NOT NULL DEFAULT '', - `csv_tracking` text NOT NULL, - `csv_lagerzahl` text NOT NULL, - `csv_lieferschein` text NOT NULL, - `csv_auftrag` text NOT NULL, - `csv_bestellung` text NOT NULL, - `lagerzahlen_lager` int(11) NOT NULL DEFAULT '0', - `lagerzahlen_lagerplatz` int(11) NOT NULL DEFAULT '0', - `lagerzahlen_zeit1` time DEFAULT NULL, - `lagerzahlen_zeit2` time DEFAULT NULL, - `lagerzahlen_zeit3` time DEFAULT NULL, - `lagerzahlen_zeit4` time DEFAULT NULL, - `lagerzahlen_zeit5` time DEFAULT NULL, - `lagerzahlen_letzteuebertragung` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `auftrageingang` tinyint(1) NOT NULL DEFAULT '0', - `kundennummernuebernehmen` tinyint(1) NOT NULL DEFAULT '0', - `createarticleifnotexists` tinyint(1) NOT NULL DEFAULT '0', - `createarticleasstoragearticle` tinyint(1) NOT NULL DEFAULT '0', - `bestellungeingang` tinyint(1) NOT NULL DEFAULT '0', - `artikeleingang` tinyint(1) NOT NULL DEFAULT '0', - `trackingeingang` tinyint(1) NOT NULL DEFAULT '1', - `lagerzahleneingang` tinyint(1) NOT NULL DEFAULT '1', - `adresselieferant` int(11) NOT NULL DEFAULT '0', - `lagerplatzignorieren` int(11) NOT NULL DEFAULT '0', - `neueartikeluebertragen` tinyint(1) NOT NULL DEFAULT '0', - `dateianhanguebertragen` tinyint(1) NOT NULL DEFAULT '0', - `dateianhangtyp` varchar(255) NOT NULL DEFAULT 'datei', - `csvheader_lagerzahlen` text, - `csvheader_tracking` text, - `csvnowrap` tinyint(1) NOT NULL DEFAULT '0', - `lagerzahlenverfuegbaremenge` tinyint(1) NOT NULL DEFAULT '0', - `autoshopexport` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `gruppe` int(11) NOT NULL DEFAULT '0', - `einstellungen_json` mediumtext, - `rechnunganlegen` tinyint(1) NOT NULL DEFAULT '0', - `lieferantenbestellnummer` tinyint(1) NOT NULL DEFAULT '0', - `send_sales_report` tinyint(1) NOT NULL DEFAULT '0', - `sales_report_type` varchar(32) NOT NULL DEFAULT '', - `createproduction` tinyint(1) NOT NULL DEFAULT '0', - `ownaddress` int(11) NOT NULL DEFAULT '0', - `updatearticles` int(11) NOT NULL DEFAULT '0', - `logarticlenotfound` int(11) NOT NULL DEFAULT '0', - `alldoctypes` tinyint(1) NOT NULL DEFAULT '0', - `csvseparator` varchar(4) NOT NULL DEFAULT ';', - `coding` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_account` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(64) NOT NULL, + `typ` varchar(32) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `projekt` int(11) NOT NULL DEFAULT 0, + `server` varchar(255) NOT NULL, + `port` varchar(255) NOT NULL, + `username` varchar(255) NOT NULL, + `passwort` varchar(255) NOT NULL, + `parameter1` varchar(255) NOT NULL, + `parameter2` varchar(255) NOT NULL, + `parameter3` varchar(255) NOT NULL, + `parameter4` varchar(255) NOT NULL, + `authmethod` varchar(255) NOT NULL, + `publickeyfile` varchar(255) NOT NULL, + `privatekeyfile` varchar(255) NOT NULL, + `publickey` text DEFAULT NULL, + `privatekey` text DEFAULT NULL, + `ssl_aktiv` tinyint(1) NOT NULL DEFAULT 1, + `sammeln` tinyint(1) NOT NULL DEFAULT 1, + `minwartezeit` int(11) NOT NULL DEFAULT 0, + `bearbeiter` varchar(64) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `letzte_uebertragung` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `letzter_status` varchar(255) NOT NULL, + `api` int(11) NOT NULL DEFAULT 0, + `loeschen_nach_download` tinyint(1) NOT NULL DEFAULT 0, + `xml_pdf` varchar(32) NOT NULL DEFAULT 'xml', + `belegtyp` varchar(32) NOT NULL, + `documenttype_incoming` varchar(32) NOT NULL, + `belegstatus` varchar(32) NOT NULL, + `belegab_id` int(11) NOT NULL DEFAULT 0, + `belegab_datum` date NOT NULL DEFAULT '0000-00-00', + `briefpapierimxml` tinyint(1) NOT NULL DEFAULT 0, + `maxbelege` int(11) NOT NULL DEFAULT 10, + `emailbody` text NOT NULL, + `importwarteschlange` tinyint(1) NOT NULL DEFAULT 1, + `xml_zusatz` text NOT NULL, + `gln_freifeld` int(4) NOT NULL DEFAULT 0, + `trackingmail` tinyint(1) NOT NULL DEFAULT 0, + `rechnungmail` tinyint(1) NOT NULL DEFAULT 0, + `lager` int(11) NOT NULL DEFAULT 0, + `einzelnexml` tinyint(1) NOT NULL DEFAULT 0, + `lagerzahlen` tinyint(1) NOT NULL DEFAULT 0, + `tracking` tinyint(1) NOT NULL DEFAULT 0, + `csv_codierung` varchar(32) NOT NULL, + `csv_trennzeichen` varchar(32) NOT NULL, + `csv_tracking` text NOT NULL, + `csv_lagerzahl` text NOT NULL, + `csv_lieferschein` text NOT NULL, + `csv_auftrag` text NOT NULL, + `csv_bestellung` text NOT NULL, + `lagerzahlen_lager` int(11) NOT NULL DEFAULT 0, + `lagerzahlen_lagerplatz` int(11) NOT NULL DEFAULT 0, + `lagerzahlen_zeit1` time DEFAULT NULL, + `lagerzahlen_zeit2` time DEFAULT NULL, + `lagerzahlen_zeit3` time DEFAULT NULL, + `lagerzahlen_zeit4` time DEFAULT NULL, + `lagerzahlen_zeit5` time DEFAULT NULL, + `lagerzahlen_letzteuebertragung` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `auftrageingang` tinyint(1) NOT NULL DEFAULT 0, + `kundennummernuebernehmen` tinyint(1) NOT NULL DEFAULT 0, + `createarticleifnotexists` tinyint(1) NOT NULL DEFAULT 0, + `createarticleasstoragearticle` tinyint(1) NOT NULL DEFAULT 0, + `bestellungeingang` tinyint(1) NOT NULL DEFAULT 0, + `artikeleingang` tinyint(1) NOT NULL DEFAULT 0, + `trackingeingang` tinyint(1) NOT NULL DEFAULT 1, + `lagerzahleneingang` tinyint(1) NOT NULL DEFAULT 1, + `adresselieferant` int(11) NOT NULL DEFAULT 0, + `lagerplatzignorieren` int(11) NOT NULL DEFAULT 0, + `neueartikeluebertragen` tinyint(1) NOT NULL DEFAULT 0, + `dateianhanguebertragen` tinyint(1) NOT NULL DEFAULT 0, + `dateianhangtyp` varchar(255) NOT NULL DEFAULT 'datei', + `csvheader_lagerzahlen` text DEFAULT NULL, + `csvheader_tracking` text DEFAULT NULL, + `csvnowrap` tinyint(1) NOT NULL DEFAULT 0, + `lagerzahlenverfuegbaremenge` tinyint(1) NOT NULL DEFAULT 0, + `autoshopexport` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `gruppe` int(11) NOT NULL DEFAULT 0, + `einstellungen_json` mediumtext DEFAULT NULL, + `rechnunganlegen` tinyint(1) NOT NULL DEFAULT 0, + `lieferantenbestellnummer` tinyint(1) NOT NULL DEFAULT 0, + `send_sales_report` tinyint(1) NOT NULL DEFAULT 0, + `sales_report_type` varchar(32) NOT NULL, + `createproduction` tinyint(1) NOT NULL DEFAULT 0, + `ownaddress` int(11) NOT NULL DEFAULT 0, + `updatearticles` int(11) NOT NULL DEFAULT 0, + `logarticlenotfound` int(11) NOT NULL DEFAULT 0, + `alldoctypes` tinyint(1) NOT NULL DEFAULT 0, + `csvseparator` varchar(4) NOT NULL DEFAULT ';', + `coding` varchar(32) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_account_oauth` -- +DROP TABLE IF EXISTS `uebertragungen_account_oauth`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_account_oauth` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragungen_account_id` int(10) unsigned NOT NULL, - `client_id` text, - `client_secret` text, - `url` text, - `access_token` text, - `expiration_date` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `uebertragungen_account_id` (`uebertragungen_account_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_account_oauth` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragungen_account_id` int(10) unsigned NOT NULL, + `client_id` text DEFAULT NULL, + `client_secret` text DEFAULT NULL, + `url` text DEFAULT NULL, + `access_token` text DEFAULT NULL, + `expiration_date` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `uebertragungen_account_id` (`uebertragungen_account_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_artikel` -- +DROP TABLE IF EXISTS `uebertragungen_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragungen_account` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `status` varchar(255) NOT NULL DEFAULT '', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `uebertragungen_account` (`uebertragungen_account`,`artikel`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragungen_account` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `status` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `uebertragungen_account` (`uebertragungen_account`,`artikel`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_dateien` -- +DROP TABLE IF EXISTS `uebertragungen_dateien`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_dateien` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragung_account` int(11) NOT NULL DEFAULT '0', - `datei` varchar(255) NOT NULL DEFAULT '', - `datei_wawi` varchar(255) NOT NULL DEFAULT '', - `status` varchar(64) NOT NULL DEFAULT '', - `download` tinyint(1) NOT NULL DEFAULT '1', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `geloescht_von_server` tinyint(1) NOT NULL DEFAULT '0', - `zeitstempelupdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - `filesize` int(11) NOT NULL DEFAULT '-1', - PRIMARY KEY (`id`), - KEY `uebertragung_account` (`uebertragung_account`,`datei`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_dateien` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragung_account` int(11) NOT NULL DEFAULT 0, + `datei` varchar(255) NOT NULL, + `datei_wawi` varchar(255) NOT NULL, + `status` varchar(64) NOT NULL, + `download` tinyint(1) NOT NULL DEFAULT 1, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `geloescht_von_server` tinyint(1) NOT NULL DEFAULT 0, + `zeitstempelupdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `filesize` int(11) NOT NULL DEFAULT -1, + PRIMARY KEY (`id`), + KEY `uebertragung_account` (`uebertragung_account`,`datei`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_event` -- +DROP TABLE IF EXISTS `uebertragungen_event`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_event` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragung_account` int(11) NOT NULL DEFAULT '0', - `eventname` varchar(64) NOT NULL DEFAULT '', - `module` varchar(64) NOT NULL DEFAULT '', - `action` varchar(64) NOT NULL DEFAULT '', - `parameter` varchar(255) NOT NULL DEFAULT '', - `cachetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `retries` int(11) NOT NULL DEFAULT '0', - `kommentar` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `uebertragung_account` (`uebertragung_account`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_event` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragung_account` int(11) NOT NULL DEFAULT 0, + `eventname` varchar(64) NOT NULL, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `parameter` varchar(255) NOT NULL, + `cachetime` timestamp NOT NULL DEFAULT current_timestamp(), + `retries` int(11) NOT NULL DEFAULT 0, + `kommentar` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `uebertragung_account` (`uebertragung_account`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_event_einstellungen` -- +DROP TABLE IF EXISTS `uebertragungen_event_einstellungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_event_einstellungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragung_account` int(11) NOT NULL DEFAULT '0', - `eventname` varchar(64) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `eingang` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`), - KEY `uebertragung_account` (`uebertragung_account`,`eventname`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_event_einstellungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragung_account` int(11) NOT NULL DEFAULT 0, + `eventname` varchar(64) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `eingang` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `uebertragung_account` (`uebertragung_account`,`eventname`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_fileconvert_log` -- +DROP TABLE IF EXISTS `uebertragungen_fileconvert_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_fileconvert_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragungen_account` int(11) NOT NULL DEFAULT '0', - `status` varchar(255) NOT NULL DEFAULT '', - `datei` varchar(255) NOT NULL DEFAULT '', - `typ` varchar(255) NOT NULL DEFAULT '', - `parameter1` varchar(255) NOT NULL DEFAULT '', - `parameter2` varchar(255) NOT NULL DEFAULT '', - `wert` text NOT NULL, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_fileconvert_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragungen_account` int(11) NOT NULL DEFAULT 0, + `status` varchar(255) NOT NULL, + `datei` varchar(255) NOT NULL, + `typ` varchar(255) NOT NULL, + `parameter1` varchar(255) NOT NULL, + `parameter2` varchar(255) NOT NULL, + `wert` text NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_lagercache` -- +DROP TABLE IF EXISTS `uebertragungen_lagercache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_lagercache` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `lager_platz` int(11) NOT NULL, - `lagerzahl` decimal(14,4) NOT NULL DEFAULT '0.0000', - `uebertragungen` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_lagercache` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `lager_platz` int(11) NOT NULL, + `lagerzahl` decimal(14,4) NOT NULL DEFAULT 0.0000, + `uebertragungen` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_log` -- +DROP TABLE IF EXISTS `uebertragungen_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragungen_account` int(11) NOT NULL DEFAULT '0', - `status` varchar(255) NOT NULL DEFAULT '', - `datei` varchar(255) NOT NULL DEFAULT '', - `typ` varchar(255) NOT NULL DEFAULT '', - `parameter1` varchar(255) NOT NULL DEFAULT '', - `parameter2` varchar(255) NOT NULL DEFAULT '', - `wert` text NOT NULL, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - KEY `uebertragungen_account` (`uebertragungen_account`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragungen_account` int(11) NOT NULL DEFAULT 0, + `status` varchar(255) NOT NULL, + `datei` varchar(255) NOT NULL, + `typ` varchar(255) NOT NULL, + `parameter1` varchar(255) NOT NULL, + `parameter2` varchar(255) NOT NULL, + `wert` text NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + KEY `uebertragungen_account` (`uebertragungen_account`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_monitor` -- +DROP TABLE IF EXISTS `uebertragungen_monitor`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_monitor` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragungen_account` int(11) NOT NULL DEFAULT '0', - `api_request` int(11) NOT NULL DEFAULT '0', - `datei` int(11) NOT NULL DEFAULT '0', - `status` varchar(255) NOT NULL DEFAULT '', - `nachricht` varchar(255) NOT NULL DEFAULT '', - `element1` varchar(255) NOT NULL DEFAULT '', - `element2` varchar(255) NOT NULL DEFAULT '', - `element3` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `doctype` varchar(255) NOT NULL DEFAULT '', - `doctypeid` int(11) NOT NULL DEFAULT '0', - `ausgeblendet` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `uebertragungen_account` (`uebertragungen_account`,`datei`,`api_request`,`doctypeid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_monitor` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragungen_account` int(11) NOT NULL DEFAULT 0, + `api_request` int(11) NOT NULL DEFAULT 0, + `datei` int(11) NOT NULL DEFAULT 0, + `status` varchar(255) NOT NULL, + `nachricht` varchar(255) NOT NULL, + `element1` varchar(255) NOT NULL, + `element2` varchar(255) NOT NULL, + `element3` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `doctype` varchar(255) NOT NULL, + `doctypeid` int(11) NOT NULL DEFAULT 0, + `ausgeblendet` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `uebertragungen_account` (`uebertragungen_account`,`datei`,`api_request`,`doctypeid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uebertragungen_trackingnummern` -- +DROP TABLE IF EXISTS `uebertragungen_trackingnummern`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uebertragungen_trackingnummern` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `uebertragungen` int(11) NOT NULL, - `lieferschein` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `uebertragungen_trackingnummern` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uebertragungen` int(11) NOT NULL, + `lieferschein` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `umsatzstatistik` -- +DROP TABLE IF EXISTS `umsatzstatistik`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `umsatzstatistik` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `objekt` varchar(64) NOT NULL DEFAULT '', - `belegnr` varchar(64) NOT NULL DEFAULT '', - `kundennummer` varchar(64) NOT NULL DEFAULT '', - `name` varchar(64) NOT NULL DEFAULT '', - `parameter` int(11) NOT NULL DEFAULT '0', - `betrag_netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_brutto` decimal(10,2) NOT NULL DEFAULT '0.00', - `erloes_netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `datum` date DEFAULT NULL, - `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', - `gruppe` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `umsatzstatistik` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `objekt` varchar(64) NOT NULL, + `belegnr` varchar(64) NOT NULL, + `kundennummer` varchar(64) NOT NULL, + `name` varchar(64) NOT NULL, + `parameter` int(11) NOT NULL DEFAULT 0, + `betrag_netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_brutto` decimal(10,2) NOT NULL DEFAULT 0.00, + `erloes_netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `datum` date DEFAULT NULL, + `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', + `gruppe` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `unterprojekt` -- +DROP TABLE IF EXISTS `unterprojekt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `unterprojekt` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `projekt` int(10) NOT NULL, - `name` varchar(255) NOT NULL, - `verantwortlicher` varchar(255) NOT NULL, - `aktiv` varchar(255) NOT NULL, - `position` int(10) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `unterprojekt` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `projekt` int(10) NOT NULL, + `name` varchar(255) NOT NULL, + `verantwortlicher` varchar(255) NOT NULL, + `aktiv` varchar(255) NOT NULL, + `position` int(10) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ups` -- +DROP TABLE IF EXISTS `ups`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ups` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `account_nummer` varchar(255) NOT NULL, - `bemerkung` varchar(255) NOT NULL, - `auswahl` int(11) NOT NULL DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -/* Reconstructed from SELECT statement */ -CREATE TABLE IF NOT EXISTS `stechuhrdevice` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `url` varchar(255) NOT NULL DEFAULT '', - `reduziert` int(11) NOT NULL DEFAULT 0, - `code` int(11) NOT NULL DEFAULT 0, - `aktiv` int(11) NOT NULL DEFAULT 0, - `IP` int(4) NOT NULL DEFAULT 0, - `submask` int(4) NOT NULL DEFAULT 0, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +CREATE TABLE `ups` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `account_nummer` varchar(255) NOT NULL, + `bemerkung` varchar(255) NOT NULL, + `auswahl` int(11) NOT NULL DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `user` -- +DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `username` varchar(100) DEFAULT NULL, - `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `repassword` int(1) NOT NULL, - `description` varchar(255) DEFAULT NULL, - `settings` text NOT NULL, - `parentuser` int(11) DEFAULT NULL, - `activ` int(11) DEFAULT '0', - `type` varchar(100) DEFAULT '', - `adresse` int(10) NOT NULL, - `fehllogins` int(11) NOT NULL, - `standarddrucker` int(1) NOT NULL, - `firma` int(10) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `startseite` varchar(1024) DEFAULT NULL, - `hwtoken` int(1) DEFAULT NULL, - `hwkey` varchar(255) DEFAULT NULL, - `hwcounter` int(11) DEFAULT NULL, - `motppin` varchar(255) DEFAULT NULL, - `motpsecret` varchar(255) DEFAULT NULL, - `passwordmd5` varchar(255) DEFAULT NULL, - `externlogin` int(1) DEFAULT NULL, - `projekt_bevorzugen` tinyint(1) NOT NULL DEFAULT '0', - `email_bevorzugen` tinyint(1) NOT NULL DEFAULT '1', - `projekt` int(11) NOT NULL DEFAULT '0', - `rfidtag` varchar(64) NOT NULL DEFAULT '', - `vorlage` varchar(255) DEFAULT NULL, - `kalender_passwort` varchar(255) DEFAULT NULL, - `kalender_ausblenden` int(1) NOT NULL DEFAULT '0', - `kalender_aktiv` int(1) DEFAULT NULL, - `gpsstechuhr` int(1) DEFAULT NULL, - `standardetikett` int(11) NOT NULL DEFAULT '0', - `standardfax` int(11) NOT NULL DEFAULT '0', - `internebezeichnung` varchar(255) DEFAULT NULL, - `hwdatablock` varchar(255) DEFAULT NULL, - `standardversanddrucker` int(11) NOT NULL DEFAULT '0', - `passwordsha512` varchar(128) NOT NULL DEFAULT '', - `salt` varchar(128) NOT NULL DEFAULT '', - `paketmarkendrucker` int(11) DEFAULT '0', - `sprachebevorzugen` varchar(255) DEFAULT NULL, - `vergessencode` varchar(255) DEFAULT '', - `vergessenzeit` datetime DEFAULT NULL, - `chat_popup` tinyint(1) DEFAULT '1', - `defaultcolor` varchar(10) DEFAULT '', - `passwordhash` char(60) DEFAULT NULL, - `docscan_aktiv` tinyint(1) DEFAULT '0', - `docscan_passwort` varchar(64) DEFAULT NULL, - `callcenter_notification` tinyint(1) DEFAULT '1', - `stechuhrdevice` varchar(255) DEFAULT '', - `role` varchar(255) DEFAULT '', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `username` varchar(100) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + `repassword` int(1) NOT NULL, + `description` varchar(255) DEFAULT NULL, + `settings` text NOT NULL, + `parentuser` int(11) DEFAULT NULL, + `activ` int(11) DEFAULT 0, + `type` varchar(100) DEFAULT NULL, + `adresse` int(10) NOT NULL, + `fehllogins` int(11) NOT NULL, + `standarddrucker` int(1) NOT NULL, + `firma` int(10) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `startseite` varchar(1024) DEFAULT NULL, + `hwtoken` int(1) DEFAULT NULL, + `hwkey` varchar(255) DEFAULT NULL, + `hwcounter` int(11) DEFAULT NULL, + `motppin` varchar(255) DEFAULT NULL, + `motpsecret` varchar(255) DEFAULT NULL, + `passwordmd5` varchar(255) DEFAULT NULL, + `externlogin` int(1) DEFAULT NULL, + `projekt_bevorzugen` tinyint(1) NOT NULL DEFAULT 0, + `email_bevorzugen` tinyint(1) NOT NULL DEFAULT 1, + `projekt` int(11) NOT NULL DEFAULT 0, + `rfidtag` varchar(64) NOT NULL, + `vorlage` varchar(255) DEFAULT NULL, + `kalender_passwort` varchar(255) DEFAULT NULL, + `kalender_ausblenden` int(1) NOT NULL DEFAULT 0, + `kalender_aktiv` int(1) DEFAULT NULL, + `gpsstechuhr` int(1) DEFAULT NULL, + `standardetikett` int(11) NOT NULL DEFAULT 0, + `standardfax` int(11) NOT NULL DEFAULT 0, + `internebezeichnung` varchar(255) DEFAULT NULL, + `hwdatablock` varchar(255) DEFAULT NULL, + `standardversanddrucker` int(11) NOT NULL DEFAULT 0, + `passwordsha512` varchar(128) NOT NULL, + `salt` varchar(128) NOT NULL, + `paketmarkendrucker` int(11) DEFAULT 0, + `sprachebevorzugen` varchar(255) DEFAULT NULL, + `vergessencode` varchar(255) DEFAULT NULL, + `vergessenzeit` datetime DEFAULT NULL, + `chat_popup` tinyint(1) DEFAULT 1, + `defaultcolor` varchar(10) DEFAULT NULL, + `passwordhash` char(60) DEFAULT NULL, + `docscan_aktiv` tinyint(1) DEFAULT 0, + `docscan_passwort` varchar(64) DEFAULT NULL, + `callcenter_notification` tinyint(1) DEFAULT 1, + `stechuhrdevice` varchar(255) DEFAULT NULL, + `role` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `user_totp` -- +DROP TABLE IF EXISTS `user_totp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_totp` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(10) unsigned NOT NULL, - `active` tinyint(1) unsigned DEFAULT '0', - `secret` varchar(100) NOT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `modified_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (`id`), - UNIQUE KEY `user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `user_totp` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL, + `active` tinyint(1) unsigned DEFAULT 0, + `secret` varchar(100) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `modified_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`), + UNIQUE KEY `user_id` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `userkonfiguration` -- +DROP TABLE IF EXISTS `userkonfiguration`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `userkonfiguration` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL DEFAULT '0', - `name` varchar(255) NOT NULL DEFAULT '', - `value` text NOT NULL, - PRIMARY KEY (`id`), - KEY `user` (`user`), - KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8; +CREATE TABLE `userkonfiguration` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL DEFAULT 0, + `name` varchar(255) NOT NULL, + `value` text NOT NULL, + PRIMARY KEY (`id`), + KEY `user` (`user`), + KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `useronline` -- +DROP TABLE IF EXISTS `useronline`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `useronline` ( - `user_id` int(5) NOT NULL DEFAULT '0', - `login` int(1) NOT NULL DEFAULT '0', - `sessionid` varchar(255) NOT NULL DEFAULT '', - `ip` varchar(200) NOT NULL DEFAULT '', - `time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - KEY `sessionid` (`sessionid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `useronline` ( + `user_id` int(5) NOT NULL DEFAULT 0, + `login` int(1) NOT NULL DEFAULT 0, + `sessionid` varchar(255) NOT NULL, + `ip` varchar(200) NOT NULL, + `time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + KEY `sessionid` (`sessionid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `userrights` -- +DROP TABLE IF EXISTS `userrights`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `userrights` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL, - `module` varchar(64) NOT NULL, - `action` varchar(64) NOT NULL, - `permission` tinyint(1) NOT NULL, - PRIMARY KEY (`id`), - KEY `user` (`user`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `userrights` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL, + `module` varchar(64) NOT NULL, + `action` varchar(64) NOT NULL, + `permission` tinyint(1) NOT NULL, + PRIMARY KEY (`id`), + KEY `user` (`user`) +) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uservorlage` -- +DROP TABLE IF EXISTS `uservorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uservorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bezeichnung` varchar(255) DEFAULT NULL, - `beschreibung` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; +CREATE TABLE `uservorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bezeichnung` varchar(255) DEFAULT NULL, + `beschreibung` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `uservorlagerights` -- +DROP TABLE IF EXISTS `uservorlagerights`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uservorlagerights` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vorlage` int(11) DEFAULT NULL, - `module` varchar(64) DEFAULT NULL, - `action` varchar(64) DEFAULT NULL, - `permission` int(1) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=5601 DEFAULT CHARSET=utf8; +CREATE TABLE `uservorlagerights` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `vorlage` int(11) DEFAULT NULL, + `module` varchar(64) DEFAULT NULL, + `action` varchar(64) DEFAULT NULL, + `permission` int(1) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5601 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ustprf` -- +DROP TABLE IF EXISTS `ustprf`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ustprf` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` varchar(255) NOT NULL, - `name` varchar(255) NOT NULL, - `ustid` varchar(255) NOT NULL, - `land` varchar(255) NOT NULL, - `ort` varchar(255) NOT NULL, - `plz` varchar(255) NOT NULL, - `rechtsform` varchar(255) NOT NULL, - `strasse` varchar(255) NOT NULL, - `status` varchar(64) NOT NULL, - `datum_online` datetime NOT NULL, - `datum_brief` date NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `briefbestellt` date NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `datum` date DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ustprf` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + `ustid` varchar(255) NOT NULL, + `land` varchar(255) NOT NULL, + `ort` varchar(255) NOT NULL, + `plz` varchar(255) NOT NULL, + `rechtsform` varchar(255) NOT NULL, + `strasse` varchar(255) NOT NULL, + `status` varchar(64) NOT NULL, + `datum_online` datetime NOT NULL, + `datum_brief` date NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `briefbestellt` date NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `datum` date DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `ustprf_protokoll` -- +DROP TABLE IF EXISTS `ustprf_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ustprf_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ustprf_id` int(11) NOT NULL, - `zeit` datetime NOT NULL, - `bemerkung` varchar(255) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` datetime NOT NULL, - `daten` varchar(512) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `ustprf_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `ustprf_id` int(11) NOT NULL, + `zeit` datetime NOT NULL, + `bemerkung` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` datetime NOT NULL, + `daten` varchar(512) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit` -- +DROP TABLE IF EXISTS `verbindlichkeit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `belegnr` varchar(255) NOT NULL, - `status_beleg` varchar(64) NOT NULL, - `schreibschutz` tinyint(1) NOT NULL DEFAULT '0', - `rechnung` varchar(255) NOT NULL, - `zahlbarbis` date NOT NULL, - `betrag` decimal(10,2) NOT NULL, - `umsatzsteuer` varchar(255) NOT NULL, - `ustid` varchar(64) NOT NULL, - `summenormal` decimal(10,4) NOT NULL, - `summeermaessigt` decimal(10,4) NOT NULL, - `summesatz3` decimal(10,4) NOT NULL, - `summesatz4` decimal(10,4) NOT NULL, - `steuersatzname3` varchar(64) NOT NULL DEFAULT '', - `steuersatzname4` varchar(64) NOT NULL DEFAULT '', - `skonto` decimal(10,2) NOT NULL, - `skontobis` date NOT NULL, - `skontofestsetzen` int(1) NOT NULL DEFAULT '0', - `freigabe` int(1) NOT NULL, - `freigabemitarbeiter` varchar(255) NOT NULL, - `bestellung` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - `projekt` int(11) NOT NULL, - `teilprojekt` int(11) NOT NULL, - `auftrag` int(11) NOT NULL, - `status` varchar(64) NOT NULL, - `bezahlt` int(1) NOT NULL, - `kontoauszuege` int(11) NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `bestellung1` int(1) NOT NULL DEFAULT '0', - `bestellung1betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung1bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung1projekt` int(11) NOT NULL DEFAULT '0', - `bestellung1kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung1auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung2` int(1) NOT NULL DEFAULT '0', - `bestellung2betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung2bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung2kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung2auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung2projekt` int(11) NOT NULL DEFAULT '0', - `bestellung3` int(1) NOT NULL DEFAULT '0', - `bestellung3betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung3bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung3kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung3auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung3projekt` int(11) NOT NULL DEFAULT '0', - `bestellung4` int(1) NOT NULL DEFAULT '0', - `bestellung4betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung4bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung4kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung4auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung4projekt` int(11) NOT NULL DEFAULT '0', - `bestellung5` int(1) NOT NULL DEFAULT '0', - `bestellung5betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung5bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung5kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung5auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung5projekt` int(11) NOT NULL DEFAULT '0', - `bestellung6` int(1) NOT NULL DEFAULT '0', - `bestellung6betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung6bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung6kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung6auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung6projekt` int(11) NOT NULL DEFAULT '0', - `bestellung7` int(1) NOT NULL DEFAULT '0', - `bestellung7betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung7bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung7kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung7auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung7projekt` int(11) NOT NULL DEFAULT '0', - `bestellung8` int(1) NOT NULL DEFAULT '0', - `bestellung8betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung8bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung8kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung8auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung8projekt` int(11) NOT NULL DEFAULT '0', - `bestellung9` int(1) NOT NULL DEFAULT '0', - `bestellung9betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung9bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung9kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung9auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung9projekt` int(11) NOT NULL DEFAULT '0', - `bestellung10` int(1) NOT NULL DEFAULT '0', - `bestellung10betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung10bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung10kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung10auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung10projekt` int(11) NOT NULL DEFAULT '0', - `bestellung11` int(1) NOT NULL DEFAULT '0', - `bestellung11betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung11bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung11kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung11auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung11projekt` int(11) NOT NULL DEFAULT '0', - `bestellung12` int(1) NOT NULL DEFAULT '0', - `bestellung12betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung12bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung12projekt` int(11) NOT NULL DEFAULT '0', - `bestellung12kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung12auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung13` int(1) NOT NULL DEFAULT '0', - `bestellung13betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung13bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung13kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung13auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung13projekt` int(11) NOT NULL DEFAULT '0', - `bestellung14` int(1) NOT NULL DEFAULT '0', - `bestellung14betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung14bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung14kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung14auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung14projekt` int(11) NOT NULL DEFAULT '0', - `bestellung15` int(1) NOT NULL DEFAULT '0', - `bestellung15betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `bestellung15bemerkung` varchar(255) NOT NULL DEFAULT '', - `bestellung15kostenstelle` varchar(64) NOT NULL DEFAULT '', - `bestellung15auftrag` varchar(64) NOT NULL DEFAULT '', - `bestellung15projekt` int(11) NOT NULL DEFAULT '0', - `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', - `zahlungsweise` varchar(255) NOT NULL DEFAULT '', - `eingangsdatum` date NOT NULL, - `buha_konto1` varchar(20) NOT NULL DEFAULT '', - `buha_belegfeld1` varchar(200) NOT NULL DEFAULT '', - `buha_betrag1` decimal(10,2) NOT NULL DEFAULT '0.00', - `buha_konto2` varchar(20) NOT NULL DEFAULT '', - `buha_belegfeld2` varchar(200) NOT NULL DEFAULT '', - `buha_betrag2` decimal(10,2) NOT NULL DEFAULT '0.00', - `buha_konto3` varchar(20) NOT NULL DEFAULT '', - `buha_belegfeld3` varchar(200) NOT NULL DEFAULT '', - `buha_betrag3` decimal(10,2) NOT NULL DEFAULT '0.00', - `buha_konto4` varchar(20) NOT NULL DEFAULT '', - `buha_belegfeld4` varchar(200) NOT NULL DEFAULT '', - `buha_betrag4` decimal(10,2) NOT NULL DEFAULT '0.00', - `buha_konto5` varchar(20) NOT NULL DEFAULT '', - `buha_belegfeld5` varchar(200) NOT NULL DEFAULT '', - `buha_betrag5` decimal(10,2) NOT NULL DEFAULT '0.00', - `rechnungsdatum` date DEFAULT NULL, - `rechnungsfreigabe` tinyint(1) NOT NULL DEFAULT '0', - `kostenstelle` varchar(255) DEFAULT NULL, - `beschreibung` varchar(255) DEFAULT NULL, - `sachkonto` varchar(64) DEFAULT NULL, - `art` varchar(64) NOT NULL DEFAULT '', - `verwendungszweck` varchar(255) DEFAULT NULL, - `dta_datei` int(11) NOT NULL DEFAULT '0', - `frachtkosten` decimal(10,2) NOT NULL DEFAULT '0.00', - `internebemerkung` text, - `ustnormal` decimal(10,2) DEFAULT NULL, - `ustermaessigt` decimal(10,2) DEFAULT NULL, - `uststuer3` decimal(10,2) DEFAULT NULL, - `uststuer4` decimal(10,2) DEFAULT NULL, - `betragbezahlt` decimal(10,2) NOT NULL DEFAULT '0.00', - `bezahltam` date NOT NULL, - `klaerfall` tinyint(1) NOT NULL DEFAULT '0', - `klaergrund` varchar(255) NOT NULL DEFAULT '', - `skonto_erhalten` decimal(10,2) NOT NULL DEFAULT '0.00', - `kurs` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `sprache` varchar(25) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`), - KEY `bestellung` (`bestellung`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `belegnr` varchar(255) NOT NULL, + `status_beleg` varchar(64) NOT NULL, + `schreibschutz` tinyint(1) NOT NULL DEFAULT 0, + `rechnung` varchar(255) NOT NULL, + `zahlbarbis` date NOT NULL, + `betrag` decimal(10,2) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `ustid` varchar(64) NOT NULL, + `summenormal` decimal(10,4) NOT NULL, + `summeermaessigt` decimal(10,4) NOT NULL, + `summesatz3` decimal(10,4) NOT NULL, + `summesatz4` decimal(10,4) NOT NULL, + `steuersatzname3` varchar(64) NOT NULL, + `steuersatzname4` varchar(64) NOT NULL, + `skonto` decimal(10,2) NOT NULL, + `skontobis` date NOT NULL, + `skontofestsetzen` int(1) NOT NULL DEFAULT 0, + `freigabe` int(1) NOT NULL, + `freigabemitarbeiter` varchar(255) NOT NULL, + `bestellung` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + `projekt` int(11) NOT NULL, + `teilprojekt` int(11) NOT NULL, + `auftrag` int(11) NOT NULL, + `status` varchar(64) NOT NULL, + `bezahlt` int(1) NOT NULL, + `kontoauszuege` int(11) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `bestellung1` int(1) NOT NULL DEFAULT 0, + `bestellung1betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung1bemerkung` varchar(255) NOT NULL, + `bestellung1projekt` int(11) NOT NULL DEFAULT 0, + `bestellung1kostenstelle` varchar(64) NOT NULL, + `bestellung1auftrag` varchar(64) NOT NULL, + `bestellung2` int(1) NOT NULL DEFAULT 0, + `bestellung2betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung2bemerkung` varchar(255) NOT NULL, + `bestellung2kostenstelle` varchar(64) NOT NULL, + `bestellung2auftrag` varchar(64) NOT NULL, + `bestellung2projekt` int(11) NOT NULL DEFAULT 0, + `bestellung3` int(1) NOT NULL DEFAULT 0, + `bestellung3betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung3bemerkung` varchar(255) NOT NULL, + `bestellung3kostenstelle` varchar(64) NOT NULL, + `bestellung3auftrag` varchar(64) NOT NULL, + `bestellung3projekt` int(11) NOT NULL DEFAULT 0, + `bestellung4` int(1) NOT NULL DEFAULT 0, + `bestellung4betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung4bemerkung` varchar(255) NOT NULL, + `bestellung4kostenstelle` varchar(64) NOT NULL, + `bestellung4auftrag` varchar(64) NOT NULL, + `bestellung4projekt` int(11) NOT NULL DEFAULT 0, + `bestellung5` int(1) NOT NULL DEFAULT 0, + `bestellung5betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung5bemerkung` varchar(255) NOT NULL, + `bestellung5kostenstelle` varchar(64) NOT NULL, + `bestellung5auftrag` varchar(64) NOT NULL, + `bestellung5projekt` int(11) NOT NULL DEFAULT 0, + `bestellung6` int(1) NOT NULL DEFAULT 0, + `bestellung6betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung6bemerkung` varchar(255) NOT NULL, + `bestellung6kostenstelle` varchar(64) NOT NULL, + `bestellung6auftrag` varchar(64) NOT NULL, + `bestellung6projekt` int(11) NOT NULL DEFAULT 0, + `bestellung7` int(1) NOT NULL DEFAULT 0, + `bestellung7betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung7bemerkung` varchar(255) NOT NULL, + `bestellung7kostenstelle` varchar(64) NOT NULL, + `bestellung7auftrag` varchar(64) NOT NULL, + `bestellung7projekt` int(11) NOT NULL DEFAULT 0, + `bestellung8` int(1) NOT NULL DEFAULT 0, + `bestellung8betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung8bemerkung` varchar(255) NOT NULL, + `bestellung8kostenstelle` varchar(64) NOT NULL, + `bestellung8auftrag` varchar(64) NOT NULL, + `bestellung8projekt` int(11) NOT NULL DEFAULT 0, + `bestellung9` int(1) NOT NULL DEFAULT 0, + `bestellung9betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung9bemerkung` varchar(255) NOT NULL, + `bestellung9kostenstelle` varchar(64) NOT NULL, + `bestellung9auftrag` varchar(64) NOT NULL, + `bestellung9projekt` int(11) NOT NULL DEFAULT 0, + `bestellung10` int(1) NOT NULL DEFAULT 0, + `bestellung10betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung10bemerkung` varchar(255) NOT NULL, + `bestellung10kostenstelle` varchar(64) NOT NULL, + `bestellung10auftrag` varchar(64) NOT NULL, + `bestellung10projekt` int(11) NOT NULL DEFAULT 0, + `bestellung11` int(1) NOT NULL DEFAULT 0, + `bestellung11betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung11bemerkung` varchar(255) NOT NULL, + `bestellung11kostenstelle` varchar(64) NOT NULL, + `bestellung11auftrag` varchar(64) NOT NULL, + `bestellung11projekt` int(11) NOT NULL DEFAULT 0, + `bestellung12` int(1) NOT NULL DEFAULT 0, + `bestellung12betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung12bemerkung` varchar(255) NOT NULL, + `bestellung12projekt` int(11) NOT NULL DEFAULT 0, + `bestellung12kostenstelle` varchar(64) NOT NULL, + `bestellung12auftrag` varchar(64) NOT NULL, + `bestellung13` int(1) NOT NULL DEFAULT 0, + `bestellung13betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung13bemerkung` varchar(255) NOT NULL, + `bestellung13kostenstelle` varchar(64) NOT NULL, + `bestellung13auftrag` varchar(64) NOT NULL, + `bestellung13projekt` int(11) NOT NULL DEFAULT 0, + `bestellung14` int(1) NOT NULL DEFAULT 0, + `bestellung14betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung14bemerkung` varchar(255) NOT NULL, + `bestellung14kostenstelle` varchar(64) NOT NULL, + `bestellung14auftrag` varchar(64) NOT NULL, + `bestellung14projekt` int(11) NOT NULL DEFAULT 0, + `bestellung15` int(1) NOT NULL DEFAULT 0, + `bestellung15betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `bestellung15bemerkung` varchar(255) NOT NULL, + `bestellung15kostenstelle` varchar(64) NOT NULL, + `bestellung15auftrag` varchar(64) NOT NULL, + `bestellung15projekt` int(11) NOT NULL DEFAULT 0, + `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', + `zahlungsweise` varchar(255) NOT NULL, + `eingangsdatum` date NOT NULL, + `buha_konto1` varchar(20) NOT NULL, + `buha_belegfeld1` varchar(200) NOT NULL, + `buha_betrag1` decimal(10,2) NOT NULL DEFAULT 0.00, + `buha_konto2` varchar(20) NOT NULL, + `buha_belegfeld2` varchar(200) NOT NULL, + `buha_betrag2` decimal(10,2) NOT NULL DEFAULT 0.00, + `buha_konto3` varchar(20) NOT NULL, + `buha_belegfeld3` varchar(200) NOT NULL, + `buha_betrag3` decimal(10,2) NOT NULL DEFAULT 0.00, + `buha_konto4` varchar(20) NOT NULL, + `buha_belegfeld4` varchar(200) NOT NULL, + `buha_betrag4` decimal(10,2) NOT NULL DEFAULT 0.00, + `buha_konto5` varchar(20) NOT NULL, + `buha_belegfeld5` varchar(200) NOT NULL, + `buha_betrag5` decimal(10,2) NOT NULL DEFAULT 0.00, + `rechnungsdatum` date DEFAULT NULL, + `rechnungsfreigabe` tinyint(1) NOT NULL DEFAULT 0, + `kostenstelle` varchar(255) DEFAULT NULL, + `beschreibung` varchar(255) DEFAULT NULL, + `sachkonto` varchar(64) DEFAULT NULL, + `art` varchar(64) NOT NULL, + `verwendungszweck` varchar(255) DEFAULT NULL, + `dta_datei` int(11) NOT NULL DEFAULT 0, + `frachtkosten` decimal(10,2) NOT NULL DEFAULT 0.00, + `internebemerkung` text DEFAULT NULL, + `ustnormal` decimal(10,2) DEFAULT NULL, + `ustermaessigt` decimal(10,2) DEFAULT NULL, + `uststuer3` decimal(10,2) DEFAULT NULL, + `uststuer4` decimal(10,2) DEFAULT NULL, + `betragbezahlt` decimal(10,2) NOT NULL DEFAULT 0.00, + `bezahltam` date NOT NULL, + `klaerfall` tinyint(1) NOT NULL DEFAULT 0, + `klaergrund` varchar(255) NOT NULL, + `skonto_erhalten` decimal(10,2) NOT NULL DEFAULT 0.00, + `kurs` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `sprache` varchar(25) NOT NULL, + `usereditid` int(11) NOT NULL, + `datum` date DEFAULT NULL, + `steuersatz_normal` decimal(5,2) NOT NULL DEFAULT 0.00, + `steuersatz_ermaessigt` decimal(5,2) NOT NULL DEFAULT 0.00, + `ust_befreit` int(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`), + KEY `bestellung` (`bestellung`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit_bestellungen` -- +DROP TABLE IF EXISTS `verbindlichkeit_bestellungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit_bestellungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `verbindlichkeit` int(11) NOT NULL DEFAULT '0', - `nummer` int(11) NOT NULL DEFAULT '0', - `bestellung` int(11) NOT NULL DEFAULT '0', - `bestellung_betrag` decimal(14,2) DEFAULT '0.00', - `bestellung_betrag_netto` decimal(14,2) DEFAULT '0.00', - `bestellung_projekt` int(11) NOT NULL DEFAULT '0', - `bestellung_auftrag` int(11) NOT NULL DEFAULT '0', - `bestellung_kostenstelle` int(11) NOT NULL DEFAULT '0', - `bestellung_bemerkung` varchar(255) NOT NULL, - PRIMARY KEY (`id`), - KEY `verbindlichkeit` (`verbindlichkeit`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit_bestellungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `verbindlichkeit` int(11) NOT NULL DEFAULT 0, + `nummer` int(11) NOT NULL DEFAULT 0, + `bestellung` int(11) NOT NULL DEFAULT 0, + `bestellung_betrag` decimal(14,2) DEFAULT 0.00, + `bestellung_betrag_netto` decimal(14,2) DEFAULT 0.00, + `bestellung_projekt` int(11) NOT NULL DEFAULT 0, + `bestellung_auftrag` int(11) NOT NULL DEFAULT 0, + `bestellung_kostenstelle` int(11) NOT NULL DEFAULT 0, + `bestellung_bemerkung` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `verbindlichkeit` (`verbindlichkeit`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit_kontierung` -- +DROP TABLE IF EXISTS `verbindlichkeit_kontierung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit_kontierung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `verbindlichkeit` int(11) NOT NULL DEFAULT '0', - `betrag` decimal(18,2) NOT NULL DEFAULT '0.00', - `belegfeld` varchar(255) NOT NULL DEFAULT '', - `buchungstext` varchar(255) NOT NULL DEFAULT '', - `gegenkonto` varchar(255) NOT NULL DEFAULT '', - `waehrung` varchar(3) NOT NULL DEFAULT '', - `steuersatz` decimal(10,2) NOT NULL, - `kostenstelle` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `verbindlichkeit` (`verbindlichkeit`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit_kontierung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `verbindlichkeit` int(11) NOT NULL DEFAULT 0, + `betrag` decimal(18,2) NOT NULL DEFAULT 0.00, + `belegfeld` varchar(255) NOT NULL, + `buchungstext` varchar(255) NOT NULL, + `gegenkonto` varchar(255) NOT NULL, + `waehrung` varchar(3) NOT NULL, + `steuersatz` decimal(10,2) NOT NULL, + `kostenstelle` varchar(64) NOT NULL, + PRIMARY KEY (`id`), + KEY `verbindlichkeit` (`verbindlichkeit`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit_ocr` -- +DROP TABLE IF EXISTS `verbindlichkeit_ocr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit_ocr` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `address_id` int(11) NOT NULL DEFAULT '0', - `property` varchar(32) NOT NULL DEFAULT '', - `search_term` varchar(32) NOT NULL DEFAULT '', - `search_direction` varchar(5) NOT NULL DEFAULT 'right', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit_ocr` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `address_id` int(11) NOT NULL DEFAULT 0, + `property` varchar(32) NOT NULL, + `search_term` varchar(32) NOT NULL, + `search_direction` varchar(5) NOT NULL DEFAULT 'right', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit_position` -- +DROP TABLE IF EXISTS `verbindlichkeit_position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit_position` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `verbindlichkeit` int(11) NOT NULL DEFAULT '0', - `sort` int(11) NOT NULL DEFAULT '0', - `artikel` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `bestellung` int(11) NOT NULL DEFAULT '0', - `nummer` varchar(255) NOT NULL DEFAULT '', - `bestellnummer` varchar(255) NOT NULL DEFAULT '', - `waehrung` varchar(255) NOT NULL DEFAULT '', - `einheit` varchar(255) NOT NULL DEFAULT '', - `vpe` varchar(255) NOT NULL DEFAULT '', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `umsatzsteuer` varchar(255) NOT NULL DEFAULT '', - `status` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `lieferdatum` date DEFAULT NULL, - `steuersatz` decimal(5,2) DEFAULT NULL, - `steuertext` varchar(1024) DEFAULT NULL, - `kostenstelle` varchar(10) NOT NULL DEFAULT '', - `preis` decimal(14,4) NOT NULL DEFAULT '0.0000', - `menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - PRIMARY KEY (`id`), - KEY `verbindlichkeit` (`verbindlichkeit`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `verbindlichkeit` int(11) NOT NULL DEFAULT 0, + `sort` int(11) NOT NULL DEFAULT 0, + `artikel` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `bestellung` int(11) NOT NULL DEFAULT 0, + `nummer` varchar(255) NOT NULL, + `bestellnummer` varchar(255) NOT NULL, + `waehrung` varchar(255) NOT NULL, + `einheit` varchar(255) NOT NULL, + `vpe` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `umsatzsteuer` varchar(255) NOT NULL, + `status` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `lieferdatum` date DEFAULT NULL, + `steuersatz` decimal(5,2) DEFAULT NULL, + `steuertext` varchar(1024) DEFAULT NULL, + `kostenstelle` varchar(10) NOT NULL, + `preis` decimal(14,4) NOT NULL DEFAULT 0.0000, + `menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `paketdistribution` int(11) NOT NULL DEFAULT 0, + `kontorahmen` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `verbindlichkeit` (`verbindlichkeit`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit_protokoll` -- +DROP TABLE IF EXISTS `verbindlichkeit_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `verbindlichkeit` int(11) NOT NULL DEFAULT '0', - `zeit` datetime NOT NULL, - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `grund` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `verbindlichkeit` (`verbindlichkeit`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `verbindlichkeit` int(11) NOT NULL DEFAULT 0, + `zeit` datetime NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `verbindlichkeit` (`verbindlichkeit`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit_regelmaessig` -- +DROP TABLE IF EXISTS `verbindlichkeit_regelmaessig`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit_regelmaessig` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date NOT NULL, - `aktiv` int(1) DEFAULT '0', - `typ` varchar(255) DEFAULT '0', - `filter` varchar(255) NOT NULL DEFAULT '', - `soll` varchar(255) NOT NULL DEFAULT '', - `haben` varchar(255) NOT NULL DEFAULT '', - `gebuehr` varchar(255) NOT NULL DEFAULT '', - `waehrung` varchar(255) NOT NULL DEFAULT '', - `art` varchar(255) NOT NULL DEFAULT '', - `wert` varchar(255) NOT NULL DEFAULT '', - `rechnungnr` varchar(255) NOT NULL DEFAULT '', - `verwendungszweck` varchar(255) NOT NULL DEFAULT '', - `kostenstelle` varchar(255) NOT NULL DEFAULT '', - `zahlungsweise` varchar(255) NOT NULL DEFAULT '', - `gegenkonto` varchar(32) NOT NULL DEFAULT '', - `wepruefung` int(1) DEFAULT NULL, - `repruefung` int(1) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit_regelmaessig` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date NOT NULL, + `aktiv` int(1) DEFAULT 0, + `typ` varchar(255) DEFAULT '0', + `filter` varchar(255) NOT NULL, + `soll` varchar(255) NOT NULL, + `haben` varchar(255) NOT NULL, + `gebuehr` varchar(255) NOT NULL, + `waehrung` varchar(255) NOT NULL, + `art` varchar(255) NOT NULL, + `wert` varchar(255) NOT NULL, + `rechnungnr` varchar(255) NOT NULL, + `verwendungszweck` varchar(255) NOT NULL, + `kostenstelle` varchar(255) NOT NULL, + `zahlungsweise` varchar(255) NOT NULL, + `gegenkonto` varchar(32) NOT NULL, + `wepruefung` int(1) DEFAULT NULL, + `repruefung` int(1) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verbindlichkeit_regelmaessig_beleg` -- +DROP TABLE IF EXISTS `verbindlichkeit_regelmaessig_beleg`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verbindlichkeit_regelmaessig_beleg` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `verbindlichkeit_regelmaessig` int(11) DEFAULT '0', - `verbindlichkeit` int(11) DEFAULT '0', - `datum` date NOT NULL, - PRIMARY KEY (`id`), - KEY `verbindlichkeit_regelmaessig` (`verbindlichkeit_regelmaessig`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verbindlichkeit_regelmaessig_beleg` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `verbindlichkeit_regelmaessig` int(11) DEFAULT 0, + `verbindlichkeit` int(11) DEFAULT 0, + `datum` date NOT NULL, + PRIMARY KEY (`id`), + KEY `verbindlichkeit_regelmaessig` (`verbindlichkeit_regelmaessig`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verkaufspreise` -- +DROP TABLE IF EXISTS `verkaufspreise`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verkaufspreise` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL, - `objekt` varchar(255) NOT NULL, - `projekt` varchar(255) NOT NULL, - `adresse` varchar(255) NOT NULL, - `preis` decimal(18,8) NOT NULL DEFAULT '0.00000000', - `waehrung` varchar(255) NOT NULL, - `ab_menge` decimal(14,4) NOT NULL DEFAULT '1.0000', - `vpe` varchar(64) NOT NULL DEFAULT '1', - `vpe_menge` decimal(14,4) NOT NULL DEFAULT '0.0000', - `angelegt_am` date NOT NULL, - `gueltig_bis` date NOT NULL, - `bemerkung` text NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, - `firma` int(11) NOT NULL, - `geloescht` int(1) NOT NULL, - `kundenartikelnummer` varchar(255) DEFAULT NULL, - `art` varchar(255) NOT NULL DEFAULT 'Kunde', - `gruppe` int(11) DEFAULT NULL, - `apichange` tinyint(1) NOT NULL DEFAULT '0', - `nichtberechnet` tinyint(1) NOT NULL DEFAULT '1', - `inbelegausblenden` tinyint(1) NOT NULL DEFAULT '0', - `gueltig_ab` date NOT NULL DEFAULT '0000-00-00', - `kurs` decimal(14,4) DEFAULT '-1.0000', - `kursdatum` date DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `artikel` (`artikel`), - KEY `adresse` (`adresse`), - KEY `projekt` (`projekt`), - KEY `kundenartikelnummer` (`kundenartikelnummer`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verkaufspreise` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL, + `objekt` varchar(255) NOT NULL, + `projekt` varchar(255) NOT NULL, + `adresse` varchar(255) NOT NULL, + `preis` decimal(18,8) NOT NULL DEFAULT 0.00000000, + `waehrung` varchar(255) NOT NULL, + `ab_menge` decimal(14,4) NOT NULL DEFAULT 1.0000, + `vpe` varchar(64) NOT NULL DEFAULT '1', + `vpe_menge` decimal(14,4) NOT NULL DEFAULT 0.0000, + `angelegt_am` date NOT NULL, + `gueltig_bis` date NOT NULL, + `bemerkung` text NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `logdatei` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(), + `firma` int(11) NOT NULL, + `geloescht` int(1) NOT NULL, + `kundenartikelnummer` varchar(255) DEFAULT NULL, + `art` varchar(255) NOT NULL DEFAULT 'kunde', + `gruppe` int(11) DEFAULT NULL, + `apichange` tinyint(1) NOT NULL DEFAULT 0, + `nichtberechnet` tinyint(1) NOT NULL DEFAULT 1, + `inbelegausblenden` tinyint(1) NOT NULL DEFAULT 0, + `gueltig_ab` date NOT NULL DEFAULT '0000-00-00', + `kurs` decimal(14,4) DEFAULT -1.0000, + `kursdatum` date DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `artikel` (`artikel`), + KEY `adresse` (`adresse`), + KEY `projekt` (`projekt`), + KEY `kundenartikelnummer` (`kundenartikelnummer`) +) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verkaufszahlen_chart` -- +DROP TABLE IF EXISTS `verkaufszahlen_chart`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verkaufszahlen_chart` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `regs` tinyint(1) NOT NULL DEFAULT '0', - `monat` tinyint(1) NOT NULL DEFAULT '1', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `bearbeiter` varchar(255) NOT NULL DEFAULT '', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `sort` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `verkaufszahlen_chart` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `regs` tinyint(1) NOT NULL DEFAULT 0, + `monat` tinyint(1) NOT NULL DEFAULT 1, + `bezeichnung` varchar(255) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `sort` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verkaufszahlen_chart_projekt` -- +DROP TABLE IF EXISTS `verkaufszahlen_chart_projekt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verkaufszahlen_chart_projekt` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `chart` int(11) DEFAULT '0', - `projekt` int(11) DEFAULT '0', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`), - KEY `chart` (`chart`,`projekt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verkaufszahlen_chart_projekt` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `chart` int(11) DEFAULT 0, + `projekt` int(11) DEFAULT 0, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `chart` (`chart`,`projekt`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `verrechnungsart` -- +DROP TABLE IF EXISTS `verrechnungsart`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `verrechnungsart` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `nummer` varchar(20) DEFAULT NULL, - `beschreibung` varchar(512) DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `verrechnungsart` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `nummer` varchar(20) DEFAULT NULL, + `beschreibung` varchar(512) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `versand` -- +DROP TABLE IF EXISTS `versand`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `versand` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `rechnung` int(11) NOT NULL, - `lieferschein` int(11) NOT NULL, - `versandart` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `gewicht` varchar(255) NOT NULL, - `freigegeben` int(1) NOT NULL, - `bearbeiter` varchar(255) NOT NULL, - `versender` varchar(255) NOT NULL, - `abgeschlossen` int(1) NOT NULL, - `versendet_am` date NOT NULL, - `versandunternehmen` varchar(255) NOT NULL, - `tracking` varchar(255) NOT NULL, - `download` int(11) NOT NULL, - `firma` int(1) NOT NULL, - `logdatei` datetime NOT NULL, - `keinetrackingmail` int(1) DEFAULT NULL, - `versendet_am_zeitstempel` datetime DEFAULT NULL, - `weitererlieferschein` int(1) NOT NULL DEFAULT '0', - `anzahlpakete` int(11) NOT NULL DEFAULT '0', - `gelesen` int(1) NOT NULL DEFAULT '0', - `paketmarkegedruckt` int(1) NOT NULL DEFAULT '0', - `papieregedruckt` int(1) NOT NULL DEFAULT '0', - `versandzweigeteilt` tinyint(1) NOT NULL DEFAULT '0', - `improzess` tinyint(1) NOT NULL DEFAULT '0', - `improzessuser` int(1) NOT NULL DEFAULT '0', - `lastspooler_id` int(11) NOT NULL DEFAULT '0', - `lastprinter` int(11) NOT NULL DEFAULT '0', - `lastexportspooler_id` int(11) NOT NULL DEFAULT '0', - `lastexportprinter` int(11) NOT NULL DEFAULT '0', - `tracking_link` text, - `cronjob` int(1) NOT NULL DEFAULT '0', - `adressvalidation` int(1) NOT NULL DEFAULT '0', - `retoure` int(11) NOT NULL DEFAULT '0', - `klaergrund` varchar(255) NOT NULL DEFAULT '', - `bundesstaat` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `lieferschein` (`lieferschein`), - KEY `projekt` (`projekt`), - KEY `cronjob` (`cronjob`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `versand` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `rechnung` int(11) NOT NULL, + `lieferschein` int(11) NOT NULL, + `versandart` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `gewicht` varchar(255) NOT NULL, + `freigegeben` int(1) NOT NULL, + `bearbeiter` varchar(255) NOT NULL, + `versender` varchar(255) NOT NULL, + `abgeschlossen` int(1) NOT NULL, + `versendet_am` date NOT NULL, + `versandunternehmen` varchar(255) NOT NULL, + `tracking` varchar(255) NOT NULL, + `download` int(11) NOT NULL, + `firma` int(1) NOT NULL, + `logdatei` datetime NOT NULL, + `keinetrackingmail` int(1) DEFAULT NULL, + `versendet_am_zeitstempel` datetime DEFAULT NULL, + `weitererlieferschein` int(1) NOT NULL DEFAULT 0, + `anzahlpakete` int(11) NOT NULL DEFAULT 0, + `gelesen` int(1) NOT NULL DEFAULT 0, + `paketmarkegedruckt` int(1) NOT NULL DEFAULT 0, + `papieregedruckt` int(1) NOT NULL DEFAULT 0, + `versandzweigeteilt` tinyint(1) NOT NULL DEFAULT 0, + `improzess` tinyint(1) NOT NULL DEFAULT 0, + `improzessuser` int(1) NOT NULL DEFAULT 0, + `lastspooler_id` int(11) NOT NULL DEFAULT 0, + `lastprinter` int(11) NOT NULL DEFAULT 0, + `lastexportspooler_id` int(11) NOT NULL DEFAULT 0, + `lastexportprinter` int(11) NOT NULL DEFAULT 0, + `tracking_link` text DEFAULT NULL, + `cronjob` int(1) NOT NULL DEFAULT 0, + `adressvalidation` int(1) NOT NULL DEFAULT 0, + `retoure` int(11) NOT NULL DEFAULT 0, + `klaergrund` varchar(255) NOT NULL, + `bundesstaat` varchar(32) NOT NULL, + PRIMARY KEY (`id`), + KEY `lieferschein` (`lieferschein`), + KEY `projekt` (`projekt`), + KEY `cronjob` (`cronjob`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `versandarten` -- +DROP TABLE IF EXISTS `versandarten`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `versandarten` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(255) NOT NULL DEFAULT '', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `modul` varchar(64) NOT NULL DEFAULT '', - `keinportocheck` tinyint(1) NOT NULL DEFAULT '0', - `paketmarke_drucker` int(11) NOT NULL DEFAULT '0', - `export_drucker` int(11) NOT NULL DEFAULT '0', - `einstellungen_json` text NOT NULL, - `ausprojekt` tinyint(1) NOT NULL DEFAULT '0', - `versandmail` int(11) NOT NULL DEFAULT '0', - `geschaeftsbrief_vorlage` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; +CREATE TABLE `versandarten` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `type` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `modul` varchar(64) NOT NULL, + `keinportocheck` tinyint(1) NOT NULL DEFAULT 0, + `paketmarke_drucker` int(11) NOT NULL DEFAULT 0, + `export_drucker` int(11) NOT NULL DEFAULT 0, + `einstellungen_json` text NOT NULL, + `ausprojekt` tinyint(1) NOT NULL DEFAULT 0, + `versandmail` int(11) NOT NULL DEFAULT 0, + `geschaeftsbrief_vorlage` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `versandpaket_lieferschein_position` +-- + +DROP TABLE IF EXISTS `versandpaket_lieferschein_position`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `versandpaket_lieferschein_position` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `versandpaket` int(11) NOT NULL, + `lieferschein_position` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `versandpaket_lieferschein_position` (`versandpaket`,`lieferschein_position`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `versandpakete` -- +DROP TABLE IF EXISTS `versandpakete`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `versandpakete` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `versand` int(11) NOT NULL DEFAULT '0', - `nr` int(11) NOT NULL DEFAULT '0', - `tracking` varchar(255) NOT NULL DEFAULT '', - `versender` varchar(255) NOT NULL DEFAULT '', - `gewicht` varchar(10) NOT NULL DEFAULT '', - `bemerkung` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `versandpakete` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `versand` int(11) NOT NULL DEFAULT 0, + `nr` int(11) NOT NULL DEFAULT 0, + `tracking` varchar(255) NOT NULL, + `versender` varchar(255) NOT NULL, + `gewicht` varchar(10) NOT NULL, + `bemerkung` text NOT NULL, + `datum` datetime NOT NULL DEFAULT current_timestamp(), + `versandart` varchar(64) NOT NULL, + `lieferschein_ohne_pos` int(11) DEFAULT NULL, + `tracking_link` text NOT NULL, + `status` varchar(64) NOT NULL, + `usereditid` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `versandzentrum_log` -- +DROP TABLE IF EXISTS `versandzentrum_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `versandzentrum_log` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `userid` int(11) NOT NULL, - `aktion` varchar(255) NOT NULL DEFAULT '', - `wert` varchar(255) NOT NULL DEFAULT '', - `versandid` int(11) NOT NULL, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `versandzentrum_log` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `userid` int(11) NOT NULL, + `aktion` varchar(255) NOT NULL, + `wert` varchar(255) NOT NULL, + `versandid` int(11) NOT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `vertreterumsatz` -- +DROP TABLE IF EXISTS `vertreterumsatz`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `vertreterumsatz` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vertriebid` int(11) NOT NULL DEFAULT '0', - `userid` int(11) NOT NULL DEFAULT '0', - `adresse` int(11) NOT NULL DEFAULT '0', - `objekt` varchar(64) NOT NULL DEFAULT '', - `belegnr` varchar(64) NOT NULL DEFAULT '', - `name` varchar(64) NOT NULL DEFAULT '', - `parameter` int(11) NOT NULL DEFAULT '0', - `betrag_netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `betrag_brutto` decimal(10,2) NOT NULL DEFAULT '0.00', - `erloes_netto` decimal(10,2) NOT NULL DEFAULT '0.00', - `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT '0.00', - `datum` date DEFAULT NULL, - `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', - `gruppe` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `provision` decimal(10,2) NOT NULL DEFAULT '0.00', - `provision_summe` decimal(10,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `vertreterumsatz` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `vertriebid` int(11) NOT NULL DEFAULT 0, + `userid` int(11) NOT NULL DEFAULT 0, + `adresse` int(11) NOT NULL DEFAULT 0, + `objekt` varchar(64) NOT NULL, + `belegnr` varchar(64) NOT NULL, + `name` varchar(64) NOT NULL, + `parameter` int(11) NOT NULL DEFAULT 0, + `betrag_netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `betrag_brutto` decimal(10,2) NOT NULL DEFAULT 0.00, + `erloes_netto` decimal(10,2) NOT NULL DEFAULT 0.00, + `deckungsbeitrag` decimal(10,2) NOT NULL DEFAULT 0.00, + `datum` date DEFAULT NULL, + `waehrung` varchar(3) NOT NULL DEFAULT 'EUR', + `gruppe` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `provision` decimal(10,2) NOT NULL DEFAULT 0.00, + `provision_summe` decimal(10,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `vorlage` -- +DROP TABLE IF EXISTS `vorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `vorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `adresse` int(11) NOT NULL DEFAULT '0', - `datum` date NOT NULL, - `bemerkung` text NOT NULL, - `projekt` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `vorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `datum` date NOT NULL, + `bemerkung` text NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `waage_artikel` -- +DROP TABLE IF EXISTS `waage_artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `waage_artikel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `reihenfolge` int(11) NOT NULL DEFAULT '0', - `beschriftung` varchar(255) NOT NULL DEFAULT '', - `mhddatum` int(11) NOT NULL DEFAULT '0', - `etikettendrucker` int(11) NOT NULL DEFAULT '0', - `etikett` int(11) NOT NULL DEFAULT '0', - `waage` int(11) NOT NULL DEFAULT '0', - `etikettxml` longblob NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `waage_artikel` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `reihenfolge` int(11) NOT NULL DEFAULT 0, + `beschriftung` varchar(255) NOT NULL, + `mhddatum` int(11) NOT NULL DEFAULT 0, + `etikettendrucker` int(11) NOT NULL DEFAULT 0, + `etikett` int(11) NOT NULL DEFAULT 0, + `waage` int(11) NOT NULL DEFAULT 0, + `etikettxml` longblob NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `waehrung_umrechnung` -- +DROP TABLE IF EXISTS `waehrung_umrechnung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `waehrung_umrechnung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `waehrung_von` varchar(255) NOT NULL DEFAULT '', - `waehrung_nach` varchar(255) NOT NULL DEFAULT '', - `kurs` decimal(16,8) NOT NULL DEFAULT '1.00000000', - `gueltig_bis` datetime DEFAULT NULL, - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `bearbeiter` varchar(255) DEFAULT '', - `kommentar` varchar(255) DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `waehrung_umrechnung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `waehrung_von` varchar(255) NOT NULL, + `waehrung_nach` varchar(255) NOT NULL, + `kurs` decimal(16,8) NOT NULL DEFAULT 1.00000000, + `gueltig_bis` datetime DEFAULT NULL, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + `bearbeiter` varchar(255) DEFAULT NULL, + `kommentar` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `warteschlangen` -- +DROP TABLE IF EXISTS `warteschlangen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `warteschlangen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `warteschlange` varchar(255) NOT NULL, - `label` varchar(255) NOT NULL, - `wiedervorlage` int(11) NOT NULL, - `adresse` int(11) NOT NULL, - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `warteschlangen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `warteschlange` varchar(255) NOT NULL, + `label` varchar(255) NOT NULL, + `wiedervorlage` int(11) NOT NULL, + `adresse` int(11) NOT NULL, + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wawision_uebersetzung` -- +DROP TABLE IF EXISTS `wawision_uebersetzung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wawision_uebersetzung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user` int(11) NOT NULL DEFAULT '0', - `sprache` varchar(32) NOT NULL DEFAULT '', - `typ` varchar(32) NOT NULL DEFAULT '', - `original` text NOT NULL, - `uebersetzung` text NOT NULL, - `typ1` varchar(255) NOT NULL DEFAULT '', - `typ2` varchar(255) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `user` (`user`,`sprache`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wawision_uebersetzung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user` int(11) NOT NULL DEFAULT 0, + `sprache` varchar(32) NOT NULL, + `typ` varchar(32) NOT NULL, + `original` text NOT NULL, + `uebersetzung` text NOT NULL, + `typ1` varchar(255) NOT NULL, + `typ2` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + KEY `user` (`user`,`sprache`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `webmail` -- +DROP TABLE IF EXISTS `webmail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `webmail` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL, - `benutzername` varchar(255) NOT NULL, - `passwort` varchar(255) NOT NULL, - `server` varchar(255) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `webmail` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL, + `benutzername` varchar(255) NOT NULL, + `passwort` varchar(255) NOT NULL, + `server` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `webmail_mails` -- +DROP TABLE IF EXISTS `webmail_mails`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `webmail_mails` ( - `id` int(15) NOT NULL AUTO_INCREMENT, - `webmail` int(10) NOT NULL, - `subject` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `sender` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `cc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `bcc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `replyto` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `plaintext` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `htmltext` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, - `empfang` datetime NOT NULL, - `anhang` int(1) NOT NULL, - `gelesen` int(1) NOT NULL, - `checksum` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `webmail_mails` ( + `id` int(15) NOT NULL AUTO_INCREMENT, + `webmail` int(10) NOT NULL, + `subject` varchar(255) NOT NULL, + `sender` varchar(255) NOT NULL, + `cc` varchar(255) NOT NULL, + `bcc` varchar(255) NOT NULL, + `replyto` varchar(255) NOT NULL, + `plaintext` text NOT NULL, + `htmltext` text NOT NULL, + `empfang` datetime NOT NULL, + `anhang` int(1) NOT NULL, + `gelesen` int(1) NOT NULL, + `checksum` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `webmail_zuordnungen` -- +DROP TABLE IF EXISTS `webmail_zuordnungen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `webmail_zuordnungen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `mail` int(11) NOT NULL, - `zuordnung` varchar(255) NOT NULL, - `parameter` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `webmail_zuordnungen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `mail` int(11) NOT NULL, + `zuordnung` varchar(255) NOT NULL, + `parameter` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage` -- +DROP TABLE IF EXISTS `wiedervorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `adresse` int(11) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `adresse_mitarbeier` int(11) NOT NULL DEFAULT '0', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `ergebnis` text NOT NULL, - `betrag` decimal(10,2) DEFAULT NULL, - `erinnerung` datetime DEFAULT NULL, - `erinnerung_per_mail` int(1) DEFAULT NULL, - `erinnerung_empfaenger` text, - `link` text, - `module` varchar(255) DEFAULT NULL, - `action` varchar(255) DEFAULT NULL, - `status` varchar(64) DEFAULT NULL, - `bearbeiter` int(11) NOT NULL DEFAULT '0', - `adresse_mitarbeiter` int(11) NOT NULL DEFAULT '0', - `datum_angelegt` date DEFAULT NULL, - `zeit_angelegt` time DEFAULT NULL, - `datum_erinnerung` date DEFAULT NULL, - `zeit_erinnerung` time DEFAULT NULL, - `parameter` int(11) NOT NULL DEFAULT '0', - `oeffentlich` tinyint(1) NOT NULL DEFAULT '0', - `abgeschlossen` tinyint(1) NOT NULL DEFAULT '0', - `ansprechpartner_id` int(11) NOT NULL DEFAULT '0', - `subproject_id` int(11) NOT NULL DEFAULT '0', - `chance` int(3) DEFAULT NULL, - `datum_abschluss` date DEFAULT NULL, - `datum_status` date DEFAULT NULL, - `prio` tinyint(1) NOT NULL DEFAULT '0', - `stages` int(11) NOT NULL DEFAULT '0', - `color` varchar(64) NOT NULL DEFAULT '#a2d624', - PRIMARY KEY (`id`), - KEY `adresse` (`adresse`), - KEY `adresse_mitarbeiter` (`adresse_mitarbeiter`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `adresse` int(11) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `adresse_mitarbeier` int(11) NOT NULL DEFAULT 0, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `ergebnis` text NOT NULL, + `betrag` decimal(10,2) DEFAULT NULL, + `erinnerung` datetime DEFAULT NULL, + `erinnerung_per_mail` int(1) DEFAULT NULL, + `erinnerung_empfaenger` text DEFAULT NULL, + `link` text DEFAULT NULL, + `module` varchar(255) DEFAULT NULL, + `action` varchar(255) DEFAULT NULL, + `status` varchar(64) DEFAULT NULL, + `bearbeiter` int(11) NOT NULL DEFAULT 0, + `adresse_mitarbeiter` int(11) NOT NULL DEFAULT 0, + `datum_angelegt` date DEFAULT NULL, + `zeit_angelegt` time DEFAULT NULL, + `datum_erinnerung` date DEFAULT NULL, + `zeit_erinnerung` time DEFAULT NULL, + `parameter` int(11) NOT NULL DEFAULT 0, + `oeffentlich` tinyint(1) NOT NULL DEFAULT 0, + `abgeschlossen` tinyint(1) NOT NULL DEFAULT 0, + `ansprechpartner_id` int(11) NOT NULL DEFAULT 0, + `subproject_id` int(11) NOT NULL DEFAULT 0, + `chance` int(3) DEFAULT NULL, + `datum_abschluss` date DEFAULT NULL, + `datum_status` date DEFAULT NULL, + `prio` tinyint(1) NOT NULL DEFAULT 0, + `stages` int(11) NOT NULL DEFAULT 0, + `color` varchar(64) NOT NULL DEFAULT '#a2d624', + PRIMARY KEY (`id`), + KEY `adresse` (`adresse`), + KEY `adresse_mitarbeiter` (`adresse_mitarbeiter`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_aufgabe` -- +DROP TABLE IF EXISTS `wiedervorlage_aufgabe`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_aufgabe` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `resubmission_id` int(10) unsigned NOT NULL, - `task_id` int(10) unsigned NOT NULL, - `required_completion_stage_id` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `resubmission_task` (`resubmission_id`,`task_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_aufgabe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `resubmission_id` int(10) unsigned NOT NULL, + `task_id` int(10) unsigned NOT NULL, + `required_completion_stage_id` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `resubmission_task` (`resubmission_id`,`task_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_aufgabe_vorlage` -- +DROP TABLE IF EXISTS `wiedervorlage_aufgabe_vorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_aufgabe_vorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `required_from_stage_id` int(10) unsigned NOT NULL DEFAULT '0', - `add_task_at_stage_id` int(10) unsigned NOT NULL DEFAULT '0', - `employee_address_id` int(10) unsigned NOT NULL DEFAULT '0', - `project_id` int(10) unsigned NOT NULL DEFAULT '0', - `subproject_id` int(10) unsigned NOT NULL DEFAULT '0', - `title` varchar(255) NOT NULL DEFAULT '', - `submission_date_days` int(10) NOT NULL DEFAULT '0', - `submission_time` time NOT NULL, - `state` varchar(64) NOT NULL DEFAULT '', - `priority` varchar(64) NOT NULL DEFAULT '', - `description` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_aufgabe_vorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `required_from_stage_id` int(10) unsigned NOT NULL DEFAULT 0, + `add_task_at_stage_id` int(10) unsigned NOT NULL DEFAULT 0, + `employee_address_id` int(10) unsigned NOT NULL DEFAULT 0, + `project_id` int(10) unsigned NOT NULL DEFAULT 0, + `subproject_id` int(10) unsigned NOT NULL DEFAULT 0, + `title` varchar(255) NOT NULL, + `submission_date_days` int(10) NOT NULL DEFAULT 0, + `submission_time` time NOT NULL, + `state` varchar(64) NOT NULL, + `priority` varchar(64) NOT NULL, + `description` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_board_member` -- +DROP TABLE IF EXISTS `wiedervorlage_board_member`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_board_member` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `board_id` int(10) unsigned NOT NULL, - `user_id` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_board_member` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `board_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_freifeld_inhalt` -- +DROP TABLE IF EXISTS `wiedervorlage_freifeld_inhalt`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_freifeld_inhalt` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `resubmission_id` int(10) unsigned NOT NULL, - PRIMARY KEY (`id`), - KEY `resubmission_id` (`resubmission_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_freifeld_inhalt` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `resubmission_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + KEY `resubmission_id` (`resubmission_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_freifeld_konfiguration` -- +DROP TABLE IF EXISTS `wiedervorlage_freifeld_konfiguration`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_freifeld_konfiguration` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(64) NOT NULL DEFAULT '', - `available_from_stage_id` int(10) unsigned NOT NULL DEFAULT '0', - `required_from_stage_id` int(10) unsigned NOT NULL DEFAULT '0', - `show_in_pipeline` tinyint(1) unsigned NOT NULL DEFAULT '0', - `show_in_tables` tinyint(1) unsigned NOT NULL DEFAULT '0', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_freifeld_konfiguration` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `title` varchar(64) NOT NULL, + `available_from_stage_id` int(10) unsigned NOT NULL DEFAULT 0, + `required_from_stage_id` int(10) unsigned NOT NULL DEFAULT 0, + `show_in_pipeline` tinyint(1) unsigned NOT NULL DEFAULT 0, + `show_in_tables` tinyint(1) unsigned NOT NULL DEFAULT 0, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_protokoll` -- +DROP TABLE IF EXISTS `wiedervorlage_protokoll`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_protokoll` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vorgaengerid` int(11) DEFAULT NULL, - `wiedervorlageid` int(11) DEFAULT NULL, - `adresse_mitarbeier` int(11) NOT NULL DEFAULT '0', - `erinnerung_alt` datetime DEFAULT NULL, - `erinnerung_neu` datetime DEFAULT NULL, - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `beschreibung` text NOT NULL, - `ergebnis` text NOT NULL, - `adresse_mitarbeiter` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `wiedervorlageid` (`wiedervorlageid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_protokoll` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `vorgaengerid` int(11) DEFAULT NULL, + `wiedervorlageid` int(11) DEFAULT NULL, + `adresse_mitarbeier` int(11) NOT NULL DEFAULT 0, + `erinnerung_alt` datetime DEFAULT NULL, + `erinnerung_neu` datetime DEFAULT NULL, + `bezeichnung` varchar(255) NOT NULL, + `beschreibung` text NOT NULL, + `ergebnis` text NOT NULL, + `adresse_mitarbeiter` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `wiedervorlageid` (`wiedervorlageid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_stages` -- +DROP TABLE IF EXISTS `wiedervorlage_stages`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_stages` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `kurzbezeichnung` varchar(64) NOT NULL, - `name` varchar(64) NOT NULL, - `hexcolor` varchar(7) NOT NULL DEFAULT '#A2D624', - `ausblenden` int(1) NOT NULL, - `stageausblenden` int(1) NOT NULL, - `sort` int(11) NOT NULL, - `view` int(11) NOT NULL DEFAULT '0', - `chance` int(3) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_stages` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `kurzbezeichnung` varchar(64) NOT NULL, + `name` varchar(64) NOT NULL, + `hexcolor` varchar(7) NOT NULL DEFAULT '#a2d624', + `ausblenden` int(1) NOT NULL, + `stageausblenden` int(1) NOT NULL, + `sort` int(11) NOT NULL, + `view` int(11) NOT NULL DEFAULT 0, + `chance` int(3) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_timeline` -- +DROP TABLE IF EXISTS `wiedervorlage_timeline`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_timeline` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wiedervorlage` int(11) NOT NULL, - `adresse_mitarbeiter` int(11) NOT NULL, - `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `content` text NOT NULL, - `css` varchar(64) NOT NULL, - `color` varchar(64) NOT NULL, - `fix` int(11) NOT NULL, - `user` int(11) NOT NULL DEFAULT '0', - `stage` int(11) NOT NULL DEFAULT '0', - `leadtype` varchar(64) NOT NULL DEFAULT '', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_timeline` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `wiedervorlage` int(11) NOT NULL, + `adresse_mitarbeiter` int(11) NOT NULL, + `time` timestamp NOT NULL DEFAULT current_timestamp(), + `content` text NOT NULL, + `css` varchar(64) NOT NULL, + `color` varchar(64) NOT NULL, + `fix` int(11) NOT NULL, + `user` int(11) NOT NULL DEFAULT 0, + `stage` int(11) NOT NULL DEFAULT 0, + `leadtype` varchar(64) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_view` -- +DROP TABLE IF EXISTS `wiedervorlage_view`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_view` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `shortname` varchar(64) NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '0', - `project` int(11) NOT NULL DEFAULT '0', - `hide_collection_stage` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_view` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `shortname` varchar(64) NOT NULL, + `active` tinyint(1) NOT NULL DEFAULT 0, + `project` int(11) NOT NULL DEFAULT 0, + `hide_collection_stage` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiedervorlage_zu_aufgabe_vorlage` -- +DROP TABLE IF EXISTS `wiedervorlage_zu_aufgabe_vorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiedervorlage_zu_aufgabe_vorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wiedervorlage_id` int(10) unsigned NOT NULL DEFAULT '0', - `aufgabe_vorlage_id` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiedervorlage_zu_aufgabe_vorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `wiedervorlage_id` int(10) unsigned NOT NULL DEFAULT 0, + `aufgabe_vorlage_id` int(10) unsigned NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiki` -- +DROP TABLE IF EXISTS `wiki`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiki` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) DEFAULT NULL, - `content` longtext NOT NULL, - `lastcontent` text, - `wiki_workspace_id` int(11) NOT NULL DEFAULT '0', - `parent_id` int(11) NOT NULL DEFAULT '0', - `language` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=302 DEFAULT CHARSET=utf8; +CREATE TABLE `wiki` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) DEFAULT NULL, + `content` longtext NOT NULL, + `lastcontent` text DEFAULT NULL, + `wiki_workspace_id` int(11) NOT NULL DEFAULT 0, + `parent_id` int(11) NOT NULL DEFAULT 0, + `language` varchar(32) NOT NULL, + PRIMARY KEY (`id`), + KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=302 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiki_changelog` -- +DROP TABLE IF EXISTS `wiki_changelog`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiki_changelog` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wiki_id` int(11) NOT NULL DEFAULT '0', - `comment` varchar(255) NOT NULL DEFAULT '', - `created_by` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `content` text, - `notify` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`), - KEY `wiki_id` (`wiki_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiki_changelog` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `wiki_id` int(11) NOT NULL DEFAULT 0, + `comment` varchar(255) NOT NULL, + `created_by` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp(), + `content` text DEFAULT NULL, + `notify` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `wiki_id` (`wiki_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiki_faq` -- +DROP TABLE IF EXISTS `wiki_faq`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiki_faq` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wiki_id` int(11) NOT NULL DEFAULT '0', - `question` text, - `answer` text, - `created_by` varchar(255) NOT NULL DEFAULT '', - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (`id`), - KEY `wiki_id` (`wiki_id`) -) ENGINE=InnoDB AUTO_INCREMENT=343 DEFAULT CHARSET=utf8; +CREATE TABLE `wiki_faq` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `wiki_id` int(11) NOT NULL DEFAULT 0, + `question` text DEFAULT NULL, + `answer` text DEFAULT NULL, + `created_by` varchar(255) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`), + KEY `wiki_id` (`wiki_id`) +) ENGINE=InnoDB AUTO_INCREMENT=343 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiki_subscription` -- +DROP TABLE IF EXISTS `wiki_subscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiki_subscription` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wiki_id` int(11) NOT NULL DEFAULT '0', - `user_id` int(11) NOT NULL DEFAULT '0', - `active` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`), - KEY `wiki_id` (`wiki_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wiki_subscription` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `wiki_id` int(11) NOT NULL DEFAULT 0, + `user_id` int(11) NOT NULL DEFAULT 0, + `active` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `wiki_id` (`wiki_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wiki_workspace` -- +DROP TABLE IF EXISTS `wiki_workspace`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wiki_workspace` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '', - `foldername` varchar(255) NOT NULL DEFAULT '', - `description` text, - `savein` varchar(32) NOT NULL DEFAULT '', - `active` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +CREATE TABLE `wiki_workspace` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `foldername` varchar(255) NOT NULL, + `description` text DEFAULT NULL, + `savein` varchar(32) NOT NULL, + `active` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wizard` -- +DROP TABLE IF EXISTS `wizard`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wizard` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL DEFAULT '0', - `key` varchar(32) NOT NULL DEFAULT '', - `title` varchar(64) NOT NULL DEFAULT '', - `skip_link_text` varchar(64) DEFAULT NULL, - `params` varchar(512) DEFAULT NULL, - `options` varchar(512) DEFAULT NULL, - `active` tinyint(1) NOT NULL DEFAULT '1', - `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `user_id` (`user_id`,`key`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wizard` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL DEFAULT 0, + `key` varchar(32) NOT NULL, + `title` varchar(64) NOT NULL, + `skip_link_text` varchar(64) DEFAULT NULL, + `params` varchar(512) DEFAULT NULL, + `options` varchar(512) DEFAULT NULL, + `active` tinyint(1) NOT NULL DEFAULT 1, + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + UNIQUE KEY `user_id` (`user_id`,`key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `wizard_step` -- +DROP TABLE IF EXISTS `wizard_step`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `wizard_step` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `wizard_id` int(11) NOT NULL DEFAULT '0', - `key` varchar(32) NOT NULL DEFAULT '', - `link` varchar(255) NOT NULL DEFAULT '', - `title` varchar(64) NOT NULL DEFAULT '', - `caption` varchar(255) DEFAULT NULL, - `description` text NOT NULL, - `options` varchar(512) DEFAULT NULL, - `position` tinyint(3) NOT NULL DEFAULT '0', - `checked` tinyint(1) NOT NULL DEFAULT '0', - `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`), - UNIQUE KEY `wizard_id` (`wizard_id`,`key`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `wizard_step` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `wizard_id` int(11) NOT NULL DEFAULT 0, + `key` varchar(32) NOT NULL, + `link` varchar(255) NOT NULL, + `title` varchar(64) NOT NULL, + `caption` varchar(255) DEFAULT NULL, + `description` text NOT NULL, + `options` varchar(512) DEFAULT NULL, + `position` tinyint(3) NOT NULL DEFAULT 0, + `checked` tinyint(1) NOT NULL DEFAULT 0, + `created_at` datetime NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`), + UNIQUE KEY `wizard_id` (`wizard_id`,`key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zahlungsavis` -- +DROP TABLE IF EXISTS `zahlungsavis`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zahlungsavis` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `datum` date DEFAULT NULL, - `adresse` int(11) NOT NULL DEFAULT '0', - `versendet` tinyint(1) NOT NULL DEFAULT '0', - `versendet_am` date DEFAULT NULL, - `versendet_per` varchar(64) NOT NULL DEFAULT '', - `ersteller` varchar(64) NOT NULL DEFAULT '', - `bic` varchar(64) NOT NULL DEFAULT '', - `iban` varchar(64) NOT NULL DEFAULT '', - `projekt` int(11) NOT NULL DEFAULT '0', - `bemerkung` varchar(255) NOT NULL DEFAULT '', - `dta_datei` int(11) NOT NULL DEFAULT '0', - `betrag` decimal(10,2) NOT NULL DEFAULT '0.00', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zahlungsavis` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `datum` date DEFAULT NULL, + `adresse` int(11) NOT NULL DEFAULT 0, + `versendet` tinyint(1) NOT NULL DEFAULT 0, + `versendet_am` date DEFAULT NULL, + `versendet_per` varchar(64) NOT NULL, + `ersteller` varchar(64) NOT NULL, + `bic` varchar(64) NOT NULL, + `iban` varchar(64) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `bemerkung` varchar(255) NOT NULL, + `dta_datei` int(11) NOT NULL DEFAULT 0, + `betrag` decimal(10,2) NOT NULL DEFAULT 0.00, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zahlungsavis_gutschrift` -- +DROP TABLE IF EXISTS `zahlungsavis_gutschrift`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zahlungsavis_gutschrift` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zahlungsavis` int(11) NOT NULL DEFAULT '0', - `gutschrift` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zahlungsavis_gutschrift` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `zahlungsavis` int(11) NOT NULL DEFAULT 0, + `gutschrift` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zahlungsavis_mailausgang` -- +DROP TABLE IF EXISTS `zahlungsavis_mailausgang`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zahlungsavis_mailausgang` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `avis_id` int(11) NOT NULL, - `versendet` int(2) NOT NULL DEFAULT '0', - `versucht` int(11) NOT NULL DEFAULT '0', - `zeitstempel` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zahlungsavis_mailausgang` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `avis_id` int(11) NOT NULL, + `versendet` int(2) NOT NULL DEFAULT 0, + `versucht` int(11) NOT NULL DEFAULT 0, + `zeitstempel` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zahlungsavis_rechnung` -- +DROP TABLE IF EXISTS `zahlungsavis_rechnung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zahlungsavis_rechnung` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `zahlungsavis` int(11) NOT NULL DEFAULT '0', - `rechnung` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zahlungsavis_rechnung` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `zahlungsavis` int(11) NOT NULL DEFAULT 0, + `rechnung` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zahlungsweisen` -- +DROP TABLE IF EXISTS `zahlungsweisen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zahlungsweisen` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(255) NOT NULL DEFAULT '', - `bezeichnung` varchar(255) NOT NULL DEFAULT '', - `freitext` text NOT NULL, - `aktiv` tinyint(1) NOT NULL DEFAULT '1', - `geloescht` tinyint(1) NOT NULL DEFAULT '0', - `automatischbezahlt` tinyint(1) NOT NULL DEFAULT '0', - `automatischbezahltverbindlichkeit` tinyint(1) NOT NULL DEFAULT '0', - `projekt` int(11) NOT NULL DEFAULT '0', - `vorkasse` tinyint(1) NOT NULL DEFAULT '0', - `verhalten` varchar(64) NOT NULL DEFAULT 'vorkasse', - `modul` varchar(64) NOT NULL DEFAULT '', - `einstellungen_json` text NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; +CREATE TABLE `zahlungsweisen` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `type` varchar(255) NOT NULL, + `bezeichnung` varchar(255) NOT NULL, + `freitext` text NOT NULL, + `aktiv` tinyint(1) NOT NULL DEFAULT 1, + `geloescht` tinyint(1) NOT NULL DEFAULT 0, + `automatischbezahlt` tinyint(1) NOT NULL DEFAULT 0, + `automatischbezahltverbindlichkeit` tinyint(1) NOT NULL DEFAULT 0, + `projekt` int(11) NOT NULL DEFAULT 0, + `vorkasse` tinyint(1) NOT NULL DEFAULT 0, + `verhalten` varchar(64) NOT NULL DEFAULT 'vorkasse', + `modul` varchar(64) NOT NULL, + `einstellungen_json` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zeiterfassung` -- +DROP TABLE IF EXISTS `zeiterfassung`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zeiterfassung` ( - `id` int(10) NOT NULL AUTO_INCREMENT, - `art` varchar(64) NOT NULL, - `adresse` int(10) NOT NULL, - `von` datetime NOT NULL, - `bis` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `aufgabe` varchar(255) NOT NULL, - `beschreibung` text CHARACTER SET utf8 COLLATE utf8_unicode_ci, - `arbeitspaket` int(10) NOT NULL, - `buchungsart` varchar(255) NOT NULL, - `kostenstelle` varchar(255) NOT NULL, - `projekt` int(10) DEFAULT '0', - `abgerechnet` int(10) NOT NULL, - `logdatei` datetime NOT NULL, - `status` varchar(64) DEFAULT NULL, - `gps` varchar(1024) DEFAULT NULL, - `arbeitsnachweispositionid` int(11) NOT NULL DEFAULT '0', - `adresse_abrechnung` int(11) DEFAULT NULL, - `abrechnen` int(1) DEFAULT NULL, - `ist_abgerechnet` int(1) DEFAULT NULL, - `gebucht_von_user` int(11) DEFAULT NULL, - `ort` varchar(1024) DEFAULT NULL, - `abrechnung_dokument` varchar(1024) DEFAULT NULL, - `dokumentid` int(11) DEFAULT NULL, - `verrechnungsart` varchar(255) DEFAULT NULL, - `arbeitsnachweis` int(11) DEFAULT NULL, - `internerkommentar` text, - `aufgabe_id` int(11) NOT NULL DEFAULT '0', - `auftrag` int(11) NOT NULL DEFAULT '0', - `auftragpositionid` int(11) NOT NULL DEFAULT '0', - `produktion` int(11) NOT NULL DEFAULT '0', - `stundensatz` decimal(5,2) NOT NULL DEFAULT '0.00', - `arbeitsanweisung` int(11) NOT NULL DEFAULT '0', - `serviceauftrag` int(11) NOT NULL DEFAULT '0', - `anz_mitarbeiter` int(11) NOT NULL DEFAULT '1', - PRIMARY KEY (`id`), - KEY `adresse_abrechnung` (`adresse_abrechnung`), - KEY `abgerechnet` (`abgerechnet`), - KEY `abrechnen` (`abrechnen`), - KEY `adresse` (`adresse`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zeiterfassung` ( + `id` int(10) NOT NULL AUTO_INCREMENT, + `art` varchar(64) NOT NULL, + `adresse` int(10) NOT NULL, + `von` datetime NOT NULL, + `bis` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `aufgabe` varchar(255) NOT NULL, + `beschreibung` text DEFAULT NULL, + `arbeitspaket` int(10) NOT NULL, + `buchungsart` varchar(255) NOT NULL, + `kostenstelle` varchar(255) NOT NULL, + `projekt` int(10) DEFAULT 0, + `abgerechnet` int(10) NOT NULL, + `logdatei` datetime NOT NULL, + `status` varchar(64) DEFAULT NULL, + `gps` varchar(1024) DEFAULT NULL, + `arbeitsnachweispositionid` int(11) NOT NULL DEFAULT 0, + `adresse_abrechnung` int(11) DEFAULT NULL, + `abrechnen` int(1) DEFAULT NULL, + `ist_abgerechnet` int(1) DEFAULT NULL, + `gebucht_von_user` int(11) DEFAULT NULL, + `ort` varchar(1024) DEFAULT NULL, + `abrechnung_dokument` varchar(1024) DEFAULT NULL, + `dokumentid` int(11) DEFAULT NULL, + `verrechnungsart` varchar(255) DEFAULT NULL, + `arbeitsnachweis` int(11) DEFAULT NULL, + `internerkommentar` text DEFAULT NULL, + `aufgabe_id` int(11) NOT NULL DEFAULT 0, + `auftrag` int(11) NOT NULL DEFAULT 0, + `auftragpositionid` int(11) NOT NULL DEFAULT 0, + `produktion` int(11) NOT NULL DEFAULT 0, + `stundensatz` decimal(5,2) NOT NULL DEFAULT 0.00, + `arbeitsanweisung` int(11) NOT NULL DEFAULT 0, + `serviceauftrag` int(11) NOT NULL DEFAULT 0, + `anz_mitarbeiter` int(11) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `adresse_abrechnung` (`adresse_abrechnung`), + KEY `abgerechnet` (`abgerechnet`), + KEY `abrechnen` (`abrechnen`), + KEY `adresse` (`adresse`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zeiterfassungvorlage` -- +DROP TABLE IF EXISTS `zeiterfassungvorlage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zeiterfassungvorlage` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vorlage` varchar(255) NOT NULL DEFAULT '', - `ausblenden` tinyint(1) NOT NULL DEFAULT '0', - `vorlagedetail` text NOT NULL, - `art` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL DEFAULT '0', - `teilprojekt` int(11) NOT NULL DEFAULT '0', - `kunde` int(11) NOT NULL DEFAULT '0', - `abrechnen` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zeiterfassungvorlage` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `vorlage` varchar(255) NOT NULL, + `ausblenden` tinyint(1) NOT NULL DEFAULT 0, + `vorlagedetail` text NOT NULL, + `art` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL DEFAULT 0, + `teilprojekt` int(11) NOT NULL DEFAULT 0, + `kunde` int(11) NOT NULL DEFAULT 0, + `abrechnen` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zertifikatgenerator` -- +DROP TABLE IF EXISTS `zertifikatgenerator`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zertifikatgenerator` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `artikel` int(11) NOT NULL DEFAULT '0', - `beschreibung_deutsch` text NOT NULL, - `beschreibung_englisch` text NOT NULL, - `bestell_anmerkung_deutsch` text NOT NULL, - `bestell_anmerkung_englisch` text NOT NULL, - `interne_anmerkung` text NOT NULL, - `unterschrift` tinyint(1) NOT NULL DEFAULT '0', - `dateofsale_stamp` tinyint(1) NOT NULL DEFAULT '0', - `preisfaktor` decimal(10,2) NOT NULL DEFAULT '0.00', - `kurs_usd` decimal(10,2) NOT NULL DEFAULT '0.00', - `typ` int(11) NOT NULL DEFAULT '1', - `typ_text` text NOT NULL, - `adresse_kunde` int(11) NOT NULL DEFAULT '0', - `adresse_absender` text NOT NULL, - `layout` int(11) NOT NULL DEFAULT '0', - `zertifikate` tinyint(1) NOT NULL DEFAULT '1', - `preis_eur` varchar(128) NOT NULL DEFAULT '', - `preis_usd` varchar(128) NOT NULL DEFAULT '', - `erstellt_datum` date DEFAULT NULL, - `bearbeiter` varchar(128) NOT NULL DEFAULT '', - `preis_eur_retail` varchar(128) NOT NULL DEFAULT '', - `datei` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zertifikatgenerator` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `artikel` int(11) NOT NULL DEFAULT 0, + `beschreibung_deutsch` text NOT NULL, + `beschreibung_englisch` text NOT NULL, + `bestell_anmerkung_deutsch` text NOT NULL, + `bestell_anmerkung_englisch` text NOT NULL, + `interne_anmerkung` text NOT NULL, + `unterschrift` tinyint(1) NOT NULL DEFAULT 0, + `dateofsale_stamp` tinyint(1) NOT NULL DEFAULT 0, + `preisfaktor` decimal(10,2) NOT NULL DEFAULT 0.00, + `kurs_usd` decimal(10,2) NOT NULL DEFAULT 0.00, + `typ` int(11) NOT NULL DEFAULT 1, + `typ_text` text NOT NULL, + `adresse_kunde` int(11) NOT NULL DEFAULT 0, + `adresse_absender` text NOT NULL, + `layout` int(11) NOT NULL DEFAULT 0, + `zertifikate` tinyint(1) NOT NULL DEFAULT 1, + `preis_eur` varchar(128) NOT NULL, + `preis_usd` varchar(128) NOT NULL, + `erstellt_datum` date DEFAULT NULL, + `bearbeiter` varchar(128) NOT NULL, + `preis_eur_retail` varchar(128) NOT NULL, + `datei` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zolltarifnummer` -- +DROP TABLE IF EXISTS `zolltarifnummer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zolltarifnummer` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `nummer` varchar(255) DEFAULT NULL, - `beschreibung` varchar(512) DEFAULT NULL, - `internebemerkung` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zolltarifnummer` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `nummer` varchar(255) DEFAULT NULL, + `beschreibung` varchar(512) DEFAULT NULL, + `internebemerkung` text DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zwischenlager` -- +DROP TABLE IF EXISTS `zwischenlager`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `zwischenlager` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `bearbeiter` varchar(255) NOT NULL, - `projekt` int(11) NOT NULL, - `artikel` int(11) NOT NULL, - `menge` decimal(14,4) NOT NULL, - `vpe` varchar(255) NOT NULL, - `grund` varchar(255) NOT NULL, - `lager_von` varchar(255) NOT NULL, - `lager_nach` varchar(255) NOT NULL, - `richtung` varchar(255) NOT NULL, - `erledigt` int(1) NOT NULL, - `objekt` varchar(255) NOT NULL, - `parameter` varchar(255) NOT NULL, - `firma` int(11) NOT NULL, - `logdatei` datetime NOT NULL, - `paketannahme` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `zwischenlager` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `bearbeiter` varchar(255) NOT NULL, + `projekt` int(11) NOT NULL, + `artikel` int(11) NOT NULL, + `menge` decimal(14,4) NOT NULL, + `vpe` varchar(255) NOT NULL, + `grund` varchar(255) NOT NULL, + `lager_von` varchar(255) NOT NULL, + `lager_nach` varchar(255) NOT NULL, + `richtung` varchar(255) NOT NULL, + `erledigt` int(1) NOT NULL, + `objekt` varchar(255) NOT NULL, + `parameter` varchar(255) NOT NULL, + `firma` int(11) NOT NULL, + `logdatei` datetime NOT NULL, + `paketannahme` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Final view structure for view `belege` +-- + +/*!50001 DROP VIEW IF EXISTS `belege`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`openxe`@`localhost` SQL SECURITY DEFINER */ +/*!50001 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' */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `belegegesamt` +-- + +/*!50001 DROP VIEW IF EXISTS `belegegesamt`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`openxe`@`localhost` SQL SECURITY DEFINER */ +/*!50001 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` */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `belegeregs` +-- + +/*!50001 DROP VIEW IF EXISTS `belegeregs`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`openxe`@`localhost` SQL SECURITY DEFINER */ +/*!50001 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` */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `fibu_buchungen_alle_view` +-- + +/*!50001 DROP VIEW IF EXISTS `fibu_buchungen_alle_view`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`openxe`@`localhost` SQL SECURITY DEFINER */ +/*!50001 VIEW `fibu_buchungen_alle_view` AS select `fb`.`buchungsart` AS `buchungsart`,`fb`.`typ` AS `typ`,`fb`.`id` AS `id`,if(`fibu_objekte_view`.`datum` <> '',`fibu_objekte_view`.`datum`,`fb`.`datum`) AS `datum`,`fb`.`gegen_typ` AS `doc_typ`,`fb`.`gegen_id` AS `doc_id`,`fibu_objekte_view`.`info` AS `doc_info`,cast(`fb`.`soll` as decimal(10,2)) AS `betrag`,`fb`.`waehrung` AS `waehrung`,`fb`.`edit_module` AS `edit_module`,`fb`.`edit_id` AS `edit_id` from ((select 'umsatz' AS `buchungsart`,'rechnung' AS `typ`,`rechnung`.`id` AS `id`,-`rechnung`.`soll` AS `soll`,`rechnung`.`waehrung` AS `waehrung`,'rechnung' AS `gegen_typ`,`rechnung`.`id` AS `gegen_id`,`rechnung`.`datum` AS `datum`,'rechnung' AS `edit_module`,`rechnung`.`id` AS `edit_id` from `rechnung` where `rechnung`.`belegnr` <> '' union select 'umsatz' AS `umsatz`,'gutschrift' AS `gutschrift`,`gutschrift`.`id` AS `id`,`gutschrift`.`soll` AS `soll`,`gutschrift`.`waehrung` AS `waehrung`,'gutschrift' AS `gutschrift`,`gutschrift`.`id` AS `id`,`gutschrift`.`datum` AS `datum`,'gutschrift' AS `edit_module`,`gutschrift`.`id` AS `id` from `gutschrift` where `gutschrift`.`belegnr` <> '' union select 'aufwand' AS `aufwand`,'verbindlichkeit' AS `verbindlichkeit`,`verbindlichkeit`.`id` AS `id`,`verbindlichkeit`.`betrag` AS `betrag`,`verbindlichkeit`.`waehrung` AS `waehrung`,'verbindlichkeit' AS `verbindlichkeit`,`verbindlichkeit`.`id` AS `id`,`verbindlichkeit`.`rechnungsdatum` AS `rechnungsdatum`,'verbindlichkeit' AS `verbindlichkeit`,`verbindlichkeit`.`id` AS `id` from `verbindlichkeit` where `verbindlichkeit`.`belegnr` <> '' union select 'zahlung' AS `zahlung`,'kontoauszuege' AS `kontoauszuege`,`kontoauszuege`.`id` AS `id`,`kontoauszuege`.`soll` AS `soll`,`kontoauszuege`.`waehrung` AS `waehrung`,'kontoauszuege' AS `kontoauszuege`,`kontoauszuege`.`id` AS `id`,`kontoauszuege`.`buchung` AS `buchung`,'kontoauszuege' AS `kontoauszuege`,`kontoauszuege`.`id` AS `id` from `kontoauszuege` where `kontoauszuege`.`importfehler` is null union select 'abbuchung' AS `abbuchung`,`fibu_buchungen`.`von_typ` AS `von_typ`,`fibu_buchungen`.`von_id` AS `von_id`,`fibu_buchungen`.`betrag` AS `betrag`,`fibu_buchungen`.`waehrung` AS `waehrung`,`fibu_buchungen`.`nach_typ` AS `nach_typ`,`fibu_buchungen`.`nach_id` AS `nach_id`,`fibu_buchungen`.`datum` AS `datum`,'fibu_buchungen' AS `fibu_buchungen`,`fibu_buchungen`.`id` AS `id` from `fibu_buchungen` union select 'zubuchung' AS `zubuchung`,`fibu_buchungen`.`nach_typ` AS `nach_typ`,`fibu_buchungen`.`nach_id` AS `nach_id`,-`fibu_buchungen`.`betrag` AS `-``openxe``.``fibu_buchungen``.``betrag```,`fibu_buchungen`.`waehrung` AS `waehrung`,`fibu_buchungen`.`von_typ` AS `von_typ`,`fibu_buchungen`.`von_id` AS `von_id`,`fibu_buchungen`.`datum` AS `datum`,'fibu_buchungen' AS `fibu_buchungen`,`fibu_buchungen`.`id` AS `id` from `fibu_buchungen`) `fb` left join `fibu_objekte_view` on(`fb`.`gegen_typ` = `fibu_objekte_view`.`typ` and `fb`.`gegen_id` = `fibu_objekte_view`.`id`)) where `fb`.`datum` >= (select `firmendaten_werte`.`wert` from `firmendaten_werte` where `firmendaten_werte`.`name` = 'fibu_buchungen_startdatum') and `fibu_objekte_view`.`datum` >= (select `firmendaten_werte`.`wert` from `firmendaten_werte` where `firmendaten_werte`.`name` = 'fibu_buchungen_startdatum') or `fibu_objekte_view`.`datum` = '' */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; + +-- +-- Final view structure for view `fibu_objekte_view` +-- + +/*!50001 DROP VIEW IF EXISTS `fibu_objekte_view`*/; +/*!50001 SET @saved_cs_client = @@character_set_client */; +/*!50001 SET @saved_cs_results = @@character_set_results */; +/*!50001 SET @saved_col_connection = @@collation_connection */; +/*!50001 SET character_set_client = utf8mb4 */; +/*!50001 SET character_set_results = utf8mb4 */; +/*!50001 SET collation_connection = utf8mb4_general_ci */; +/*!50001 CREATE ALGORITHM=UNDEFINED */ +/*!50013 DEFINER=`openxe`@`localhost` SQL SECURITY DEFINER */ +/*!50001 VIEW `fibu_objekte_view` AS select `fo`.`datum` AS `datum`,`fo`.`typ` AS `typ`,`fo`.`id` AS `id`,`fo`.`info` AS `info`,`fo`.`parent_typ` AS `parent_typ`,`fo`.`parent_id` AS `parent_id`,`fo`.`parent_info` AS `parent_info`,`fo`.`typ` in ('rechnung','gutschrift','verbindlichkeit','auftrag') AS `is_beleg` from (select `auftrag`.`datum` AS `datum`,'auftrag' AS `typ`,`auftrag`.`id` AS `id`,`auftrag`.`belegnr` AS `info`,'adresse' AS `parent_typ`,`auftrag`.`adresse` AS `parent_id`,`auftrag`.`name` AS `parent_info` from `auftrag` where `auftrag`.`belegnr` <> '' union select `rechnung`.`datum` AS `datum`,'rechnung' AS `typ`,`rechnung`.`id` AS `id`,`rechnung`.`belegnr` AS `info`,'adresse' AS `parent_type`,`rechnung`.`adresse` AS `parent_id`,`rechnung`.`name` AS `parent_info` from `rechnung` where `rechnung`.`belegnr` <> '' union select `gutschrift`.`datum` AS `datum`,'gutschrift' AS `gutschrift`,`gutschrift`.`id` AS `id`,`gutschrift`.`belegnr` AS `belegnr`,'adresse' AS `parent_type`,`gutschrift`.`adresse` AS `parent_id`,`gutschrift`.`name` AS `parent_info` from `gutschrift` where `gutschrift`.`belegnr` <> '' union select `verbindlichkeit`.`rechnungsdatum` AS `rechnungsdatum`,'verbindlichkeit' AS `verbindlichkeit`,`verbindlichkeit`.`id` AS `id`,`verbindlichkeit`.`rechnung` AS `belegnr`,'adresse' AS `parent_type`,`verbindlichkeit`.`adresse` AS `parent_id`,`adresse`.`name` AS `name` from (`verbindlichkeit` join `adresse` on(`verbindlichkeit`.`adresse` = `adresse`.`id`)) where `verbindlichkeit`.`belegnr` <> '' union select `kontoauszuege`.`buchung` AS `buchung`,'kontoauszuege' AS `kontoauszuege`,`kontoauszuege`.`id` AS `id`,concat(`konten`.`kurzbezeichnung`,' - ',`kontoauszuege`.`buchungstext`) AS `buchungstext`,'konten' AS `parent_type`,`kontoauszuege`.`konto` AS `parent_id`,`konten`.`bezeichnung` AS `bezeichnung` from (`kontoauszuege` left join `konten` on(`konten`.`id` = `kontoauszuege`.`konto`)) union select '' AS `datum`,'kontorahmen' AS `'kontorahmen'`,`kontorahmen`.`id` AS `id`,concat(`kontorahmen`.`sachkonto`,' - ',`kontorahmen`.`beschriftung`) AS `beschriftung`,'','','' from `kontorahmen`) `fo` where `fo`.`datum` >= (select `firmendaten_werte`.`wert` from `firmendaten_werte` where `firmendaten_werte`.`name` = 'fibu_buchungen_startdatum') or `fo`.`datum` = '' */; +/*!50001 SET character_set_client = @saved_cs_client */; +/*!50001 SET character_set_results = @saved_cs_results */; +/*!50001 SET collation_connection = @saved_col_connection */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; @@ -16355,7 +17444,9 @@ CREATE TABLE IF NOT EXISTS `zwischenlager` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2020-12-07 8:56:21 +-- Dump completed on 2024-03-05 12:22:40 + + INSERT INTO `adresse` (`id`, `typ`, `marketingsperre`, `trackingsperre`, `rechnungsadresse`, `sprache`, `name`, `abteilung`, `unterabteilung`, `ansprechpartner`, `land`, `strasse`, `ort`, `plz`, `telefon`, `telefax`, `mobil`, `email`, `ustid`, `ust_befreit`, `passwort_gesendet`, `sonstiges`, `adresszusatz`, `kundenfreigabe`, `steuer`, `logdatei`, `kundennummer`, `lieferantennummer`, `mitarbeiternummer`, `konto`, `blz`, `bank`, `inhaber`, `swift`, `iban`, `waehrung`, `paypal`, `paypalinhaber`, `paypalwaehrung`, `projekt`, `partner`, `zahlungsweise`, `zahlungszieltage`, `zahlungszieltageskonto`, `zahlungszielskonto`, `versandart`, `kundennummerlieferant`, `zahlungsweiselieferant`, `zahlungszieltagelieferant`, `zahlungszieltageskontolieferant`, `zahlungszielskontolieferant`, `versandartlieferant`, `geloescht`, `firma`, `webid`, `vorname`, `kennung`, `sachkonto`, `freifeld1`, `freifeld2`, `freifeld3`, `filiale`, `vertrieb`, `innendienst`, `verbandsnummer`, `abweichendeemailab`, `portofrei_aktiv`, `portofreiab`, `infoauftragserfassung`, `mandatsreferenz`, `mandatsreferenzdatum`, `mandatsreferenzaenderung`, `glaeubigeridentnr`, `kreditlimit`, `tour`, `zahlungskonditionen_festschreiben`, `rabatte_festschreiben`, `mlmaktiv`, `mlmvertragsbeginn`, `mlmlizenzgebuehrbis`, `mlmfestsetzenbis`, `mlmfestsetzen`, `mlmmindestpunkte`, `mlmwartekonto`, `abweichende_rechnungsadresse`, `rechnung_vorname`, `rechnung_name`, `rechnung_titel`, `rechnung_typ`, `rechnung_strasse`, `rechnung_ort`, `rechnung_plz`, `rechnung_ansprechpartner`, `rechnung_land`, `rechnung_abteilung`, `rechnung_unterabteilung`, `rechnung_adresszusatz`, `rechnung_telefon`, `rechnung_telefax`, `rechnung_anschreiben`, `rechnung_email`, `geburtstag`, `rolledatum`, `liefersperre`, `liefersperregrund`, `mlmpositionierung`, `steuernummer`, `steuerbefreit`, `mlmmitmwst`, `mlmabrechnung`, `mlmwaehrungauszahlung`, `mlmauszahlungprojekt`, `sponsor`, `geworbenvon`, `logfile`, `kalender_aufgaben`, `verrechnungskontoreisekosten`, `usereditid`, `useredittimestamp`, `rabatt`, `provision`, `rabattinformation`, `rabatt1`, `rabatt2`, `rabatt3`, `rabatt4`, `rabatt5`, `internetseite`, `bonus1`, `bonus1_ab`, `bonus2`, `bonus2_ab`, `bonus3`, `bonus3_ab`, `bonus4`, `bonus4_ab`, `bonus5`, `bonus5_ab`, `bonus6`, `bonus6_ab`, `bonus7`, `bonus7_ab`, `bonus8`, `bonus8_ab`, `bonus9`, `bonus9_ab`, `bonus10`, `bonus10_ab`, `rechnung_periode`, `rechnung_anzahlpapier`, `rechnung_permail`, `titel`, `anschreiben`, `nachname`, `arbeitszeitprowoche`, `folgebestaetigungsperre`, `lieferantennummerbeikunde`, `verein_mitglied_seit`, `verein_mitglied_bis`, `verein_mitglied_aktiv`, `verein_spendenbescheinigung`, `freifeld4`, `freifeld5`, `freifeld6`, `freifeld7`, `freifeld8`, `freifeld9`, `freifeld10`, `rechnung_papier`, `angebot_cc`, `auftrag_cc`, `rechnung_cc`, `gutschrift_cc`, `lieferschein_cc`, `bestellung_cc`, `angebot_fax_cc`, `auftrag_fax_cc`, `rechnung_fax_cc`, `gutschrift_fax_cc`, `lieferschein_fax_cc`, `bestellung_fax_cc`, `abperfax`, `abpermail`, `kassiereraktiv`, `kassierernummer`, `kassiererprojekt`, `portofreilieferant_aktiv`, `portofreiablieferant`, `mandatsreferenzart`, `mandatsreferenzwdhart`, `serienbrief`, `kundennummer_buchhaltung`, `lieferantennummer_buchhaltung`, `lead`, `zahlungsweiseabo`, `bundesland`, `mandatsreferenzhinweis`, `geburtstagkalender`, `geburtstagskarte`, `liefersperredatum`) VALUES (1, '', '', 0, 0, '', 'Administrator', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '', 0, '', '2015-10-26 14:19:35', '', '', '', '', '', '', '', '', '', '', '', '', '', 1, 0, '', '', '', '', '', '', '', '', '', '', '', 0, 1, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, '', '', NULL, 0, '', 0.00, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0.00, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 0, NULL, '0000-00-00 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0.00, 0, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '', '', '', '', '', '', '', '', '', '', '', '', 0, '', 0, '', 0, 0, 0.00, '', '', 0, '', '', 0, '', '', NULL, 0, 0, NULL); INSERT INTO `artikeleinheit` (`id`, `einheit_de`, `internebemerkung`) VALUES