forked from cartalyst/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsentry.sql
More file actions
58 lines (50 loc) · 1.68 KB
/
sentry.sql
File metadata and controls
58 lines (50 loc) · 1.68 KB
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
DROP TABLE IF EXISTS `groups`;
CREATE TABLE `groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
`level` int(11) NOT NULL,
`is_admin` tinyint(1) NOT NULL,
`parent` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(81) NOT NULL,
`password_reset_hash` varchar(81) NOT NULL,
`temp_password` varchar(81) NOT NULL,
`remember_me` varchar(81) NOT NULL,
`activation_hash` varchar(81) NOT NULL,
`last_login` int(11) NOT NULL,
`ip_address` varchar(50) NOT NULL,
`updated_at` int(11) NOT NULL,
`created_at` int(11) NOT NULL,
`status` tinyint(1) NOT NULL,
`activated` tinyint(4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `users_groups`;
CREATE TABLE `users_groups` (
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `users_metadata`;
CREATE TABLE `users_metadata` (
`user_id` int(11) NOT NULL,
`first_name` varchar(50) NOT NULL,
`last_name` varchar(50) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `users_suspended`;
CREATE TABLE `users_suspended` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login_id` varchar(50) NOT NULL,
`attempts` int(50) NOT NULL,
`ip` varchar(25) NOT NULL,
`last_attempt_at` int(11) NOT NULL,
`suspended_at` int(11) NOT NULL,
`unsuspend_at` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;