Файл: install/db_tables/videos.sql
Строк: 18
CREATE TABLE IF NOT EXISTS `videos_cat` (
`id` int(11) NOT NULL
AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `videos`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_cat` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`name` varchar(1024) NOT NULL,
`kod`
varchar(100) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `videos_komm` (
`id`
int(11) NOT NULL auto_increment,
`id_videos` 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 `videos_views` (
`id_videos` int(11) NOT NULL,
`id_user` int(11) NOT
NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `videos_like`
(
`id_videos` int(11) NOT NULL,
`id_user` int(11) NOT NULL
) ENGINE=MyISAM
DEFAULT CHARSET=utf8;