Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

94 lines
3.4 KiB

  1. /*Table structure for table `gwaccounts` */
  2. CREATE TABLE `gwaccounts` (
  3. `accid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'this key will be bound by charrid in table gwchars',
  4. `userid` int(11) DEFAULT NULL,
  5. `accemail` varchar(50) DEFAULT NULL,
  6. PRIMARY KEY (`accid`)
  7. ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
  8. /*Table structure for table `gwaccstats` */
  9. CREATE TABLE `gwaccstats` (
  10. `titlenameid` int(11) DEFAULT NULL,
  11. `stnameid` int(2) DEFAULT NULL,
  12. `titlepoints` int(11) DEFAULT NULL,
  13. `currentstrankname` varchar(37) DEFAULT NULL,
  14. `currentstrank` int(11) DEFAULT NULL,
  15. `percent` int(3) DEFAULT NULL,
  16. `accid` int(11) DEFAULT NULL,
  17. `userid` int(11) DEFAULT NULL
  18. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  19. /*Table structure for table `gwchars` */
  20. CREATE TABLE `gwchars` (
  21. `charid` int(11) NOT NULL AUTO_INCREMENT,
  22. `accid` int(11) DEFAULT NULL,
  23. `userid` int(11) DEFAULT NULL,
  24. `charname` varchar(19) DEFAULT NULL,
  25. `birthdate` date DEFAULT NULL,
  26. `profid` int(2) DEFAULT NULL,
  27. `profcolor` char(7) NOT NULL DEFAULT '#45b39d',
  28. PRIMARY KEY (`charid`)
  29. ) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=latin1;
  30. /*Table structure for table `gwcharstats` */
  31. CREATE TABLE `gwcharstats` (
  32. `titlenameid` int(11) DEFAULT NULL,
  33. `stnameid` int(2) DEFAULT NULL,
  34. `titlepoinsts` int(11) DEFAULT NULL,
  35. `currentstrankname` varchar(37) DEFAULT NULL,
  36. `currentstrank` int(11) DEFAULT NULL,
  37. `percent` int(3) DEFAULT NULL,
  38. `charid` int(11) DEFAULT NULL,
  39. `accid` int(11) DEFAULT NULL,
  40. `userid` int(11) DEFAULT NULL
  41. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  42. /*Table structure for table `gwprofessions` */
  43. CREATE TABLE `gwprofessions` (
  44. `profid` int(2) NOT NULL AUTO_INCREMENT,
  45. `profession` varchar(12) DEFAULT NULL,
  46. `profcolor` char(4) DEFAULT NULL,
  47. PRIMARY KEY (`profid`)
  48. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
  49. /*Table structure for table `gwsubtitles` */
  50. CREATE TABLE `gwsubtitles` (
  51. `stnameid` int(11) NOT NULL AUTO_INCREMENT,
  52. `titlenameid` int(11) DEFAULT NULL COMMENT 'should be grabbed from the gwtitles table',
  53. `stname` varchar(50) DEFAULT NULL,
  54. `stpoints` int(11) DEFAULT NULL,
  55. `strank` int(11) DEFAULT NULL,
  56. PRIMARY KEY (`stnameid`)
  57. ) ENGINE=InnoDB AUTO_INCREMENT=304 DEFAULT CHARSET=latin1;
  58. /*Table structure for table `gwtitles` */
  59. CREATE TABLE `gwtitles` (
  60. `titlenameid` int(2) NOT NULL AUTO_INCREMENT,
  61. `titlename` varchar(40) DEFAULT NULL,
  62. `titletype` int(1) DEFAULT NULL COMMENT '0 = account, 1 = character',
  63. `titlemaxrank` int(2) DEFAULT NULL,
  64. PRIMARY KEY (`titlenameid`)
  65. ) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=latin1;
  66. /*Table structure for table `userinfo` */
  67. CREATE TABLE `userinfo` (
  68. `userid` int(11) NOT NULL AUTO_INCREMENT,
  69. `username` varchar(30) DEFAULT NULL,
  70. `userpass` varchar(255) DEFAULT NULL,
  71. `usermail` varchar(50) DEFAULT NULL,
  72. `admin` int(1) NOT NULL DEFAULT '0' COMMENT 'it''s either a 0 or 1',
  73. `prefaccid` int(11) NOT NULL DEFAULT '0' COMMENT 'sets which GW account to default to upon login',
  74. `prefaccname` varchar(50) DEFAULT 'No default selected' COMMENT 'name or alias of account',
  75. `prefcharid` int(11) NOT NULL DEFAULT '0' COMMENT 'sets which GW character you want to default to',
  76. `prefcharname` char(19) DEFAULT 'No default selected',
  77. PRIMARY KEY (`userid`)
  78. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;