Skip to content

Instantly share code, notes, and snippets.

@walesmd
Created February 4, 2010 15:51
Show Gist options
  • Save walesmd/294777 to your computer and use it in GitHub Desktop.
Save walesmd/294777 to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS `accounts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`password_hash` varchar(40) NOT NULL,
`salt` varchar(7) NOT NULL,
`last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment