Prims (database table)

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Updated to 0.7.6 migration level)
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Database]]
+
__NOTOC__
 +
{{Quicklinks}}
 +
<br />
  
'''Prims''' ''Describes all Prim attributes except shape and content ''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
+
'''Prims''' ''Describes all rezzed prim attributes except shape and content ''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
<br><br>
+
<br /><br />
The current structure of the Prims table is as follows:<br>
+
The current structure of the Prims table is as follows:<br />
<br>
+
{| style="border:1px solid #ccc;"
<table>
+
|- style="background:#cce;"
<tr><td>Field<br></td><td>Type</td><td>Null</td><td>Key</td><td>Default</td><td>Extra</td></tr>
+
! Field
<tr><td>&nbsp;</td></tr>
+
! Type
<tr><td>CreationDate</td><td>int(11)</td><td>YES</td><td></td><td></td><td></td></tr>
+
! Null
<tr><td>Name</td><td>varchar(255)</td><td>YES</td><td></td><td></td><td></td></tr>
+
! Key
<tr><td>Text</td><td>varchar(255)</td><td>YES</td><td></td><td></td><td></td></tr>
+
! Default
<tr><td>Description</td><td>varchar(255)</td><td>YES</td><td></td><td></td><td></td></tr>
+
! Extra
<tr><td>SitName</td><td>varchar(255)</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>TouchName</td><td>varchar(255)</td><td>YES</td><td></td><td></td><td></td></tr>
+
| CreationDate         || int(11)     || YES ||    || NULL                                ||
<tr><td>ObjectFlags</td><td>int(11)</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>OwnerMask</td><td>int(11)</td><td>YES</td><td></td><td></td><td></td></tr>
+
| Name                 || varchar(255) || YES ||    || NULL                                ||
<tr><td>nextOwnerMask</td><td>int(11)</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>GroupMask</td><td>int(11)</td><td>YES</td><td></td><td></td><td></td></tr>
+
| Text                 || varchar(255) || YES ||    || NULL                                ||
<tr><td>EveryoneMask</td><td>int(11)</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>BaseMask</td><td>int(11)</td><td>YES</td><td></td><td></td><td></td></tr>
+
| Description         || varchar(255) || YES ||    || NULL                                ||
<tr><td>PositionX</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>PositionY</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| SitName             || varchar(255) || YES ||    || NULL                                ||
<tr><td>PositionZ</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>GroupPositionX</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| TouchName           || varchar(255) || YES ||    || NULL                                ||
<tr><td>GroupPositionY</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>GroupPositionZ</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| ObjectFlags         || int(11)     || YES ||    || NULL                                ||
<tr><td>VelocityX</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>VelocityY</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| OwnerMask           || int(11)     || YES ||    || NULL                                ||
<tr><td>VelocityZ</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>AngularVelocityX</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| NextOwnerMask        || int(11)     || YES ||    || NULL                                ||
<tr><td>AngularVelocityY</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>AngularVelocityZ</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| GroupMask           || int(11)     || YES ||    || NULL                                ||
<tr><td>AccelerationX</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>AccelerationY</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| EveryoneMask         || int(11)     || YES ||    || NULL                                ||
<tr><td>AccelerationZ</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>RotationX</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| BaseMask             || int(11)     || YES ||    || NULL                                ||
<tr><td>RotationY</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>RotationZ</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| PositionX           || double       || YES ||    || NULL                                ||
<tr><td>RotationW</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>SitTargetOffsetX</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| PositionY           || double       || YES ||    || NULL                                ||
<tr><td>SitTargetOffsetY</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>SitTargetOffsetZ</td><td>double</td><td>YES</td><td></td><td></td><td></td></tr>
+
| PositionZ           || double       || YES ||    || NULL                                ||
<tr><td>UUID</td><td>char(36)</td><td>NO</td><td>PRI</td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>RegionUUID</td><td>char(36)</td><td>YES</td><td>MUL</td><td></td><td></td></tr>
+
| GroupPositionX       || double       || YES ||    || NULL                                ||
<tr><td>CreatorID</td><td>char(36)</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>OwnerID</td><td>char(36)</td><td>YES</td><td></td><td></td><td></td></tr>
+
| GroupPositionY       || double       || YES ||    || NULL                                ||
<tr><td>GroupID</td><td>char(36)</td><td>YES</td><td></td><td></td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>LastOwnerID</td><td>char(36)</td><td>YES</td><td></td><td></td><td></td></tr>
+
| GroupPositionZ       || double       || YES ||    || NULL                                ||
<tr><td>SceneGroupID</td><td>char(36)</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>PayPrice</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| VelocityX           || double       || YES ||    || NULL                                ||
<tr><td>PayButton1</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>PayButton2</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| VelocityY           || double       || YES ||    || NULL                                ||
<tr><td>PayButton3</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|-
<tr><td>PayButton4</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| VelocityZ           || double       || YES ||    || NULL                                ||
<tr><td>LoopedSound</td><td>char(36)</td><td>NO</td><td></td><td>00000000-0000-0000-0000-000000000000</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>LoopedSoundGain</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| AngularVelocityX     || double       || YES ||    || NULL                                ||
<tr><td>TextureAnnimation</td><td>blob</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>OmegaX</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| AngularVelocityY     || double       || YES ||    || NULL                                ||
<tr><td>OmegaY</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>OmegaZ</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| AngularVelocityZ     || double       || YES ||    || NULL                                ||
<tr><td>CameraEyeOffsetX</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|-
<tr><td>CameraEyeOffsetY</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| AccelerationX       || double       || YES ||    || NULL                                ||
<tr><td>CameraEyeOffsetZ</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>CameraAtOffsetX</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| AccelerationY       || double       || YES ||    || NULL                                ||
<tr><td>CameraAtOffsetY</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|-
<tr><td>CameraAtOffsetZ</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| AccelerationZ       || double       || YES ||    || NULL                                ||
<tr><td>ForceMouselook</td><td>tinyint(4)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>ScriptAccessPin</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| RotationX           || double       || YES ||    || NULL                                ||
<tr><td>AllowedDrop</td><td>tinyint(4)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|-
<tr><td>DieAtEdge</td><td>tinyint(4)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| RotationY           || double       || YES ||    || NULL                                ||
<tr><td>SalePrice</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>SaleType</td><td>tinyint(4)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| RotationZ           || double       || YES ||    || NULL                                ||
<tr><td>ColorR</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|-
<tr><td>ColorG</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| RotationW           || double       || YES ||    || NULL                                ||
<tr><td>ColorB</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>ColorA</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| SitTargetOffsetX     || double       || YES ||    || NULL                                ||
<tr><td>ParticleSystem</td><td>blob</td><td>YES</td><td></td><td></td><td></td></tr>
+
|-
<tr><td>ClickAction</td><td>tinyint(4)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| SitTargetOffsetY     || double       || YES ||    || NULL                                ||
<tr><td>Material</td><td>tinyint(4)</td><td>NO</td><td></td><td>3</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>CollisionSound</td><td>char(36)</td><td>NO</td><td></td><td>00000000-0000-0000-0000-000000000000</td><td></td></tr>
+
| SitTargetOffsetZ     || double       || YES ||    || NULL                                ||
<tr><td>CollisionSoundVolume</td><td>double</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
|-
<tr><td>LinkNumber</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
| SitTargetOrientW    || double      || YES  ||    || NULL                                ||
</table>
+
|- style="background:#eee;"
<br>
+
| SitTargetOrientX    || double      || YES  ||    || NULL                                ||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br>
+
|-
<hr>
+
| SitTargetOrientY    || double      || YES  ||    || NULL                                ||
 +
|- style="background:#eee;"
 +
| SitTargetOrientZ    || double      || YES  ||    || NULL                                ||
 +
|-
 +
| UUID                 || char(36)     || NO   || PRI ||                                      ||
 +
|- style="background:#eee;"
 +
| RegionUUID           || char(36)     || YES || MUL || NULL                                ||
 +
|-
 +
| CreatorID           || varchar(255) || NO  ||    ||                                      ||
 +
|- style="background:#eee;"
 +
| OwnerID              || char(36)     || YES  ||    || NULL                                ||
 +
|-
 +
| GroupID              || char(36)    || YES  ||    || NULL                                ||
 +
|- style="background:#eee;"
 +
| LastOwnerID          || char(36)    || YES  ||    || NULL                                ||
 +
|-
 +
| SceneGroupID        || char(36)    || YES  || MUL || NULL                                ||
 +
|- style="background:#eee;"
 +
| PayPrice            || int(11)      || NO  ||    || 0                                    ||
 +
|-
 +
| PayButton1          || int(11)      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| PayButton2          || int(11)      || NO  ||    || 0                                    ||
 +
|-
 +
| PayButton3          || int(11)      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| PayButton4          || int(11)      || NO  ||    || 0                                    ||
 +
|-
 +
| LoopedSound          || char(36)    || NO  ||    || 00000000-0000-0000-0000-000000000000 ||
 +
|- style="background:#eee;"
 +
| LoopedSoundGain      || double      || NO  ||    || 0                                    ||
 +
|-
 +
| TextureAnimation    || blob        || YES  ||    || NULL                                ||
 +
|- style="background:#eee;"
 +
| OmegaX              || double      || NO  ||    || 0                                    ||
 +
|-
 +
| OmegaY              || double      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| OmegaZ              || double      || NO  ||    || 0                                    ||
 +
|-
 +
| CameraEyeOffsetX    || double      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| CameraEyeOffsetY    || double      || NO  ||    || 0                                    ||
 +
|-
 +
| CameraEyeOffsetZ    || double      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| CameraAtOffsetX      || double      || NO  ||    || 0                                    ||
 +
|-
 +
| CameraAtOffsetY      || double      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| CameraAtOffsetZ      || double      || NO  ||    || 0                                    ||
 +
|-
 +
| ForceMouselook      || tinyint(4)  || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| ScriptAccessPin      || int(11)      || NO  ||    || 0                                    ||
 +
|-
 +
| AllowedDrop          || tinyint(4)  || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| DieAtEdge            || tinyint(4)  || NO  ||    || 0                                    ||
 +
|-
 +
| SalePrice            || int(11)      || NO  ||    || 10                                  ||
 +
|- style="background:#eee;"
 +
| SaleType            || tinyint(4)  || NO  ||    || 0                                    ||
 +
|-
 +
| ColorR              || int(11)      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| ColorG              || int(11)      || NO  ||    || 0                                    ||
 +
|-
 +
| ColorB              || int(11)      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| ColorA              || int(11)      || NO  ||    || 0                                    ||
 +
|-
 +
| ParticleSystem      || blob        || YES  ||    || NULL                                ||
 +
|- style="background:#eee;"
 +
| ClickAction          || tinyint(4)  || NO  ||    || 0                                    ||
 +
|-
 +
| Material            || tinyint(4)  || NO  ||    || 3                                    ||
 +
|- style="background:#eee;"
 +
| CollisionSound      || char(36)    || NO  ||    || 00000000-0000-0000-0000-000000000000 ||
 +
|-
 +
| CollisionSoundVolume || double      || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| LinkNumber          || int(11)      || NO  ||    || 0                                    ||
 +
|-
 +
| PassTouches          || tinyint(4)  || NO  ||    || 0                                    ||
 +
|- style="background:#eee;"
 +
| MediaURL            || varchar(255) || YES  ||    || NULL                                ||
 +
|-
 +
| DynAttrs            || text        || YES  ||    || NULL                                ||
 +
|- style="background:#eee;"
 +
| PhysicsShapeType    || tinyint(4)  || NO  ||    || 0                                    ||
 +
|-
 +
| Density              || double      || NO  ||    || 1000                                ||
 +
|- style="background:#eee;"
 +
| GravityModifier      || double      || NO  ||    || 1                                    ||
 +
|-
 +
| Friction            || double      || NO  ||    || 0.6                                  ||
 +
|- style="background:#eee;"
 +
| Restitution          || double      || NO  ||    || 0.5                                  ||
 +
|-
 +
| KeyframeMotion      || blob        || YES  ||    || NULL                                ||
 +
|}<br />
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br />
 +
----
 +
<br />
 +
'''CreationDate'''
 +
<br />
 +
The date in standard UNIX format that the Prim was created.
 +
<br />
 +
<br />
 +
'''Name'''
 +
<br />
 +
The Name of the Prim.
 +
<br />
 +
<br />
 +
'''Text'''
 +
<br />
 +
&nbsp;
 +
<br />
 +
<br />
 +
'''Description'''
 +
<br />
 +
What the Prim is.
 +
<br />
 +
<br />
 +
'''SitName'''
 +
<br />
 +
A name given to the Sit event.
 +
<br />
 +
<br />
 +
'''TouchName'''
 +
<br />
 +
A name given to the Touch action.
 +
<br />
 +
<br />
 +
'''SitName'''
 +
<br />
 +
A name given to the Sit event.
 +
<br />
 +
<br />
 +
'''ObjectFlags'''
 +
<br />
 +
ObjectFlags are defined here: [[OpenSim:Permissions#ObjectFlags_.28F.29]]
 +
<br />
 +
<br />
 +
'''OwnerMask'''
 +
<br />
 +
The permissions of the current owner. Further details are available here: [[OpenSim:Permissions#OwnerMask_.28O.29]]
 +
<br />
 +
<br />
 +
'''NextOwnerMasks'''
 +
<br />
 +
The permissions to be passed to the next owner. Further details are available here: [[OpenSim:Permissions#NextOwnerMask_.28N.29]]
 +
<br />
 +
<br />
 +
'''GroupMask'''
 +
<br />
 +
GroupMask is not yet implemented. However further details are available here: [[OpenSim:Permissions#GroupMask_.28G.29]]
 +
<br />
 +
<br />
 +
'''EveryoneMask'''
 +
<br />
 +
The permissions given to other users. Further details are available here: [[OpenSim:Permissions#EveryoneMask_.28E.29]]
 +
<br />
 +
<br />
 +
'''BaseMask'''
 +
<br />
 +
The initial permissions given to the current owner. Further details are available here: [[OpenSim:Permissions#BaseMask_.28B.29]]
 +
<br />
 +
<br />
 +
'''PositionX'''
 +
<br />
 +
The distance in metres of this prim from GroupPositionX.
 +
<br />
 +
<br />
 +
'''PositionY'''
 +
<br />
 +
The distance in metres of this prim from GroupPositionY.
 +
<br />
 +
<br />
 +
'''PositionZ'''
 +
<br />
 +
The distance in metres of this prim from GroupPositionZ.
 +
<br />
 +
'''GroupPositionX'''
 +
<br />
 +
The X-axis location of the centre of the primary prim in the linked set to which this Prim belongs. Measured in metres relative to the origin of the region.
 +
<br />
 +
<br />
 +
'''GroupPositionY'''
 +
<br />
 +
The Y-axis location of the centre of the primary prim in the linked set to which this Prim belongs. Measured in metres relative to the origin of the region.
 +
<br />
 +
<br />
 +
'''GroupPositionZ'''
 +
<br />
 +
The Z-axis (height) location of the centre of the primary prim in the linked set to which this Prim belongs. Measured in metres.
 +
<br />
 +
'''VelocityX'''
 +
<br />
 +
The speed at which the prim moves (+ or -) in the X-axis.
 +
<br />
 +
<br />
 +
'''VelocityY'''
 +
<br />
 +
The speed at which the prim moves (+ or -) in the Y-axis.
 +
<br />
 +
<br />
 +
'''VelocityZ'''
 +
<br />
 +
The speed at which the prim moves (+ or -) vertically.
 +
<br />
 +
<br />
 +
'''AngularVelocityX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''AngularVelocityY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''AngularVelocityZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''AccelerationX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''AccelerationY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''AccelerationZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''RotationX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''RotationY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''RotationZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''RotationW'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SitTargetOffsetX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SitTargetOffsetY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SitTargetOffsetZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SitTargetOrientW'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SitTargetOrientX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SitTargetOrientY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SitTargetOrientZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''UUID'''
 +
<br />
 +
The unique key of this prim row on the database.
 +
<br />
 +
<br />
 +
'''RegionUUID'''
 +
<br />
 +
The key of the Region on the Regions table which contains this prim
 +
<br />
 +
<br />
 +
'''CreatorID'''
 +
<br />
 +
the UUID (key) of the user who created this prim.
 +
<br />
 +
<br />
 +
'''OwnerID'''
 +
<br />
 +
the UUID (key)of the user who currently owns this prim.
 +
<br />
 +
<br />
 +
'''GroupID'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''LastOwnerID'''
 +
<br />
 +
The UUID (key) of the user who last owned this prim (i.e. who transferred it to the current OwnerID).
 +
<br />
 +
<br />
 +
'''SceneGroupID'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''PayPrice'''
 +
<br />
 +
Can be either:
 +
-1 PAY_HIDE or -2 PAY_DEFAULT
 +
<br />
 +
<br />
 +
'''PayButton1'''
 +
<br />
 +
Can be either:
 +
-1 PAY_HIDE or -2 PAY_DEFAULT
 +
<br />
 +
<br />
 +
'''PayButton2'''
 +
<br />
 +
Can be either:
 +
-1 PAY_HIDE or -2 PAY_DEFAULT
 +
<br />
 +
<br />
 +
'''PayButton3'''
 +
<br />
 +
Can be either:
 +
-1 PAY_HIDE or -2 PAY_DEFAULT
 +
<br />
 +
<br />
 +
'''PayButton4'''
 +
<br />
 +
Can be either:
 +
-1 PAY_HIDE or -2 PAY_DEFAULT
 +
<br />
 +
<br />
 +
'''LoopedSound'''
 +
<br />
 +
The UUID of an asset which defines a sound to be played from this prim.
 +
<br />
 +
<br />
 +
'''LoopedSoundGain'''
 +
<br />
 +
The volume of the looped sound.
 +
<br />
 +
<br />
 +
'''TextureAnnimation'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''OmegaX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''OmegaY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''OmegaZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''CameraEyeOffsetX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''CameraEyeOffsetY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''CameraEyeOffsetZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''CameraAtOffsetX'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''CameraAtOffsetY'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''CameraAtOffsetZ'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''ForceMouseLook'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''ScriptAccessPin'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''AllowedDrop'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''DieAtEdge'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SalePrice'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''SaleType'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''ColorR'''
 +
<br />
 +
Red colour intensity value range 0-255.
 +
<br />
 +
<br />
 +
'''ColorG'''
 +
<br />
 +
Green colour intensity value range 0-255.
 +
<br />
 +
<br />
 +
'''ColorB'''
 +
<br />
 +
Blue colour intensity value range 0-255.
 +
<br />
 +
<br />
 +
'''ColorA'''
 +
<br />
 +
Alpha channel value. Range 0-255.
 +
<br />
 +
<br />
 +
'''ParticleSystem'''
 +
<br />
 +
A block of data defining a particle effect associated with this Prim.
 +
<br />
 +
<br />
 +
'''ClickAction'''
 +
<br />
 +
Action to be performed on a left-button mouse click. Possible values:<br />
 +
&nbsp;&nbsp;0 - Touch/Grab (default)<br />
 +
&nbsp;&nbsp;1 - Sit on object<br />
 +
&nbsp;&nbsp;2 - Buy object<br />
 +
&nbsp;&nbsp;3 - Pay object<br />
 +
&nbsp;&nbsp;4 - Open<br />
 +
&nbsp;&nbsp;5 - Play parcel media<br />
 +
&nbsp;&nbsp;6 - Open parcel media
 +
<br />
 +
<br />
 +
'''Material'''
 +
<br />
 +
Affects the surface look of the prim, may be wood, metal etc.
 +
<br />
 +
<br />
 +
'''CollisionSound'''
 +
<br />
 +
The UUID of the asset which describes the sound made when an object collides with this prim.
 +
<br />
 +
<br />
 +
'''CollisionSoundVolume'''
 +
<br />
 +
The volume of the collision sound.
 +
<br />
 +
<br />
 +
'''LinkNumber'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''PassTouches'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''MediaURL'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''DynAttrs'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''PhysicsShapeType'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''Density'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''GravityModifier'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''Friction'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''Restitution'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
'''KeyframeMotion'''
 +
<br />
 +
Not yet defined.
 +
<br />
 +
<br />
 +
----
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br />
  
 
+
[[Category:Database]]
<br>
+
<br>
+
<hr>
+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br>
+
 
[[Category:Database]]
 
[[Category:Database]]

Revision as of 21:13, 17 January 2014


Prims Describes all rezzed prim attributes except shape and content       (back to Database Documentation)

The current structure of the Prims table is as follows:

Field Type Null Key Default Extra
CreationDate int(11) YES NULL
Name varchar(255) YES NULL
Text varchar(255) YES NULL
Description varchar(255) YES NULL
SitName varchar(255) YES NULL
TouchName varchar(255) YES NULL
ObjectFlags int(11) YES NULL
OwnerMask int(11) YES NULL
NextOwnerMask int(11) YES NULL
GroupMask int(11) YES NULL
EveryoneMask int(11) YES NULL
BaseMask int(11) YES NULL
PositionX double YES NULL
PositionY double YES NULL
PositionZ double YES NULL
GroupPositionX double YES NULL
GroupPositionY double YES NULL
GroupPositionZ double YES NULL
VelocityX double YES NULL
VelocityY double YES NULL
VelocityZ double YES NULL
AngularVelocityX double YES NULL
AngularVelocityY double YES NULL
AngularVelocityZ double YES NULL
AccelerationX double YES NULL
AccelerationY double YES NULL
AccelerationZ double YES NULL
RotationX double YES NULL
RotationY double YES NULL
RotationZ double YES NULL
RotationW double YES NULL
SitTargetOffsetX double YES NULL
SitTargetOffsetY double YES NULL
SitTargetOffsetZ double YES NULL
SitTargetOrientW double YES NULL
SitTargetOrientX double YES NULL
SitTargetOrientY double YES NULL
SitTargetOrientZ double YES NULL
UUID char(36) NO PRI
RegionUUID char(36) YES MUL NULL
CreatorID varchar(255) NO
OwnerID char(36) YES NULL
GroupID char(36) YES NULL
LastOwnerID char(36) YES NULL
SceneGroupID char(36) YES MUL NULL
PayPrice int(11) NO 0
PayButton1 int(11) NO 0
PayButton2 int(11) NO 0
PayButton3 int(11) NO 0
PayButton4 int(11) NO 0
LoopedSound char(36) NO 00000000-0000-0000-0000-000000000000
LoopedSoundGain double NO 0
TextureAnimation blob YES NULL
OmegaX double NO 0
OmegaY double NO 0
OmegaZ double NO 0
CameraEyeOffsetX double NO 0
CameraEyeOffsetY double NO 0
CameraEyeOffsetZ double NO 0
CameraAtOffsetX double NO 0
CameraAtOffsetY double NO 0
CameraAtOffsetZ double NO 0
ForceMouselook tinyint(4) NO 0
ScriptAccessPin int(11) NO 0
AllowedDrop tinyint(4) NO 0
DieAtEdge tinyint(4) NO 0
SalePrice int(11) NO 10
SaleType tinyint(4) NO 0
ColorR int(11) NO 0
ColorG int(11) NO 0
ColorB int(11) NO 0
ColorA int(11) NO 0
ParticleSystem blob YES NULL
ClickAction tinyint(4) NO 0
Material tinyint(4) NO 3
CollisionSound char(36) NO 00000000-0000-0000-0000-000000000000
CollisionSoundVolume double NO 0
LinkNumber int(11) NO 0
PassTouches tinyint(4) NO 0
MediaURL varchar(255) YES NULL
DynAttrs text YES NULL
PhysicsShapeType tinyint(4) NO 0
Density double NO 1000
GravityModifier double NO 1
Friction double NO 0.6
Restitution double NO 0.5
KeyframeMotion blob YES NULL

      (back to Database Documentation)



CreationDate
The date in standard UNIX format that the Prim was created.

Name
The Name of the Prim.

Text
 

Description
What the Prim is.

SitName
A name given to the Sit event.

TouchName
A name given to the Touch action.

SitName
A name given to the Sit event.

ObjectFlags
ObjectFlags are defined here: OpenSim:Permissions#ObjectFlags_.28F.29

OwnerMask
The permissions of the current owner. Further details are available here: OpenSim:Permissions#OwnerMask_.28O.29

NextOwnerMasks
The permissions to be passed to the next owner. Further details are available here: OpenSim:Permissions#NextOwnerMask_.28N.29

GroupMask
GroupMask is not yet implemented. However further details are available here: OpenSim:Permissions#GroupMask_.28G.29

EveryoneMask
The permissions given to other users. Further details are available here: OpenSim:Permissions#EveryoneMask_.28E.29

BaseMask
The initial permissions given to the current owner. Further details are available here: OpenSim:Permissions#BaseMask_.28B.29

PositionX
The distance in metres of this prim from GroupPositionX.

PositionY
The distance in metres of this prim from GroupPositionY.

PositionZ
The distance in metres of this prim from GroupPositionZ.
GroupPositionX
The X-axis location of the centre of the primary prim in the linked set to which this Prim belongs. Measured in metres relative to the origin of the region.

GroupPositionY
The Y-axis location of the centre of the primary prim in the linked set to which this Prim belongs. Measured in metres relative to the origin of the region.

GroupPositionZ
The Z-axis (height) location of the centre of the primary prim in the linked set to which this Prim belongs. Measured in metres.
VelocityX
The speed at which the prim moves (+ or -) in the X-axis.

VelocityY
The speed at which the prim moves (+ or -) in the Y-axis.

VelocityZ
The speed at which the prim moves (+ or -) vertically.

AngularVelocityX
Not yet defined.

AngularVelocityY
Not yet defined.

AngularVelocityZ
Not yet defined.

AccelerationX
Not yet defined.

AccelerationY
Not yet defined.

AccelerationZ
Not yet defined.

RotationX
Not yet defined.

RotationY
Not yet defined.

RotationZ
Not yet defined.

RotationW
Not yet defined.

SitTargetOffsetX
Not yet defined.

SitTargetOffsetY
Not yet defined.

SitTargetOffsetZ
Not yet defined.

SitTargetOrientW
Not yet defined.

SitTargetOrientX
Not yet defined.

SitTargetOrientY
Not yet defined.

SitTargetOrientZ
Not yet defined.

UUID
The unique key of this prim row on the database.

RegionUUID
The key of the Region on the Regions table which contains this prim

CreatorID
the UUID (key) of the user who created this prim.

OwnerID
the UUID (key)of the user who currently owns this prim.

GroupID
Not yet defined.

LastOwnerID
The UUID (key) of the user who last owned this prim (i.e. who transferred it to the current OwnerID).

SceneGroupID
Not yet defined.

PayPrice
Can be either: -1 PAY_HIDE or -2 PAY_DEFAULT

PayButton1
Can be either: -1 PAY_HIDE or -2 PAY_DEFAULT

PayButton2
Can be either: -1 PAY_HIDE or -2 PAY_DEFAULT

PayButton3
Can be either: -1 PAY_HIDE or -2 PAY_DEFAULT

PayButton4
Can be either: -1 PAY_HIDE or -2 PAY_DEFAULT

LoopedSound
The UUID of an asset which defines a sound to be played from this prim.

LoopedSoundGain
The volume of the looped sound.

TextureAnnimation
Not yet defined.

OmegaX
Not yet defined.

OmegaY
Not yet defined.

OmegaZ
Not yet defined.

CameraEyeOffsetX
Not yet defined.

CameraEyeOffsetY
Not yet defined.

CameraEyeOffsetZ
Not yet defined.

CameraAtOffsetX
Not yet defined.

CameraAtOffsetY
Not yet defined.

CameraAtOffsetZ
Not yet defined.

ForceMouseLook
Not yet defined.

ScriptAccessPin
Not yet defined.

AllowedDrop
Not yet defined.

DieAtEdge
Not yet defined.

SalePrice
Not yet defined.

SaleType
Not yet defined.

ColorR
Red colour intensity value range 0-255.

ColorG
Green colour intensity value range 0-255.

ColorB
Blue colour intensity value range 0-255.

ColorA
Alpha channel value. Range 0-255.

ParticleSystem
A block of data defining a particle effect associated with this Prim.

ClickAction
Action to be performed on a left-button mouse click. Possible values:
  0 - Touch/Grab (default)
  1 - Sit on object
  2 - Buy object
  3 - Pay object
  4 - Open
  5 - Play parcel media
  6 - Open parcel media

Material
Affects the surface look of the prim, may be wood, metal etc.

CollisionSound
The UUID of the asset which describes the sound made when an object collides with this prim.

CollisionSoundVolume
The volume of the collision sound.

LinkNumber
Not yet defined.

PassTouches
Not yet defined.

MediaURL
Not yet defined.

DynAttrs
Not yet defined.

PhysicsShapeType
Not yet defined.

Density
Not yet defined.

GravityModifier
Not yet defined.

Friction
Not yet defined.

Restitution
Not yet defined.

KeyframeMotion
Not yet defined.


      (back to Database Documentation)

Personal tools
General
About This Wiki