text: -- phpMyAdmin SQL Dump
  -- version 3.4.11.1deb2+deb7u1
  -- http://www.phpmyadmin.net
  --
  -- Host: localhost
  -- Generation Time: Nov 14, 2014 at 07:43 PM
  -- Server version: 5.5.40
  -- PHP Version: 5.4.34-0+deb7u1
  
  SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+00:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8 */;
  
  --
  -- Database: `gdrive_teipir`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE IF NOT EXISTS `admin` (
    `user_id` mediumint(8) unsigned NOT NULL,
    `access_level` tinyint(4) NOT NULL DEFAULT '1',
    PRIMARY KEY (`user_id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE IF NOT EXISTS `user` (
    `user_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
    `google_id` decimal(21,0) NOT NULL,
    `google_email` varchar(255) NOT NULL,
    `academic_email` varchar(255) DEFAULT NULL,
    `verified` tinyint(1) unsigned NOT NULL DEFAULT '0',
    `approved` tinyint(1) unsigned NOT NULL DEFAULT '0',
    `token` char(32) DEFAULT NULL,
    PRIMARY KEY (`user_id`),
    UNIQUE KEY `google_id` (`google_id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `admin`
  --
  ALTER TABLE `admin`
    ADD CONSTRAINT `admin_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`);
  
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  