5 lines
1.9 KiB
MySQL
Raw Normal View History

2016-05-17 15:54:37 +02:00
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_tpl` (`TPL_ID` INT UNSIGNED NOT NULL auto_increment, `SHOP_ID` TINYINT UNSIGNED NOT NULL, `TPL_TYPE` CHAR(30) NOT NULL, `TPL_DATA` text DEFAULT '', PRIMARY KEY (`TPL_ID`), INDEX `X_BTR_TYPE` (`TPL_TYPE`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_tpl_lang` (`TPG_ID` INT UNSIGNED NOT NULL, `TPG_ISO_LANG` CHAR(30) NOT NULL, `TPG_TITLE` VARCHAR(255) NOT NULL, PRIMARY KEY (`TPG_ID`,`TPG_ISO_LANG`), INDEX `X_BTR_ID` (`TPG_ID`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_order_discount` (`DISC_ID` INT UNSIGNED NOT NULL auto_increment, `SHOP_ID` TINYINT UNSIGNED NOT NULL DEFAULT '1', `DISC_ID_ORDER` INT UNSIGNED NOT NULL, `DISC_ID_ORDER_DETAIL` INT UNSIGNED NOT NULL, `DISC_TAX_EXCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `DISC_TAX_INCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `DISC_TAX_AMOUNT` DECIMAL(17,6) NOT NULL DEFAULT '0.00', PRIMARY KEY (`DISC_ID`), INDEX `X_BTR_ORDER` (`DISC_ID_ORDER`), INDEX `X_BTR_ORDER_DETAIL` (`DISC_ID_ORDER_DETAIL`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_order_wrapping` (`WRA_ID` INT UNSIGNED NOT NULL auto_increment, `SHOP_ID` TINYINT UNSIGNED NOT NULL DEFAULT '1', `WRA_ID_ORDER` INT UNSIGNED NOT NULL, `WRA_TAX_EXCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `WRA_TAX_INCL` DECIMAL(17,6) NOT NULL DEFAULT '0.00', `WRA_TAX_AMOUNT` DECIMAL(17,6) NOT NULL DEFAULT '0.00', PRIMARY KEY (`WRA_ID`), INDEX `X_BTR_ORDER` (`WRA_ID_ORDER`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_otpr_wholesale_price` (`WHP_ID` INT UNSIGNED NOT NULL auto_increment, `SHOP_ID` TINYINT UNSIGNED NOT NULL DEFAULT '1', `WHP_ID_ORDER` INT UNSIGNED NOT NULL, `WHP_ID_ORDER_DETAIL` INT UNSIGNED NOT NULL, `WHP_PRICE` DECIMAL(17,6) NOT NULL DEFAULT '0.00', PRIMARY KEY (`WHP_ID`), INDEX `X_BTR_ORDER` (`WHP_ID_ORDER`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;