-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci_intro.sql
103 lines (86 loc) · 3.32 KB
/
ci_intro.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 22, 2013 at 08:31 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
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: `ci_intro`
--
-- --------------------------------------------------------
--
-- Table structure for table `events`
--
CREATE TABLE IF NOT EXISTS `events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` date NOT NULL,
`time` time NOT NULL,
`title` varchar(255) COLLATE utf8_bin NOT NULL,
`description` text COLLATE utf8_bin NOT NULL,
`user_id` int(11) NOT NULL,
`done` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `date` (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=133 ;
-- --------------------------------------------------------
--
-- Table structure for table `remembered`
--
CREATE TABLE IF NOT EXISTS `remembered` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(64) COLLATE utf8_bin NOT NULL,
`key` varchar(64) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `faster search` (`key`,`user`),
KEY `user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `unvalidated`
--
CREATE TABLE IF NOT EXISTS `unvalidated` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`password` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`f_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`l_name` varchar(64) NOT NULL,
`email` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`reg_ip` int(10) unsigned NOT NULL,
`reg_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`code` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(64) COLLATE utf8_bin NOT NULL,
`password` varchar(64) COLLATE utf8_bin NOT NULL,
`f_name` varchar(64) COLLATE utf8_bin NOT NULL,
`l_name` varchar(64) COLLATE utf8_bin NOT NULL,
`email` varchar(128) COLLATE utf8_bin NOT NULL,
`fb_id` varchar(54) COLLATE utf8_bin DEFAULT NULL,
`settings` text COLLATE utf8_bin NOT NULL,
`language` varchar(12) COLLATE utf8_bin NOT NULL,
`has_pswd` tinyint(1) NOT NULL,
`reg_date` datetime NOT NULL,
`last_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_ip` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `fb_user_id` (`fb_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=9 ;
/*!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 */;