Skip to content

Instantly share code, notes, and snippets.

@kracekumar
Created March 10, 2011 19:09
Show Gist options
  • Save kracekumar/864688 to your computer and use it in GitHub Desktop.
Save kracekumar/864688 to your computer and use it in GitHub Desktop.
users | CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`admin` tinyint(1) DEFAULT NULL,
`student` tinyint(1) DEFAULT NULL,
`employee` tinyint(1) DEFAULT NULL,
`hashed_password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reset_password_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reset_password_code_until` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment