﻿CREATE TABLE IF NOT EXISTS `upload` (
  `id` int(11) NOT NULL auto_increment,
  `refid` int(11) NOT NULL,
  `adres` text NOT NULL,
  `time` int(11) NOT NULL,
  `name` text NOT NULL,
  `type` varchar(4) NOT NULL default '',
  `avtor` varchar(25) NOT NULL default '',
  `ip` int(11) NOT NULL,
  `soft` text NOT NULL,
  `text` text NOT NULL,
  `screen` text NOT NULL,
  `moder` binary(1) NOT NULL default '\0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=8 ;


INSERT INTO `upload` (`id`, `refid`, `adres`, `time`, `name`, `type`, `avtor`, `ip`, `soft`, `text`, `screen`, `moder`) VALUES
(1, 0, '../users/files', 1272559165, 'music', 'cat', '', 1, 'mp3,amr', 'музыка', '', '1'),
(3, 0, '../users/files', 1272559738, 'pic', 'cat', '', 1, 'bmp,jpg,png,jpeg', 'картинки', '', '1'),
(5, 0, '../users/files', 1272567011, 'video', 'cat', '', 1, 'mp4,3gp,avi,wmv', 'видео', '', '1');