Skip to content

Instantly share code, notes, and snippets.

@lusis
Created June 30, 2010 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/458969 to your computer and use it in GitHub Desktop.
Save lusis/458969 to your computer and use it in GitHub Desktop.
CREATE TABLE `testers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(75) NOT NULL,
`email` varchar(75) NOT NULL,
`comments` text,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_testers_email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
CREATE TABLE `languages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_languages_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
CREATE TABLE `skills` (
`language_id` int(11) NOT NULL,
`tester_id` int(11) NOT NULL,
PRIMARY KEY (`language_id`,`tester_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment