forked from danmontgomery/codeigniter-bitauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitauth.sql
136 lines (107 loc) · 3.95 KB
/
bitauth.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 20, 2011 at 03:19 PM
-- Server version: 5.1.53
-- PHP Version: 5.3.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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: `bitauth`
--
-- --------------------------------------------------------
--
-- Table structure for table `bitauth_assoc`
--
CREATE TABLE IF NOT EXISTS `bitauth_assoc` (
`assoc_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`group_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`assoc_id`),
KEY `user_id` (`user_id`,`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `bitauth_assoc`
--
INSERT INTO `bitauth_assoc` (`assoc_id`, `user_id`, `group_id`) VALUES
(1, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `bitauth_groups`
--
CREATE TABLE IF NOT EXISTS `bitauth_groups` (
`group_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(48) NOT NULL,
`description` text NOT NULL,
`roles` text NOT NULL,
PRIMARY KEY (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `bitauth_groups`
--
INSERT INTO `bitauth_groups` (`group_id`, `name`, `description`, `roles`) VALUES
(1, 'Administrators', 'Administrators (Full Access)', 1),
(2, 'Users', 'Default User Group', 0);
-- --------------------------------------------------------
--
-- Table structure for table `bitauth_logins`
--
CREATE TABLE IF NOT EXISTS `bitauth_logins` (
`login_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ip_address` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`time` datetime NOT NULL,
`success` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`login_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `bitauth_logins`
--
-- --------------------------------------------------------
--
-- Table structure for table `bitauth_userdata`
--
CREATE TABLE IF NOT EXISTS `bitauth_userdata` (
`userdata_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`fullname` varchar(40) NOT NULL,
`email` varchar(254) NOT NULL,
PRIMARY KEY (`userdata_id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `bitauth_userdata`
--
INSERT INTO `bitauth_userdata` (`userdata_id`, `user_id`, `fullname`, `email`) VALUES
(1, 1, 'Administrator', '[email protected]');
-- --------------------------------------------------------
--
-- Table structure for table `bitauth_users`
--
CREATE TABLE IF NOT EXISTS `bitauth_users` (
`user_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(32) NOT NULL,
`password` varchar(60) NOT NULL,
`password_last_set` datetime NOT NULL,
`password_never_expires` tinyint(1) NOT NULL DEFAULT '0',
`remember_me` varchar(40) NOT NULL,
`activation_code` varchar(40) NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT '0',
`forgot_code` varchar(40) NOT NULL,
`forgot_generated` datetime NOT NULL,
`enabled` tinyint(1) NOT NULL DEFAULT '1',
`last_login` datetime NOT NULL,
`last_login_ip` int(10) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `bitauth_users`
--
INSERT INTO `bitauth_users` (`user_id`, `username`, `password`, `password_last_set`, `password_never_expires`, `remember_me`, `activation_code`, `active`, `forgot_code`, `forgot_generated`, `enabled`, `last_login`, `last_login_ip`) VALUES
(1, 'admin', '$2a$08$560JEYl2Np/7/6RLc/mq/ecnumuBXig3e.pHh1lnH1pgpk94sTZhu', now(), 0, '', '', 1, '', '0000-00-00 00:00:00', 1, '0000-00-00 00:00:00', 0);