-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtables.sql
More file actions
28 lines (24 loc) · 897 Bytes
/
tables.sql
File metadata and controls
28 lines (24 loc) · 897 Bytes
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
-- User-Library SQL
-- Author: Adam Thody
-- --------------------------------------------------------
CREATE TABLE `ci_sessions` (
`session_id` varchar(40) NOT NULL default '0',
`ip_address` varchar(16) NOT NULL default '0',
`user_agent` varchar(50) NOT NULL,
`last_activity` int(10) unsigned NOT NULL default '0',
`user_data` text NOT NULL,
PRIMARY KEY (`session_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `persistent_sessions` (
`identity` varchar(255) NOT NULL,
`token` varchar(32) NOT NULL,
`date_created` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`identity`,`token`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `users` (
`id` int(8) unsigned NOT NULL auto_increment,
`email` varchar(255) NOT NULL,
`password` varchar(40) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;