-
Notifications
You must be signed in to change notification settings - Fork 0
/
t20.sql
108 lines (83 loc) · 2.64 KB
/
t20.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
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 12, 2012 at 08:06 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.6
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: `t20`
--
-- --------------------------------------------------------
--
-- Table structure for table `chat`
--
CREATE TABLE IF NOT EXISTS `chat` (
`user` varchar(50) NOT NULL,
`Time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `chat`
--
INSERT INTO `chat` (`user`, `Time`) VALUES
('ShoutAtMe', '2012-09-12 17:46:26'),
('test', '2012-09-12 18:05:27');
-- --------------------------------------------------------
--
-- Table structure for table `message`
--
CREATE TABLE IF NOT EXISTS `message` (
`from` varchar(50) NOT NULL,
`to` varchar(50) NOT NULL,
`message` varchar(250) NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `message`
--
INSERT INTO `message` (`from`, `to`, `message`, `status`) VALUES
('test2', 'test', 'hi\n', 1),
('test', 'test2', 'what''s\n', 1),
('test2', 'test', 'fs\n', 1),
('test', 'test2', 'ds\n', 1);
-- --------------------------------------------------------
--
-- Table structure for table `shouter_message`
--
CREATE TABLE IF NOT EXISTS `shouter_message` (
`from` varchar(50) NOT NULL,
`message` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `shouter_message`
--
INSERT INTO `shouter_message` (`from`, `message`) VALUES
('test', 'hi\n');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`number` varchar(10) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`ID`, `name`, `password`, `email`, `number`) VALUES
(1, 'test', 'test', 'test2@test.com', '9874561230'),
(2, 'test2', 'test2', 'test2@res.com', '7894561230');
/*!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 */;