-
Notifications
You must be signed in to change notification settings - Fork 1
/
gpio.sql
149 lines (124 loc) · 4.08 KB
/
gpio.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
137
138
139
140
141
142
143
144
145
146
147
148
149
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 10, 2012 at 03:13 PM
-- Server version: 5.1.49-3
-- PHP Version: 5.3.3-7+squeeze8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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: `gpio`
--
CREATE DATABASE `gpio` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `gpio`;
-- --------------------------------------------------------
--
-- Table structure for table `pinDescription`
--
-- Creation: Jun 09, 2012 at 07:50 PM
-- Last update: Jun 10, 2012 at 02:11 PM
--
DROP TABLE IF EXISTS `pinDescription`;
CREATE TABLE IF NOT EXISTS `pinDescription` (
`pinID` int(11) NOT NULL AUTO_INCREMENT,
`pinNumber` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`pinDescription` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`pinID`),
UNIQUE KEY `pinNumber` (`pinNumber`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
--
-- Dumping data for table `pinDescription`
--
INSERT INTO `pinDescription` (`pinID`, `pinNumber`, `pinDescription`) VALUES
(1, '4', 'Pin 4'),
(2, '17', 'Pin 17'),
(3, '18', 'Pin 18'),
(4, '21', 'Pin 21'),
(5, '22', 'Pin 22'),
(6, '23', 'Pin 23'),
(7, '24', 'Pin 24'),
(8, '25', 'Pin 25');
-- --------------------------------------------------------
--
-- Table structure for table `pinDirection`
--
-- Creation: Jun 09, 2012 at 06:18 PM
-- Last update: Jun 09, 2012 at 06:19 PM
--
DROP TABLE IF EXISTS `pinDirection`;
CREATE TABLE IF NOT EXISTS `pinDirection` (
`pinID` int(11) NOT NULL AUTO_INCREMENT,
`pinNumber` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`pinDirection` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`pinID`),
UNIQUE KEY `pinNumber` (`pinNumber`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
--
-- Dumping data for table `pinDirection`
--
INSERT INTO `pinDirection` (`pinID`, `pinNumber`, `pinDirection`) VALUES
(1, '4', 'out'),
(2, '17', 'out'),
(3, '18', 'out'),
(4, '21', 'out'),
(5, '22', 'out'),
(6, '23', 'out'),
(7, '24', 'out'),
(8, '25', 'out');
-- --------------------------------------------------------
--
-- Table structure for table `pinStatus`
--
-- Creation: Jun 09, 2012 at 05:30 PM
-- Last update: Jun 10, 2012 at 01:54 PM
--
DROP TABLE IF EXISTS `pinStatus`;
CREATE TABLE IF NOT EXISTS `pinStatus` (
`pinID` int(11) NOT NULL AUTO_INCREMENT,
`pinNumber` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`pinStatus` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`pinID`),
UNIQUE KEY `pinNumber` (`pinNumber`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
--
-- Dumping data for table `pinStatus`
--
INSERT INTO `pinStatus` (`pinID`, `pinNumber`, `pinStatus`) VALUES
(1, '4', '0'),
(2, '17', '0'),
(3, '18', '0'),
(4, '21', '0'),
(5, '22', '0'),
(6, '23', '0'),
(7, '24', '0'),
(8, '25', '0');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
-- Creation: Jun 10, 2012 at 02:07 PM
-- Last update: Jun 10, 2012 at 02:09 PM
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`userID` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(28) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`salt` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`userID`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`userID`, `username`, `password`, `salt`) VALUES
(1, 'admin', '62f615b1eed9ea340c34485c21a92046488990d45f6369e860e483287e137543', 'f135a0bb');
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;