Skip to content

Instantly share code, notes, and snippets.

@Javlopez
Created November 10, 2011 02:31
Show Gist options
  • Save Javlopez/1353924 to your computer and use it in GitHub Desktop.
Save Javlopez/1353924 to your computer and use it in GitHub Desktop.
Database - Table users
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`email` varchar(127) NOT NULL,
`username` varchar(32) NOT NULL DEFAULT '',
`password` char(80) NOT NULL,
`token` char(80) NOT NULL DEFAULT '',
`logins` int(10) UNSIGNED NOT NULL DEFAULT '0',
`last_login` int(10) UNSIGNED,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment