Skip to content

Instantly share code, notes, and snippets.

@alexweissman
Created October 21, 2015 20:23
Show Gist options
  • Save alexweissman/cd5c118188499e799653 to your computer and use it in GitHub Desktop.
Save alexweissman/cd5c118188499e799653 to your computer and use it in GitHub Desktop.
New tables
--
-- 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