CREATE TABLE IF NOT EXISTS `vehicles` (
`id` INT NOT NULL AUTO_INCREMENT,
`pid` VARCHAR(17) NOT NULL,
`side` VARCHAR(10) NOT NULL,
`classname` VARCHAR(64) NOT NULL,
`type` VARCHAR(16) NOT NULL,
`alive` TINYINT NOT NULL DEFAULT 1,
`blacklist` TINYINT NOT NULL DEFAULT 0,
`active` TINYINT NOT NULL DEFAULT 0,
`plate` MEDIUMINT NOT NULL,
`color` INT NOT NULL,
`inventory` TEXT NOT NULL,
`gear` TEXT NOT NULL,
`fuel` DOUBLE NOT NULL DEFAULT 1,
`damage` VARCHAR(256) NOT NULL,
`insert_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP...
CREATE TABLE IF NOT EXISTS `vehicles` (
`id` INT NOT NULL AUTO_INCREMENT,
`pid` VARCHAR(17) NOT NULL,
`side` VARCHAR(10) NOT NULL,
`classname` VARCHAR(64) NOT NULL,
`type` VARCHAR(16) NOT NULL,
`alive` TINYINT NOT NULL DEFAULT 1,
`blacklist` TINYINT NOT NULL DEFAULT 0,
`active` TINYINT NOT NULL DEFAULT 0,
`plate` MEDIUMINT NOT NULL,
`color` INT NOT NULL,
`inventory` TEXT NOT NULL,
`gear` TEXT NOT NULL,
`fuel` DOUBLE NOT NULL DEFAULT 1,
`damage` VARCHAR(256) NOT NULL,
`insert_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
INDEX `fkIdx_players_vehicles` (`pid`),
CONSTRAINT `FK_players_vehicles` FOREIGN KEY `fkIdx_players_vehicles` (`pid`)
REFERENCES `players` (`pid`)
ON UPDATE CASCADE ON DELETE CASCADE,
INDEX `index_side` (`side`),
INDEX `index_type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Avec plaisir <3Merci beaucoup, je trouvais pas le sql