This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
default_data.sql
46 lines (41 loc) · 1.66 KB
/
default_data.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
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`secret` text NOT NULL,
`type` enum('user','admin') NOT NULL,
`data` text NOT NULL,
`blocked` enum('N','Y') NOT NULL,
`created_on` datetime NOT NULL,
`edited_on` datetime DEFAULT NULL,
`blocked_on` datetime DEFAULT NULL,
`deleted` enum('N','Y') NOT NULL DEFAULT 'N',
`forgot_password` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
INSERT INTO `users` (`id`, `name`, `password`, `email`, `secret`, `type`, `data`, `blocked`, `created_on`, `edited_on`, `blocked_on`, `deleted`) VALUES
(1, 'Sumocoders', '57bf7fd2449834188ee1497644294a27c93f0faa', '[email protected]', 'b6b8968b9ffc307e727fe3a437d967db', 'admin', 'a:1:{s:8:"settings";a:0:{}}', 'N', '2012-06-20 13:37:00', NULL, NULL, 'N');
CREATE TABLE IF NOT EXISTS `users_sessions` (
`session_id` varchar(255) NOT NULL,
`user_id` int(11) NOT NULL,
`edited_on` datetime NOT NULL,
PRIMARY KEY (`session_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `users_login_attempts` (
`login` varchar(255) NOT NULL,
`attempts` int(11) NOT NULL,
`last_attempt` datetime NOT NULL,
PRIMARY KEY (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `settings` (
`key` varchar(255) NOT NULL,
`value` text,
PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`created_on` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;