-
Notifications
You must be signed in to change notification settings - Fork 0
/
thinktank1.sql
83 lines (66 loc) · 2.16 KB
/
thinktank1.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
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 24, 2016 at 08:17 PM
-- Server version: 5.6.12-log
-- PHP Version: 5.4.12
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: `thinktank1`
--
CREATE DATABASE IF NOT EXISTS `thinktank1` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `thinktank1`;
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE IF NOT EXISTS `comments` (
`comment` varchar(40) NOT NULL,
`topic` varchar(100) NOT NULL,
`uemail` varchar(40) NOT NULL,
`wemail` varchar(40) NOT NULL,
`dt` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `likes`
--
CREATE TABLE IF NOT EXISTS `likes` (
`topic` varchar(100) NOT NULL,
`lbemail` varchar(50) NOT NULL,
`wemail` varchar(50) NOT NULL,
PRIMARY KEY (`topic`,`lbemail`,`wemail`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `thinktank`
--
CREATE TABLE IF NOT EXISTS `thinktank` (
`uname` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`topic` varchar(100) NOT NULL,
`entry` varchar(500) DEFAULT NULL,
`likes` int(11) DEFAULT NULL,
`dt` datetime NOT NULL,
PRIMARY KEY (`email`,`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `topics`
--
CREATE TABLE IF NOT EXISTS `topics` (
`id` int(11) NOT NULL,
`topic` varchar(100) NOT NULL,
`issued` int(2) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!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 */;