Файл: game.sql
Строк: 19
CREATE TABLE IF NOT EXISTS `boy_game` (
`id` int(11) NOT NULL
AUTO_INCREMENT,
`user` int(11) NOT NULL,
`type`
set('start','game','end') NOT NULL DEFAULT 'start',
`win` varchar(8) NOT
NULL DEFAULT '0',
`time` varchar(11) NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
CREATE TABLE IF NOT
EXISTS `boy_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`game`
int(11) NOT NULL,
`text` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
)
ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=35 ;
CREATE TABLE IF
NOT EXISTS `boy_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`game`
int(11) NOT NULL DEFAULT '0',
`kom` set('1','2') NOT NULL,
`dead`
int(1) NOT NULL DEFAULT '0',
`user` int(11) NOT NULL DEFAULT '0',
`end`
int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT
CHARSET=utf8 AUTO_INCREMENT=5 ;