<?php
/**
 * 888888ba                 dP  .88888.                    dP
 * 88    `8b                88 d8'   `88                   88
 * 88aaaa8P' .d8888b. .d888b88 88        .d8888b. .d8888b. 88  .dP  .d8888b.
 * 88   `8b. 88ooood8 88'  `88 88   YP88 88ooood8 88'  `"" 88888"   88'  `88
 * 88     88 88.  ... 88.  .88 Y8.   .88 88.  ... 88.  ... 88  `8b. 88.  .88
 * dP     dP `88888P' `88888P8  `88888'  `88888P' `88888P' dP   `YP `88888P'
 *
 *                          m a g n a l i s t e r
 *                                      boost your Online-Shop
 *
 * -----------------------------------------------------------------------------
 * $Id$
 *
 * (c) 2010 - 2015 RedGecko GmbH -- http://www.redgecko.de
 *     Released under the MIT License (Expat)
 * -----------------------------------------------------------------------------
 */

$queries = array();
$functions = array();

$queries[] = 'CREATE TABLE IF NOT EXISTS `' . TABLE_MAGNA_FYNDIQ_PROPERTIES . '` (
	`mpID` int(11) NOT NULL,
	`products_id` int(11) NOT NULL,
	`products_model` varchar(255) NOT NULL,
	`MarketplaceCategory` varchar(30) NOT NULL,
	`TopMarketplaceCategory` varchar(255) NOT NULL,
	`Title` varchar(40),
  	`Subtitle` varchar(60),
  	`Description` varchar(400),
  	`PictureUrl` text,
  	`Tax` decimal(15, 2),
  	`Brand` varchar(50),
  	`IdentifierType` varchar(10),
  	`IdentifierValue` varchar(50),
  	`Attributes` text,
	`Verified` enum("OK", "ERROR", "OPEN", "EMPTY") NOT NULL DEFAULT "OPEN",
	`PreparedTS` datetime NOT NULL DEFAULT \'0000-00-00 00:00:00\',
	PRIMARY KEY (`mpID`,`products_id`,`products_model`),
	KEY `mpID` (`mpID`),
	KEY `products_id` (`products_id`),
	KEY `products_model` (`products_model`)
)';