Advertisement
Ramaraunt1

Untitled

Apr 30th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.3.7deb7
  3. -- http://www.phpmyadmin.net
  4.  
  5. -- Date: 30 April 2017 2:05 PM
  6.  
  7. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  8. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  9. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  10. /*!40101 SET NAMES utf8 */;
  11.  
  12. -- ---
  13. -- Table 'account'
  14. --
  15. -- ---
  16.  
  17. DROP TABLE IF EXISTS `account`;
  18.  
  19. CREATE TABLE `account` (
  20. `id` INTEGER(10) NULL AUTO_INCREMENT DEFAULT NULL,
  21. `guid` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is the players unique id!',
  22. `head` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is where head armor goes!',
  23. `body` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is where body armor goes!',
  24. `hand` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is where hand armor goes!',
  25. `foot` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is where foot armor goes!',
  26. `horse` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is where equiped horse goes!',
  27. `horse_health` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is where equiped horse health goes!',
  28. `slot1` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is item slot 1!',
  29. `slot2` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is item slot 2!',
  30. `slot3` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is item slot 3!',
  31. `slot4` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is item slot 4!',
  32. `health` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is player health!',
  33. `hunger` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is player hunger!',
  34. `faction` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is player faction!',
  35. `player_gold` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is player gold!',
  36. `bank_gold` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is player bank gold!',
  37. `status` VARCHAR NULL DEFAULT NULL COMMENT 'This is player status (online, offline, etc)',
  38. `posx` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is the player x position!',
  39. `posy` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is the player y position!',
  40. `posz` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is the player z position!',
  41. `banned_yes` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is if the player is banned or not!',
  42. `admin_level` VARCHAR(30) NULL DEFAULT NULL COMMENT '0 = none, 1 = teleport, 2 = kick, 3 = ban',
  43. PRIMARY KEY (`id`),
  44. UNIQUE KEY (`guid`)
  45. );
  46.  
  47. -- ---
  48. -- Table 'names'
  49. --
  50. -- ---
  51.  
  52. DROP TABLE IF EXISTS `names`;
  53.  
  54. CREATE TABLE `names` (
  55. `id` INTEGER NULL AUTO_INCREMENT DEFAULT NULL,
  56. `guid` VARCHAR(30) NULL DEFAULT NULL COMMENT 'This is the players unique id!',
  57. `name` VARCHAR(30) NULL DEFAULT NULL,
  58. PRIMARY KEY (`id`),
  59. UNIQUE KEY (`name`)
  60. );
  61.  
  62. -- ---
  63. -- Foreign Keys
  64. -- ---
  65.  
  66. ALTER TABLE `names` ADD FOREIGN KEY (guid) REFERENCES `account` (`guid`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement