From ed9cbf11e371842b96d6cf2d15d2d560c1acc9d8 Mon Sep 17 00:00:00 2001 From: Shashank Srivastava Date: Wed, 22 Feb 2017 10:17:13 +0100 Subject: [PATCH] Add files via upload Added SQL script to create table to hold Authentication data. --- gen_google_authentication_table.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gen_google_authentication_table.sql 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 ;