001_RegionStore.sql 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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(UUID varchar(255) primary key,
  50. Shape integer,
  51. ScaleX float,
  52. ScaleY float,
  53. ScaleZ float,
  54. PCode integer,
  55. PathBegin integer,
  56. PathEnd integer,
  57. PathScaleX integer,
  58. PathScaleY integer,
  59. PathShearX integer,
  60. PathShearY integer,
  61. PathSkew integer,
  62. PathCurve integer,
  63. PathRadiusOffset integer,
  64. PathRevolutions integer,
  65. PathTaperX integer,
  66. PathTaperY integer,
  67. PathTwist integer,
  68. PathTwistBegin integer,
  69. ProfileBegin integer,
  70. ProfileEnd integer,
  71. ProfileCurve integer,
  72. ProfileHollow integer,
  73. State integer,
  74. Texture blob,
  75. ExtraParams blob);
  76. CREATE TABLE terrain(
  77. RegionUUID varchar(255),
  78. Revision integer,
  79. Heightfield blob);
  80. CREATE TABLE land(
  81. UUID varchar(255) primary key,
  82. RegionUUID varchar(255),
  83. LocalLandID string,
  84. Bitmap blob,
  85. Name varchar(255),
  86. Desc varchar(255),
  87. OwnerUUID varchar(36),
  88. IsGroupOwned string,
  89. Area integer,
  90. AuctionID integer,
  91. Category integer,
  92. ClaimDate integer,
  93. ClaimPrice integer,
  94. GroupUUID varchar(255),
  95. SalePrice integer,
  96. LandStatus integer,
  97. LandFlags string,
  98. LandingType string,
  99. MediaAutoScale string,
  100. MediaTextureUUID varchar(255),
  101. MediaURL varchar(255),
  102. MusicURL varchar(255),
  103. PassHours float,
  104. PassPrice string,
  105. SnapshotUUID varchar(255),
  106. UserLocationX float,
  107. UserLocationY float,
  108. UserLocationZ float,
  109. UserLookAtX float,
  110. UserLookAtY float,
  111. UserLookAtZ float);
  112. CREATE TABLE landaccesslist(
  113. LandUUID varchar(255),
  114. AccessUUID varchar(255),
  115. Flags string);
  116. COMMIT;