--
-- Host: localhost    Database: mastersc_pchat1
-- ------------------------------------------------------


--
-- Current Database: `mastersc_pchat1`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mastersc_pchat1` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `mastersc_pchat1`;

--
-- Table structure for table `c_ban_users`
--

CREATE TABLE `c_ban_users` (
  `username` varchar(30) NOT NULL DEFAULT '',
  `latin1` tinyint(1) NOT NULL DEFAULT '0',
  `ip` varchar(16) NOT NULL DEFAULT '',
  `rooms` varchar(100) NOT NULL DEFAULT '',
  `ban_until` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `c_ban_users`
--


--
-- Table structure for table `c_messages`
--

CREATE TABLE `c_messages` (
  `type` tinyint(1) NOT NULL DEFAULT '0',
  `room` varchar(30) NOT NULL DEFAULT '',
  `username` varchar(30) NOT NULL DEFAULT '',
  `latin1` tinyint(1) NOT NULL DEFAULT '0',
  `m_time` int(11) NOT NULL DEFAULT '0',
  `address` varchar(30) NOT NULL DEFAULT '',
  `message` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `c_messages`
--


--
-- Table structure for table `c_users`
--

CREATE TABLE `c_users` (
  `room` varchar(30) NOT NULL DEFAULT '',
  `username` varchar(30) NOT NULL DEFAULT '',
  `latin1` tinyint(1) NOT NULL DEFAULT '0',
  `u_time` int(11) NOT NULL DEFAULT '0',
  `status` char(1) NOT NULL DEFAULT '',
  `ip` varchar(16) NOT NULL DEFAULT '',
  UNIQUE KEY `room` (`room`,`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `c_users`
--



