Файл: gazeta/Tables.txt
Строк: 21
CREATE TABLE IF NOT EXISTS `gazeta_cat` (
`id` int(11) NOT NULL
AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF
NOT EXISTS `gazeta` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_cat`
int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`name` varchar(100) NOT
NULL,
`article` varchar(10000) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1
;
CREATE TABLE `gazeta_komm` (
`id` int(11) NOT NULL
auto_increment,
`id_gazeta` int(11) NOT NULL,
`id_user` int(11) NOT
NULL,
`time` int(11) NOT NULL,
`msg` varchar(1024) NOT NULL,
PRIMARY KEY
(`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE
`gazeta_views` (
`id_gazeta` int(11) NOT NULL,
`id_user` int(11) NOT
NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `gazeta_rating`
(
`id_gazeta` int(11) NOT NULL,
`id_user` int(11) NOT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `gazeta_zakl`
(
`id_gazeta` int(11) NOT NULL,
`id_user` int(11) NOT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8;