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