Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

81 рядки
3.0 KiB

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