Created
October 21, 2015 20:23
-
-
Save alexweissman/cd5c118188499e799653 to your computer and use it in GitHub Desktop.
New tables
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
-- | |
-- Table structure for table `uf_user` | |
-- | |
CREATE TABLE IF NOT EXISTS `uf_user` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`user_name` varchar(50) NOT NULL, | |
`display_name` varchar(50) NOT NULL, | |
`email` varchar(150) NOT NULL, | |
`title` varchar(150) NOT NULL, | |
`locale` varchar(10) NOT NULL DEFAULT 'en_US', | |
`primary_group_id` tinyint(1) NOT NULL DEFAULT '1', | |
`secret_token` varchar(32) NOT NULL, | |
`flag_verified` tinyint(1) NOT NULL DEFAULT '1', | |
`flag_enabled` tinyint(1) NOT NULL DEFAULT '1', | |
`flag_password_reset` tinyint(1) NOT NULL DEFAULT '0', | |
`created_at` timestamp NULL DEFAULT NULL, | |
`updated_at` timestamp NULL DEFAULT NULL, | |
`password` varchar(255) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; | |
-- | |
-- Table structure for table `uf_user_event` | |
-- | |
CREATE TABLE IF NOT EXISTS `uf_user_event` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`user_id` int(11) NOT NULL, | |
`event_type` varchar(255) NOT NULL, | |
`occurred_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`description` text NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment