forked from OldWest/CakePHP-1.3-Simple-Auth-Sample-Code
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsimple_auth.sql
67 lines (53 loc) · 1.9 KB
/
simple_auth.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
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 10, 2010 at 12:57 PM
-- Server version: 5.1.36
-- PHP Version: 5.3.0
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: `simple_auth`
--
-- --------------------------------------------------------
--
-- Table structure for table `books`
--
CREATE TABLE IF NOT EXISTS `books` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`description` longtext NOT NULL,
`price` varchar(10) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `books`
--
INSERT INTO `books` (`id`, `name`, `description`, `price`, `user_id`) VALUES
(4, 'This is a new book added with Auth.', 'I logged in and added this.', '$34.95', 4),
(3, 'Easy CakePHP Development', 'This is a good book.', '$44.95', 5),
(5, 'CakePHP Help is Hard to Come By', 'Life is hard with out adequate help to learn CakePHP.', '$1,000,000', 4);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `username`, `password`) VALUES
(3, 'Mike', 'mike', '75de58ccd3821082c9a64b316c4fe5ae1fcce77a'),
(4, 'Jason', 'jason', '6be39f1812f0e112827e61a11d2b3fa3ed3e0d20'),
(5, 'Lachlan', 'lachlan', 'e1b80e6f982a7ea32b489d3ecfe87d694272a0f1');