/Script/psquare_v1.sql

http://awoe.googlecode.com/ · SQL · 69 lines · 60 code · 9 blank · 0 comment · 4 complexity · 0496c534a12835cbcb4e13aa5c1aff13 MD5 · raw file

  1. # --------------------------------------------------------
  2. # Host: 127.0.0.1
  3. # Database: psquare
  4. # Server version: 5.1.44-community
  5. # Server OS: Win32
  6. # HeidiSQL version: 5.0.0.3272
  7. # Date/time: 2010-11-20 23:17:02
  8. # --------------------------------------------------------
  9. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  10. /*!40101 SET NAMES utf8 */;
  11. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  12. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  13. # Dumping database structure for psquare
  14. CREATE DATABASE IF NOT EXISTS `psquare` /*!40100 DEFAULT CHARACTER SET latin1 */;
  15. USE `psquare`;
  16. # Dumping structure for table psquare.role
  17. CREATE TABLE IF NOT EXISTS `player` (
  18. `pid` int(10) unsigned NOT NULL COMMENT 'player unique id',
  19. `name` varchar(32) NOT NULL COMMENT 'player unique name',
  20. `gender` tinyint(5) unsigned NOT NULL COMMENT 'player Gender',
  21. `features` tinyint(5) unsigned NOT NULL COMMENT 'player features ',
  22. `money_g` int(10) unsigned NOT NULL COMMENT 'player money gold',
  23. `money_s` int(10) unsigned NOT NULL COMMENT 'player money silver',
  24. `datax` int(10) unsigned DEFAULT NULL COMMENT 'player extension data x',
  25. `datay` int(10) unsigned DEFAULT NULL COMMENT 'player extension data y',
  26. `dataz` int(10) unsigned DEFAULT NULL COMMENT 'player extension data z',
  27. PRIMARY KEY (`pid`),
  28. UNIQUE KEY `pid` (`pid`)
  29. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  30. # Dumping structure for table psquare.role
  31. CREATE TABLE IF NOT EXISTS `role` (
  32. `rid` int(10) unsigned NOT NULL COMMENT 'role unique id',
  33. `hid` smallint(10) NOT NULL COMMENT 'hero static id that the role belongs to',
  34. `level` smallint(5) unsigned NOT NULL COMMENT 'role unique age',
  35. `datax` int(10) unsigned DEFAULT NULL COMMENT 'role extension data x',
  36. `datay` int(10) unsigned DEFAULT NULL COMMENT 'role extension data y',
  37. `dataz` int(10) unsigned DEFAULT NULL COMMENT 'role extension data z',
  38. PRIMARY KEY (`rid`),
  39. UNIQUE KEY `rid` (`rid`)
  40. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  41. # Dumping structure for table psquare.item
  42. CREATE TABLE IF NOT EXISTS `item` (
  43. `iid` int(10) unsigned NOT NULL COMMENT 'item id',
  44. `pid` int(10) unsigned NOT NULL COMMENT 'owner player id',
  45. `sid` int(10) unsigned NOT NULL COMMENT 'item static id',
  46. `endurance` smallint(5) unsigned NOT NULL COMMENT 'item endurance',
  47. `count` smallint(5) unsigned NOT NULL COMMENT 'item count',
  48. `elvl` tinyint(5) unsigned NOT NULL COMMENT 'item enchant level',
  49. `slotcnt` tinyint(5) unsigned NOT NULL COMMENT 'item slot count',
  50. `slot1` int(10) unsigned DEFAULT NULL COMMENT 'stones on item slot1',
  51. `slot2` int(10) unsigned DEFAULT NULL COMMENT 'stones on item slot2',
  52. `slot3` int(10) unsigned DEFAULT NULL COMMENT 'stones on item slot3',
  53. `datax` int(10) unsigned DEFAULT NULL COMMENT 'item extension data x',
  54. `datay` int(10) unsigned DEFAULT NULL COMMENT 'item extension data y',
  55. `dataz` int(10) unsigned DEFAULT NULL COMMENT 'item extension data z'
  56. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  57. # Data exporting was unselected.
  58. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  59. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  60. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;