Skip to content

Instantly share code, notes, and snippets.

@htom78
Created January 21, 2016 06:34
Show Gist options
  • Save htom78/3eadfb877fdb1d3212c5 to your computer and use it in GitHub Desktop.
Save htom78/3eadfb877fdb1d3212c5 to your computer and use it in GitHub Desktop.
CREATE TABLE `flow_item` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`isp` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`province` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`discounts` varchar(256) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`type` smallint(3) NOT NULL DEFAULT '0',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `item_sku` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` int(11) NOT NULL,
`spec_id` int(11) NOT NULL,
`price` int(11) NOT NULL,
`sale_price` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `item_spec` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`flow_value` int(11) NOT NULL,
`spec_label` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `flow_provider` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` int(11) NOT NULL,
`provider_code` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`provider_name` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`provider_discount` tinyint(3) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment