diff --git a/gen_google_authentication_table.sql b/gen_google_authentication_table.sql new file mode 100644 index 0000000..8be5cec --- /dev/null +++ b/gen_google_authentication_table.sql @@ -0,0 +1,12 @@ +CREATE TABLE IF NOT EXISTS `users` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(50) NOT NULL, + `email` varchar(60) NOT NULL, + `password` varchar(60) NOT NULL, + `social_id` varchar(100) NOT NULL, + `picture` varchar(250) NOT NULL, + `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`user_id`), + UNIQUE KEY `email` (`email`), + KEY `login` (`password`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;