-- Historial de compras de la tienda nativa (battlepay) del cliente, en acore_auth.
-- La escribe el core (worldserver), no la web; se versiona para poder recrear la
-- tabla, que no venía en ningún SQL del repo. Ver también battlepay_sumup.sql.
--
-- Las filas son de las PRUEBAS locales (2 cuentas, RemoteAddress 127.0.0.1);
-- no hay datos de jugadores reales. Si algún día los hubiera, NO volcarlos aquí.
--
-- Aplicar:  mysql acore_auth < web-next/sql/battlepay_purchases.sql
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `battlepay_purchases`;
CREATE TABLE `battlepay_purchases` (
  `id` int unsigned NOT NULL,
  `battlenetAccountId` int unsigned NOT NULL,
  `realm` int unsigned NOT NULL,
  `productID` int unsigned NOT NULL,
  `productName` varchar(255) NOT NULL,
  `CurrentPrice` int unsigned NOT NULL,
  `RemoteAddress` varchar(50) NOT NULL,
  `delivered` tinyint unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
INSERT INTO `battlepay_purchases` VALUES (38,1,16842753,4,'X-51 Nether-Rocket X-TREME',200000,'127.0.0.1',1),(39,1,16842753,4,'X-51 Nether-Rocket X-TREME',200000,'127.0.0.1',1),(41,1,16842753,5,'Avatar of Flame',250000,'127.0.0.1',1),(42,1,16842753,7,'Kalu\'ak Whalebone Glider',200000,'127.0.0.1',1),(43,1,16842753,9,'Black Ram',200000,'127.0.0.1',1),(45,1,16842753,17,'Teal Kodo',200000,'127.0.0.1',1),(46,1,16842753,19,'Whistle of the Mottled Red Raptor',200000,'127.0.0.1',1),(47,1,16842753,20,'White Mechanostrider Mod B',200000,'127.0.0.1',1),(48,1,16842753,21,'Big Battle Bear',200000,'127.0.0.1',1),(49,1,16842753,22,'Big Blizzard Bear',200000,'127.0.0.1',1),(50,1,16842753,25,'Magic Rooster Egg',200000,'127.0.0.1',1),(51,1,16842753,27,'Reins of the Swift Spectral Tiger',200000,'127.0.0.1',1),(52,1,16842753,31,'Pebble\'s Pebble',200000,'127.0.0.1',1),(53,1,16842753,32,'Pinchy the Plunderer',200000,'127.0.0.1',1),(54,1,16842753,32,'Pinchy the Plunderer',200000,'127.0.0.1',1),(55,1,16842753,33,'Glub',200000,'127.0.0.1',1),(56,1,16842753,33,'Glub',200000,'127.0.0.1',1),(57,1,16842753,35,'Zergling Leash',200000,'127.0.0.1',1),(58,1,16842753,37,'Core Hound Pup',200000,'127.0.0.1',1),(59,1,16842753,38,'Pink Murloc Egg',200000,'127.0.0.1',1),(60,1,16842753,42,'Baby Shark',200000,'127.0.0.1',1),(61,1,16842753,51,'Green Dragon Orb',200000,'127.0.0.1',1),(62,1,16842753,68,'XS-001 Constructor Bot',200000,'127.0.0.1',1),(63,1,16842753,58,'Pandaren Monk',200000,'127.0.0.1',1),(64,1,16842753,69,'Fishspeaker\'s Lucky Lure',200000,'127.0.0.1',1),(66,1,16842753,69,'Fishspeaker\'s Lucky Lure',200000,'127.0.0.1',1),(67,1,16842753,70,'Dark Portal',200000,'127.0.0.1',1),(68,1,16842753,72,'Foam Sword Rack',200000,'127.0.0.1',1),(69,1,16842753,72,'Foam Sword Rack',200000,'127.0.0.1',1),(70,1,16842753,74,'Ethereal Portal',200000,'127.0.0.1',1),(71,1,16842753,75,'Path of Illidan',200000,'127.0.0.1',1),(72,1,16842753,82,'Paper Flying Machine Kit',200000,'127.0.0.1',1),(74,1,16842753,76,'Fishing Chair',200000,'127.0.0.1',1),(75,1,16842753,73,'D.I.S.C.O.',200000,'127.0.0.1',1),(76,1,16842753,83,'Picnic Basket',200000,'127.0.0.1',1),(77,1,16842753,1,'Name Change',100000,'127.0.0.1',0),(78,1,16842753,1,'Name Change',100000,'127.0.0.1',0),(79,1,16842753,2,'Race Change',150000,'127.0.0.1',0),(80,1,16842753,28,'Riding Turtle',200000,'127.0.0.1',1),(81,1,16842753,23,'Blazing Hippogryph',200000,'127.0.0.1',1),(82,1,16842753,66,'Warbot Ignition Key',200000,'127.0.0.1',1),(83,1,16842753,28,'Riding Turtle',200000,'127.0.0.1',1),(84,1,16842753,12,'Green Kodo',200000,'127.0.0.1',1),(85,1,16842753,29,'Swift Zhevra',200000,'127.0.0.1',1),(86,1,16842753,30,'X-51 Nether-Rocket',200000,'127.0.0.1',1),(87,1,16842753,10,'Celestial Steed',200000,'127.0.0.1',1),(88,1,16842753,1,'Name Change',100000,'127.0.0.1',0),(89,1,16842753,57,'Onyxian Whelpling',200000,'127.0.0.1',1),(90,1,16842753,29,'Swift Zhevra',200000,'127.0.0.1',1),(91,1,16842753,14,'Icy Blue Mechanostrider Mod A',200000,'127.0.0.1',1),(92,1,16842753,4,'X-51 Nether-Rocket X-TREME',200000,'127.0.0.1',1),(93,1,16842753,23,'Blazing Hippogryph',200000,'127.0.0.1',1),(94,1,16842753,10,'Celestial Steed',200000,'127.0.0.1',1),(95,1,16842753,10,'Celestial Steed',200000,'127.0.0.1',1),(96,1,16842753,10,'Celestial Steed',200000,'127.0.0.1',1),(97,2,16842753,70,'Dark Portal',200000,'127.0.0.1',1),(98,2,16842753,5,'Avatar of Flame',250000,'127.0.0.1',1),(99,1,16842753,10,'Celestial Steed',200000,'127.0.0.1',1),(100,2,16842753,1,'Name Change',100000,'127.0.0.1',0),(101,2,16842753,2,'Race Change',150000,'127.0.0.1',0),(103,1,16842753,3,'Faction Change',160000,'127.0.0.1',0);
