create table if not exists `gu_bar_cat` (
`id` int(11) not null auto_increment,
`name` varchar(64) not null,
`cat` int(11) not null,
`create` enum('0','1') not null default '0',
primary key `id` (`id`))
engine=myisam default charset=utf8;

create table if not exists `gu_bar_nap` (
`id` int(11) not null auto_increment,
`msg` varchar(1024) not null,
`file` varchar(100) not null,
`id_cat` int(11) not null,
primary key `id` (`id`),
key `id_cat` (`id_cat`))
engine=myisam default charset=utf8;

create table if not exists `gu_bar` (
`id` int(11) not null auto_increment,
`id_ank` int(11) not null,
`id_user` int(11) not null,
`id_nap` int(11) NOT NULL,
`time` int(11) NOT NULL,
primary key `id` (`id`),
key `id_ank` (`id_ank`),
key `id_user` (`id_user`),
key `id_nap` (`id_nap`))
engine=myisam default charset=utf8;