EverWrath/data/sql/base/db_characters/pvpstats_players.sql

40 lines
1.7 KiB
SQL

/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `pvpstats_players`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = UTF8MB4 */;
CREATE TABLE `pvpstats_players`
(
`battleground_id` BIGINT unsigned NOT NULL,
`character_guid` INT unsigned NOT NULL,
`winner` bit(1) NOT NULL,
`score_killing_blows` MEDIUMINT unsigned NOT NULL,
`score_deaths` MEDIUMINT unsigned NOT NULL,
`score_honorable_kills` MEDIUMINT unsigned NOT NULL,
`score_bonus_honor` MEDIUMINT unsigned NOT NULL,
`score_damage_done` MEDIUMINT unsigned NOT NULL,
`score_healing_done` MEDIUMINT unsigned NOT NULL,
`attr_1` MEDIUMINT unsigned NOT NULL DEFAULT 0,
`attr_2` MEDIUMINT unsigned NOT NULL DEFAULT 0,
`attr_3` MEDIUMINT unsigned NOT NULL DEFAULT 0,
`attr_4` MEDIUMINT unsigned NOT NULL DEFAULT 0,
`attr_5` MEDIUMINT unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`battleground_id`,`character_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `pvpstats_players` WRITE;
/*!40000 ALTER TABLE `pvpstats_players` DISABLE KEYS */;
/*!40000 ALTER TABLE `pvpstats_players` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;