Skip to content

Instantly share code, notes, and snippets.

@hanafiah
Created March 2, 2015 07:18
Show Gist options
  • Save hanafiah/1e4e9ce04d81b98bab97 to your computer and use it in GitHub Desktop.
Save hanafiah/1e4e9ce04d81b98bab97 to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(32) NOT NULL,
`lastname` varchar(32) NOT NULL,
`email` varchar(32) NOT NULL,
`username` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment