Вы находитесь на странице: 1из 2

-- phpMyAdmin SQL Dump

-- version 2.11.6
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 31, 2008 at 12:39 PM
-- Server version: 5.0.51
-- PHP Version: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `newdgt`
--

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

--
-- Table structure for table `user_folder`
--

CREATE TABLE `user_folder` (


`fid` int(60) NOT NULL auto_increment COMMENT 'folder id(autoincerment id)',
`uid` int(60) NOT NULL COMMENT 'userid(get from the session)',
`share_perm` int(60) NOT NULL COMMENT 'share permissions(0-public,1-private,2-
friends selected)',
PRIMARY KEY (`fid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `user_folder`
--

INSERT INTO `user_folder` (`fid`, `uid`, `share_perm`) VALUES


(1, 1, 1),
(2, 1, 1),
(3, 4, 1),
(4, 4, 1),
(5, 5, 1);

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

--
-- Table structure for table `user_folder_name`
--

CREATE TABLE `user_folder_name` (


`id` int(60) NOT NULL auto_increment COMMENT 'primary key(autoincrement id)',
`fid` int(60) NOT NULL COMMENT 'folderid',
`folder_name` varchar(60) NOT NULL COMMENT 'foldername',
`folder_desc` varchar(60) NOT NULL COMMENT 'folder desc',
`folder_tags` varchar(60) NOT NULL COMMENT 'folder tags',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--
-- Dumping data for table `user_folder_name`
--
INSERT INTO `user_folder_name` (`id`, `fid`, `folder_name`, `folder_desc`,
`folder_tags`) VALUES
(1, 1, 'First Folder', 'hahahhahhahahahahahaha', 'folder_tag'),
(2, 2, 'second folder', 'All the files with the name second will be displayed
here', 'second one,second'),
(4, 4, 'seconduser_firstfile', 'this is the second user private folder', 'second
user,firstfilw'),
(5, 5, 'thirduser_firstfile', 'this is the third user first file', 'this is the
third user first file');

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

--
-- Table structure for table `user_folder_rand_name`
--

CREATE TABLE `user_folder_rand_name` (


`id` int(60) NOT NULL auto_increment COMMENT 'primary key(autoincrement id)',
`uid` int(60) NOT NULL COMMENT 'userid',
`folder_rand` varchar(60) NOT NULL COMMENT 'foldername(randomly createed)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `user_folder_rand_name`
--

INSERT INTO `user_folder_rand_name` (`id`, `uid`, `folder_rand`) VALUES


(1, 1, '1225449712'),
(2, 4, '1225454291'),
(3, 5, '1225454844');

CREATE TABLE `user_share_prem_group` (


`id` int(60) NOT NULL auto_increment COMMENT 'Autoincrement id',
`fid` int(60) NOT NULL COMMENT 'folder id',
`share_perm` int(60) NOT NULL COMMENT 'userids of the persons with whom he is
sharing)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;