013_RegionStore.sql 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. begin;
  2. drop table regionsettings;
  3. CREATE TABLE `regionsettings` (
  4. `regionUUID` char(36) NOT NULL,
  5. `block_terraform` int(11) NOT NULL,
  6. `block_fly` int(11) NOT NULL,
  7. `allow_damage` int(11) NOT NULL,
  8. `restrict_pushing` int(11) NOT NULL,
  9. `allow_land_resell` int(11) NOT NULL,
  10. `allow_land_join_divide` int(11) NOT NULL,
  11. `block_show_in_search` int(11) NOT NULL,
  12. `agent_limit` int(11) NOT NULL,
  13. `object_bonus` float NOT NULL,
  14. `maturity` int(11) NOT NULL,
  15. `disable_scripts` int(11) NOT NULL,
  16. `disable_collisions` int(11) NOT NULL,
  17. `disable_physics` int(11) NOT NULL,
  18. `terrain_texture_1` char(36) NOT NULL,
  19. `terrain_texture_2` char(36) NOT NULL,
  20. `terrain_texture_3` char(36) NOT NULL,
  21. `terrain_texture_4` char(36) NOT NULL,
  22. `elevation_1_nw` float NOT NULL,
  23. `elevation_2_nw` float NOT NULL,
  24. `elevation_1_ne` float NOT NULL,
  25. `elevation_2_ne` float NOT NULL,
  26. `elevation_1_se` float NOT NULL,
  27. `elevation_2_se` float NOT NULL,
  28. `elevation_1_sw` float NOT NULL,
  29. `elevation_2_sw` float NOT NULL,
  30. `water_height` float NOT NULL,
  31. `terrain_raise_limit` float NOT NULL,
  32. `terrain_lower_limit` float NOT NULL,
  33. `use_estate_sun` int(11) NOT NULL,
  34. `fixed_sun` int(11) NOT NULL,
  35. `sun_position` float NOT NULL,
  36. `covenant` char(36) default NULL,
  37. `Sandbox` tinyint(4) NOT NULL,
  38. PRIMARY KEY (`regionUUID`)
  39. ) ENGINE=InnoDB;
  40. CREATE TABLE `estate_managers` (
  41. `EstateID` int(10) unsigned NOT NULL,
  42. `uuid` char(36) NOT NULL,
  43. KEY `EstateID` (`EstateID`)
  44. ) ENGINE=InnoDB;
  45. CREATE TABLE `estate_groups` (
  46. `EstateID` int(10) unsigned NOT NULL,
  47. `uuid` char(36) NOT NULL,
  48. KEY `EstateID` (`EstateID`)
  49. ) ENGINE=InnoDB;
  50. CREATE TABLE `estate_users` (
  51. `EstateID` int(10) unsigned NOT NULL,
  52. `uuid` char(36) NOT NULL,
  53. KEY `EstateID` (`EstateID`)
  54. ) ENGINE=InnoDB;
  55. CREATE TABLE `estateban` (
  56. `EstateID` int(10) unsigned NOT NULL,
  57. `bannedUUID` varchar(36) NOT NULL,
  58. `bannedIp` varchar(16) NOT NULL,
  59. `bannedIpHostMask` varchar(16) NOT NULL,
  60. `bannedNameMask` varchar(64) default NULL,
  61. KEY `estateban_EstateID` (`EstateID`)
  62. ) ENGINE=InnoDB;
  63. CREATE TABLE `estate_settings` (
  64. `EstateID` int(10) unsigned NOT NULL auto_increment,
  65. `EstateName` varchar(64) default NULL,
  66. `AbuseEmailToEstateOwner` tinyint(4) NOT NULL,
  67. `DenyAnonymous` tinyint(4) NOT NULL,
  68. `ResetHomeOnTeleport` tinyint(4) NOT NULL,
  69. `FixedSun` tinyint(4) NOT NULL,
  70. `DenyTransacted` tinyint(4) NOT NULL,
  71. `BlockDwell` tinyint(4) NOT NULL,
  72. `DenyIdentified` tinyint(4) NOT NULL,
  73. `AllowVoice` tinyint(4) NOT NULL,
  74. `UseGlobalTime` tinyint(4) NOT NULL,
  75. `PricePerMeter` int(11) NOT NULL,
  76. `TaxFree` tinyint(4) NOT NULL,
  77. `AllowDirectTeleport` tinyint(4) NOT NULL,
  78. `RedirectGridX` int(11) NOT NULL,
  79. `RedirectGridY` int(11) NOT NULL,
  80. `ParentEstateID` int(10) unsigned NOT NULL,
  81. `SunPosition` double NOT NULL,
  82. `EstateSkipScripts` tinyint(4) NOT NULL,
  83. `BillableFactor` float NOT NULL,
  84. `PublicAccess` tinyint(4) NOT NULL,
  85. PRIMARY KEY (`EstateID`)
  86. ) ENGINE=InnoDB AUTO_INCREMENT=100;
  87. CREATE TABLE `estate_map` (
  88. `RegionID` char(36) NOT NULL default '00000000-0000-0000-0000-000000000000',
  89. `EstateID` int(11) NOT NULL,
  90. PRIMARY KEY (`RegionID`),
  91. KEY `EstateID` (`EstateID`)
  92. ) ENGINE=InnoDB;
  93. commit;