Created
February 4, 2010 15:50
-
-
Save walesmd/294774 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `accounts` ( | |
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
`email` varchar(120) 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