forked from johnnymast/mysql_websocket_chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.sql
50 lines (41 loc) · 1.04 KB
/
database.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
-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Sep 18, 2016 at 03:50 PM
-- Server version: 5.5.42
-- PHP Version: 7.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `socket_chat`
--
-- --------------------------------------------------------
--
-- Table structure for table `chat_interactions`
--
CREATE TABLE `chat_interactions` (
`message_id` int(11) NOT NULL,
`to_id` varchar(255) NOT NULL,
`from_id` varchar(255) NOT NULL,
`message` text NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`ip_address` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `chat_interactions`
--
ALTER TABLE `chat_interactions`
ADD PRIMARY KEY (`message_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `chat_interactions`
--
ALTER TABLE `chat_interactions`
MODIFY `message_id` int(11) NOT NULL AUTO_INCREMENT;