Facebook
From Innocent Motmot, 1 Year ago, written in SQL.
This paste is a reply to Re: Query - SEPT1 from Harmless Motmot - go back
Embed
Viewing differences between Re: Query - SEPT1 and Re: Re: Query - SEPT1
CREATE TABLE `catalogue_shares` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `superagent_id` int(11) NOT NULL DEFAULT '0',
  `city` varchar(191) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `superagent_id` (`superagent_id`),
  KEY `city` (`city`),
  KEY `created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

CREATE TABLE `catalogue_share_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `catalogue_share_id` int(11) NOT NULL DEFAULT '0',
  `product_id` int(11) NOT NULL DEFAULT '0',
  `product_attribute_id` int(11) NOT NULL DEFAULT '0',
  `bundle_id` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `catalogue_share_id` (`catalogue_share_id`),
  KEY `product_id` (`product_id`),
  KEY `product_attribute_id` (`product_attribute_id`),
  KEY `bundle_id` (`bundle_id`),
  KEY `created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;


ALTER TABLE orders ADD is_routing tinyint DEFAULT 0 NOT NULL;