text: DROP TABLE IF EXISTS `carts`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `carts` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `profile_id` int(11) DEFAULT NULL,
    `order_id` int(11) DEFAULT NULL,
    `status` enum('active','inactive') NOT NULL DEFAULT 'active',
    `callback_validate` varchar(255) NOT NULL DEFAULT 'callbackCartsValidate',
    `callback_checkout` varchar(255) NOT NULL DEFAULT 'callbackCartsCheckout',
    `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`),
    KEY `PROFILE` (`profile_id`),
    CONSTRAINT `fk_carts_to_profiles` FOREIGN KEY (`profile_id`) REFERENCES `profiles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB AUTO_INCREMENT=10227 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  DROP TABLE IF EXISTS `carts_items`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `carts_items` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `cart_id` int(11) NOT NULL,
    `external_id` int(11) NOT NULL,
    `module` varchar(255) NOT NULL,
    `quantity` int(11) NOT NULL DEFAULT '1',
    `callback_info` varchar(255) NOT NULL DEFAULT 'callbackCartsItemsInfo',
    `added_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`),
    KEY `CART` (`cart_id`),
    CONSTRAINT `fk_carts_items_to_carts` FOREIGN KEY (`cart_id`) REFERENCES `carts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB AUTO_INCREMENT=436 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  DROP TABLE IF EXISTS `carts_items_options`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `carts_items_options` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `item_id` int(11) NOT NULL,
    `module` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `value` varchar(255) NOT NULL,
    `callback_info` varchar(255) NOT NULL DEFAULT 'callbackCartsItemsOptionsInfo',
    PRIMARY KEY (`id`),
    KEY `ITEM` (`item_id`),
    CONSTRAINT `fk_carts_items_options_to_items` FOREIGN KEY (`item_id`) REFERENCES `carts_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB AUTO_INCREMENT=284 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  