001_RegionStore.sql 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. BEGIN;
  2. CREATE TABLE `prims` (
  3. `UUID` varchar(255) NOT NULL,
  4. `RegionUUID` varchar(255) default NULL,
  5. `ParentID` int(11) default NULL,
  6. `CreationDate` int(11) default NULL,
  7. `Name` varchar(255) default NULL,
  8. `SceneGroupID` varchar(255) default NULL,
  9. `Text` varchar(255) default NULL,
  10. `Description` varchar(255) default NULL,
  11. `SitName` varchar(255) default NULL,
  12. `TouchName` varchar(255) default NULL,
  13. `ObjectFlags` int(11) default NULL,
  14. `CreatorID` varchar(255) default NULL,
  15. `OwnerID` varchar(255) default NULL,
  16. `GroupID` varchar(255) default NULL,
  17. `LastOwnerID` varchar(255) default NULL,
  18. `OwnerMask` int(11) default NULL,
  19. `NextOwnerMask` int(11) default NULL,
  20. `GroupMask` int(11) default NULL,
  21. `EveryoneMask` int(11) default NULL,
  22. `BaseMask` int(11) default NULL,
  23. `PositionX` float default NULL,
  24. `PositionY` float default NULL,
  25. `PositionZ` float default NULL,
  26. `GroupPositionX` float default NULL,
  27. `GroupPositionY` float default NULL,
  28. `GroupPositionZ` float default NULL,
  29. `VelocityX` float default NULL,
  30. `VelocityY` float default NULL,
  31. `VelocityZ` float default NULL,
  32. `AngularVelocityX` float default NULL,
  33. `AngularVelocityY` float default NULL,
  34. `AngularVelocityZ` float default NULL,
  35. `AccelerationX` float default NULL,
  36. `AccelerationY` float default NULL,
  37. `AccelerationZ` float default NULL,
  38. `RotationX` float default NULL,
  39. `RotationY` float default NULL,
  40. `RotationZ` float default NULL,
  41. `RotationW` float default NULL,
  42. `SitTargetOffsetX` float default NULL,
  43. `SitTargetOffsetY` float default NULL,
  44. `SitTargetOffsetZ` float default NULL,
  45. `SitTargetOrientW` float default NULL,
  46. `SitTargetOrientX` float default NULL,
  47. `SitTargetOrientY` float default NULL,
  48. `SitTargetOrientZ` float default NULL,
  49. PRIMARY KEY (`UUID`)
  50. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  51. CREATE TABLE `primshapes` (
  52. `UUID` varchar(255) NOT NULL,
  53. `Shape` int(11) default NULL,
  54. `ScaleX` float default NULL,
  55. `ScaleY` float default NULL,
  56. `ScaleZ` float default NULL,
  57. `PCode` int(11) default NULL,
  58. `PathBegin` int(11) default NULL,
  59. `PathEnd` int(11) default NULL,
  60. `PathScaleX` int(11) default NULL,
  61. `PathScaleY` int(11) default NULL,
  62. `PathShearX` int(11) default NULL,
  63. `PathShearY` int(11) default NULL,
  64. `PathSkew` int(11) default NULL,
  65. `PathCurve` int(11) default NULL,
  66. `PathRadiusOffset` int(11) default NULL,
  67. `PathRevolutions` int(11) default NULL,
  68. `PathTaperX` int(11) default NULL,
  69. `PathTaperY` int(11) default NULL,
  70. `PathTwist` int(11) default NULL,
  71. `PathTwistBegin` int(11) default NULL,
  72. `ProfileBegin` int(11) default NULL,
  73. `ProfileEnd` int(11) default NULL,
  74. `ProfileCurve` int(11) default NULL,
  75. `ProfileHollow` int(11) default NULL,
  76. `State` int(11) default NULL,
  77. `Texture` longblob,
  78. `ExtraParams` longblob,
  79. PRIMARY KEY (`UUID`)
  80. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  81. CREATE TABLE `primitems` (
  82. `itemID` varchar(255) NOT NULL,
  83. `primID` varchar(255) default NULL,
  84. `assetID` varchar(255) default NULL,
  85. `parentFolderID` varchar(255) default NULL,
  86. `invType` int(11) default NULL,
  87. `assetType` int(11) default NULL,
  88. `name` varchar(255) default NULL,
  89. `description` varchar(255) default NULL,
  90. `creationDate` bigint(20) default NULL,
  91. `creatorID` varchar(255) default NULL,
  92. `ownerID` varchar(255) default NULL,
  93. `lastOwnerID` varchar(255) default NULL,
  94. `groupID` varchar(255) default NULL,
  95. `nextPermissions` int(11) default NULL,
  96. `currentPermissions` int(11) default NULL,
  97. `basePermissions` int(11) default NULL,
  98. `everyonePermissions` int(11) default NULL,
  99. `groupPermissions` int(11) default NULL,
  100. PRIMARY KEY (`itemID`)
  101. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  102. CREATE TABLE `terrain` (
  103. `RegionUUID` varchar(255) default NULL,
  104. `Revision` int(11) default NULL,
  105. `Heightfield` longblob
  106. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  107. CREATE TABLE `land` (
  108. `UUID` varchar(255) NOT NULL,
  109. `RegionUUID` varchar(255) default NULL,
  110. `LocalLandID` int(11) default NULL,
  111. `Bitmap` longblob,
  112. `Name` varchar(255) default NULL,
  113. `Description` varchar(255) default NULL,
  114. `OwnerUUID` varchar(255) default NULL,
  115. `IsGroupOwned` int(11) default NULL,
  116. `Area` int(11) default NULL,
  117. `AuctionID` int(11) default NULL,
  118. `Category` int(11) default NULL,
  119. `ClaimDate` int(11) default NULL,
  120. `ClaimPrice` int(11) default NULL,
  121. `GroupUUID` varchar(255) default NULL,
  122. `SalePrice` int(11) default NULL,
  123. `LandStatus` int(11) default NULL,
  124. `LandFlags` int(11) default NULL,
  125. `LandingType` int(11) default NULL,
  126. `MediaAutoScale` int(11) default NULL,
  127. `MediaTextureUUID` varchar(255) default NULL,
  128. `MediaURL` varchar(255) default NULL,
  129. `MusicURL` varchar(255) default NULL,
  130. `PassHours` float default NULL,
  131. `PassPrice` int(11) default NULL,
  132. `SnapshotUUID` varchar(255) default NULL,
  133. `UserLocationX` float default NULL,
  134. `UserLocationY` float default NULL,
  135. `UserLocationZ` float default NULL,
  136. `UserLookAtX` float default NULL,
  137. `UserLookAtY` float default NULL,
  138. `UserLookAtZ` float default NULL,
  139. `AuthbuyerID` varchar(36) NOT NULL default '00000000-0000-0000-0000-000000000000',
  140. PRIMARY KEY (`UUID`)
  141. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  142. CREATE TABLE `landaccesslist` (
  143. `LandUUID` varchar(255) default NULL,
  144. `AccessUUID` varchar(255) default NULL,
  145. `Flags` int(11) default NULL
  146. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  147. COMMIT;