View file social.sql

File size: 6.76Kb
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 06, 2013 at 08:30 AM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3

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: `social`
--

-- --------------------------------------------------------

--
-- Table structure for table `_comment`
--

CREATE TABLE IF NOT EXISTS `_comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `stid` int(11) NOT NULL,
  `alid` int(11) NOT NULL,
  `pid` int(11) NOT NULL,
  `message` blob NOT NULL,
  `dtm` int(11) NOT NULL,
  `brws` varchar(32) NOT NULL,
  `ip` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_detail`
--

CREATE TABLE IF NOT EXISTS `_detail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `dob` varchar(32) NOT NULL,
  `sex` int(11) NOT NULL,
  `country` varchar(32) NOT NULL,
  `about` blob NOT NULL,
  `interest` int(11) NOT NULL,
  `relationship` int(11) NOT NULL,
  `uptm` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_friends`
--

CREATE TABLE IF NOT EXISTS `_friends` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `toid` int(11) NOT NULL,
  `fromid` int(11) NOT NULL,
  `reqdate` int(11) NOT NULL,
  `accdate` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_groups`
--

CREATE TABLE IF NOT EXISTS `_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `grp` varchar(32) NOT NULL,
  `description` blob NOT NULL,
  `dtm` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_like`
--

CREATE TABLE IF NOT EXISTS `_like` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `wid` int(11) NOT NULL,
  `cid` int(11) NOT NULL,
  `alid` int(11) NOT NULL,
  `pid` int(11) NOT NULL,
  `dtm` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_members`
--

CREATE TABLE IF NOT EXISTS `_members` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `grp` int(11) NOT NULL,
  `dtm` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  `lastact` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_messages`
--

CREATE TABLE IF NOT EXISTS `_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mid` varchar(32) NOT NULL,
  `fromid` int(11) NOT NULL,
  `toid` int(11) NOT NULL,
  `sentm` int(11) NOT NULL,
  `message` blob NOT NULL,
  `type` int(11) NOT NULL,
  `uptm` int(11) NOT NULL,
  `touser` int(11) NOT NULL,
  `fromuser` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_notify`
--

CREATE TABLE IF NOT EXISTS `_notify` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `fid` int(11) NOT NULL,
  `nid` varchar(32) NOT NULL,
  `wid` int(11) NOT NULL,
  `cid` int(11) NOT NULL,
  `pid` int(11) NOT NULL,
  `alid` int(11) NOT NULL,
  `ac` int(11) NOT NULL,
  `dtm` int(11) NOT NULL,
  `uptm` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_photo`
--

CREATE TABLE IF NOT EXISTS `_photo` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cover` int(11) NOT NULL,
  `albumid` int(11) NOT NULL,
  `album` varchar(32) NOT NULL,
  `photo` varchar(32) NOT NULL,
  `url` varchar(32) NOT NULL,
  `userid` int(11) NOT NULL,
  `uptm` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_prefs`
--

CREATE TABLE IF NOT EXISTS `_prefs` (
  `title` varchar(32) NOT NULL,
  `selfurl` varchar(32) NOT NULL,
  `charset` varchar(32) NOT NULL,
  `language` varchar(32) NOT NULL,
  `reg_ip` int(11) NOT NULL,
  `regenabled` varchar(32) NOT NULL,
  `ses_limit` int(11) NOT NULL,
  `photo_size` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `_prefs`
--

INSERT INTO `_prefs` (`title`, `selfurl`, `charset`, `language`, `reg_ip`, `regenabled`, `ses_limit`, `photo_size`) VALUES
('social', 'http://localhost/script/', '', 'english', 180, 'yes', 1800, 524288000);

-- --------------------------------------------------------

--
-- Table structure for table `_session`
--

CREATE TABLE IF NOT EXISTS `_session` (
  `id` varchar(32) NOT NULL,
  `userid` int(11) NOT NULL,
  `log` int(11) NOT NULL,
  `browser` varchar(32) NOT NULL,
  `remember` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `_story`
--

CREATE TABLE IF NOT EXISTS `_story` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `toid` int(11) NOT NULL,
  `shrid` int(11) NOT NULL,
  `grid` int(11) NOT NULL,
  `message` blob NOT NULL,
  `dtm` int(11) NOT NULL,
  `brws` varchar(32) NOT NULL,
  `ip` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `_users`
--

CREATE TABLE IF NOT EXISTS `_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(32) NOT NULL,
  `password` varchar(32) NOT NULL,
  `email` varchar(32) NOT NULL,
  `reg_ip` int(11) NOT NULL,
  `reg_browser` varchar(32) NOT NULL,
  `reg_date` int(11) NOT NULL,
  `language` int(11) NOT NULL,
  `lastlogin` int(11) NOT NULL,
  `photo` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

/*!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 */;