001_RegionStore.sql 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. CREATE TABLE Prims (
  2. UUID VARCHAR(36) NOT NULL,
  3. RegionID VARCHAR(36) DEFAULT NULL,
  4. GroupID VARCHAR(36) DEFAULT NULL,
  5. ParentID INT DEFAULT NULL,
  6. ParentUUID VARCHAR(36) DEFAULT NULL,
  7. OwnerID VARCHAR(36) DEFAULT NULL,
  8. LastOwnerID VARCHAR(36) DEFAULT NULL,
  9. CreatorID VARCHAR(36) DEFAULT NULL,
  10. CreationDate INT DEFAULT NULL,
  11. LinkNum INT DEFAULT NULL,
  12. Name VARCHAR(255) DEFAULT NULL,
  13. Text VARCHAR(255) DEFAULT NULL,
  14. Description VARCHAR(255) DEFAULT NULL,
  15. SitName VARCHAR(255) DEFAULT NULL,
  16. TouchName VARCHAR(255) DEFAULT NULL,
  17. ObjectFlags INT DEFAULT NULL,
  18. OwnerMask INT DEFAULT NULL,
  19. NextOwnerMask INT DEFAULT NULL,
  20. GroupMask INT DEFAULT NULL,
  21. EveryoneMask INT DEFAULT NULL,
  22. BaseMask INT DEFAULT NULL,
  23. Material TINYINT DEFAULT NULL,
  24. ScriptAccessPin INT DEFAULT NULL,
  25. TextureAnimation BLOB,
  26. ParticleSystem BLOB,
  27. ClickAction TINYINT DEFAULT NULL,
  28. Color INT DEFAULT NULL,
  29. PositionX DOUBLE DEFAULT NULL,
  30. PositionY DOUBLE DEFAULT NULL,
  31. PositionZ DOUBLE DEFAULT NULL,
  32. GroupPositionX DOUBLE DEFAULT NULL,
  33. GroupPositionY DOUBLE DEFAULT NULL,
  34. GroupPositionZ DOUBLE DEFAULT NULL,
  35. VelocityX DOUBLE DEFAULT NULL,
  36. VelocityY DOUBLE DEFAULT NULL,
  37. VelocityZ DOUBLE DEFAULT NULL,
  38. AngularVelocityX DOUBLE DEFAULT NULL,
  39. AngularVelocityY DOUBLE DEFAULT NULL,
  40. AngularVelocityZ DOUBLE DEFAULT NULL,
  41. AccelerationX DOUBLE DEFAULT NULL,
  42. AccelerationY DOUBLE DEFAULT NULL,
  43. AccelerationZ DOUBLE DEFAULT NULL,
  44. RotationX DOUBLE DEFAULT NULL,
  45. RotationY DOUBLE DEFAULT NULL,
  46. RotationZ DOUBLE DEFAULT NULL,
  47. RotationW DOUBLE DEFAULT NULL,
  48. SitTargetOffsetX DOUBLE DEFAULT NULL,
  49. SitTargetOffsetY DOUBLE DEFAULT NULL,
  50. SitTargetOffsetZ DOUBLE DEFAULT NULL,
  51. SitTargetOrientW DOUBLE DEFAULT NULL,
  52. SitTargetOrientX DOUBLE DEFAULT NULL,
  53. SitTargetOrientY DOUBLE DEFAULT NULL,
  54. SitTargetOrientZ DOUBLE DEFAULT NULL,
  55. -- this is the shape
  56. Shape INT DEFAULT NULL,
  57. ScaleX DOUBLE DEFAULT NULL,
  58. ScaleY DOUBLE DEFAULT NULL,
  59. ScaleZ DOUBLE DEFAULT NULL,
  60. PCode INT DEFAULT NULL,
  61. PathBegin INT DEFAULT NULL,
  62. PathEnd INT DEFAULT NULL,
  63. PathScaleX INT DEFAULT NULL,
  64. PathScaleY INT DEFAULT NULL,
  65. PathShearX INT DEFAULT NULL,
  66. PathShearY INT DEFAULT NULL,
  67. PathSkew INT DEFAULT NULL,
  68. PathCurve INT DEFAULT NULL,
  69. PathRadiusOffset INT DEFAULT NULL,
  70. PathRevolutions INT DEFAULT NULL,
  71. PathTaperX INT DEFAULT NULL,
  72. PathTaperY INT DEFAULT NULL,
  73. PathTwist INT DEFAULT NULL,
  74. ProfileBegin INT DEFAULT NULL,
  75. ProfileEnd INT DEFAULT NULL,
  76. ProfileCurve INT DEFAULT NULL,
  77. ProfileHollow INT DEFAULT NULL,
  78. State INT DEFAULT NULL,
  79. Texture LONGBLOB,
  80. ExtraParams LONGBLOB,
  81. PRIMARY KEY (UUID)
  82. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  83. CREATE INDEX PrimsRegionIdIndex ON Prims (RegionID);
  84. CREATE INDEX PrimsRegionParentUuidIndex ON Prims (ParentUUID);
  85. CREATE TABLE Terrain (
  86. RegionID VARCHAR(36) not null,
  87. MapData LONGBLOB,
  88. PRIMARY KEY (RegionID)
  89. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  90. CREATE TABLE PrimItems (
  91. ItemID VARCHAR(36) NOT NULL,
  92. GroupID VARCHAR(36) DEFAULT NULL,
  93. PrimID VARCHAR(36) DEFAULT NULL,
  94. ParentFolderID VARCHAR(36) DEFAULT NULL,
  95. AssetID VARCHAR(36) DEFAULT NULL,
  96. OwnerID VARCHAR(36) DEFAULT NULL,
  97. LastOwnerID VARCHAR(36) DEFAULT NULL,
  98. CreatorID VARCHAR(36) DEFAULT NULL,
  99. CreationDate BIGINT DEFAULT NULL,
  100. Type INT DEFAULT NULL,
  101. InvType INT DEFAULT NULL,
  102. Name VARCHAR(255) DEFAULT NULL,
  103. Description VARCHAR(255) DEFAULT NULL,
  104. NextPermissions INT DEFAULT NULL,
  105. CurrentPermissions INT DEFAULT NULL,
  106. BasePermissions INT DEFAULT NULL,
  107. EveryonePermissions INT DEFAULT NULL,
  108. GroupPermissions INT DEFAULT NULL,
  109. Flags INT DEFAULT NULL,
  110. PRIMARY KEY (ItemID)
  111. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  112. CREATE INDEX PrimItemsPrimIdIndex ON PrimItems (PrimID);
  113. CREATE TABLE RegionSettings (
  114. RegionID VARCHAR(36) NOT NULL,
  115. BlockTerraform BIT DEFAULT NULL,
  116. BlockFly BIT DEFAULT NULL,
  117. AllowDamage BIT DEFAULT NULL,
  118. RestrictPushing BIT DEFAULT NULL,
  119. AllowLandResell BIT DEFAULT NULL,
  120. AllowLandJoinDivide BIT DEFAULT NULL,
  121. BlockShowInSearch BIT DEFAULT NULL,
  122. AgentLimit INT DEFAULT NULL,
  123. ObjectBonus DOUBLE DEFAULT NULL,
  124. Maturity INT DEFAULT NULL,
  125. DisableScripts BIT DEFAULT NULL,
  126. DisableCollisions BIT DEFAULT NULL,
  127. DisablePhysics BIT DEFAULT NULL,
  128. TerrainTexture1 VARCHAR(36) DEFAULT NULL,
  129. TerrainTexture2 VARCHAR(36) DEFAULT NULL,
  130. TerrainTexture3 VARCHAR(36) DEFAULT NULL,
  131. TerrainTexture4 VARCHAR(36) DEFAULT NULL,
  132. Elevation1NW DOUBLE DEFAULT NULL,
  133. Elevation2NW DOUBLE DEFAULT NULL,
  134. Elevation1NE DOUBLE DEFAULT NULL,
  135. Elevation2NE DOUBLE DEFAULT NULL,
  136. Elevation1SE DOUBLE DEFAULT NULL,
  137. Elevation2SE DOUBLE DEFAULT NULL,
  138. Elevation1SW DOUBLE DEFAULT NULL,
  139. Elevation2SW DOUBLE DEFAULT NULL,
  140. WaterHeight DOUBLE DEFAULT NULL,
  141. TerrainRaiseLimit DOUBLE DEFAULT NULL,
  142. TerrainLowerLimit DOUBLE DEFAULT NULL,
  143. UseEstateSun BIT DEFAULT NULL,
  144. Sandbox BIT DEFAULT NULL,
  145. SunVectorX DOUBLE DEFAULT NULL,
  146. SunVectorY DOUBLE DEFAULT NULL,
  147. SunVectorZ DOUBLE DEFAULT NULL,
  148. FixedSun BIT DEFAULT NULL,
  149. SunPosition DOUBLE DEFAULT NULL,
  150. Covenant VARCHAR(36) DEFAULT NULL,
  151. PRIMARY KEY (RegionID)
  152. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';