Skip to content

Instantly share code, notes, and snippets.

@slywalker
Created March 9, 2010 03:16
Show Gist options
  • Save slywalker/326103 to your computer and use it in GitHub Desktop.
Save slywalker/326103 to your computer and use it in GitHub Desktop.
--
-- テーブルの構造 `posts_tags`
--
CREATE TABLE `posts_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`post_id` int(11) NOT NULL,
`tag_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `tag_id` (`tag_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