twelve_heroes.sql 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. -- MySQL dump 10.17 Distrib 10.3.25-MariaDB, for debian-linux-gnu (x86_64)
  2. --
  3. -- Host: localhost Database: th_backup
  4. -- ------------------------------------------------------
  5. -- Server version 10.3.25-MariaDB-0+deb10u1
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8mb4 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `games`
  18. --
  19. DROP TABLE IF EXISTS `games`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `games` (
  23. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  24. `player1` varchar(64) NOT NULL,
  25. `player2` varchar(64) NOT NULL,
  26. `deck` enum('faction','draft','tournament') NOT NULL DEFAULT 'faction',
  27. `adv_rules` set('popularity','discard') DEFAULT '',
  28. `status` enum('CREATED','PLAYING','FINISHED','PAUSED') NOT NULL DEFAULT 'CREATED',
  29. `game_data` longtext NOT NULL,
  30. `last_played` datetime NOT NULL,
  31. PRIMARY KEY (`id`)
  32. ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COMMENT='All the online games (created, ongoing & finished)';
  33. /*!40101 SET character_set_client = @saved_cs_client */;
  34. --
  35. -- Dumping data for table `games`
  36. --
  37. LOCK TABLES `games` WRITE;
  38. /*!40000 ALTER TABLE `games` DISABLE KEYS */;
  39. /*!40000 ALTER TABLE `games` ENABLE KEYS */;
  40. UNLOCK TABLES;
  41. --
  42. -- Table structure for table `players`
  43. --
  44. DROP TABLE IF EXISTS `players`;
  45. /*!40101 SET @saved_cs_client = @@character_set_client */;
  46. /*!40101 SET character_set_client = utf8 */;
  47. CREATE TABLE `players` (
  48. `username` varchar(30) NOT NULL,
  49. `last_connection` datetime NOT NULL,
  50. `friends` text DEFAULT NULL,
  51. UNIQUE KEY `username` (`username`) USING BTREE
  52. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='table with all players with online account';
  53. /*!40101 SET character_set_client = @saved_cs_client */;
  54. --
  55. -- Dumping data for table `players`
  56. --
  57. LOCK TABLES `players` WRITE;
  58. /*!40000 ALTER TABLE `players` DISABLE KEYS */;
  59. INSERT INTO `players` VALUES ('user1','2020-11-22 00:00:00',NULL),('user2','2020-11-22 00:00:00',NULL),('user3','2020-11-22 00:00:00',NULL),('user4','2020-11-22 00:00:00',NULL),('user5','2020-11-22 00:00:00',NULL);
  60. /*!40000 ALTER TABLE `players` ENABLE KEYS */;
  61. UNLOCK TABLES;
  62. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  63. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  64. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  65. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  66. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  67. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  68. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  69. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  70. -- Dump completed on 2020-11-24 11:54:36