1
0

001_RegionStore.sql 3.9 KB

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