Database:Inventoryfolders

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Wikified table structure)
Line 5: Line 5:
 
specifically the folders. No information about contents of the folders is in this table.
 
specifically the folders. No information about contents of the folders is in this table.
 
<br /><br />
 
<br /><br />
The current structure of the avatar appearance table is as follows:<br />
+
The current structure of the avatar appearance table is as follows:
 
<br />
 
<br />
<table>
+
{| style="border:1px solid #ccc;"
<tr><td>Field<br /></td><td>Type</td><td>Null</td><td>Key</td><td>Default</td><td>Extra</td></tr>
+
|- style="background:#cce;"
<tr><td>&nbsp;</td></tr>
+
! Field
<tr><td>folderName</td><td>varchar(64)</td><td>YES</td><td>&nbsp;</td><td>NULL</td><td>&nbsp;</td></tr>
+
! Type
<tr><td>type</td><td>smallint(6)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
! Null
<tr><td>version</td><td>int(11)</td><td>NO</td><td></td><td>0</td><td></td></tr>
+
! Key
<tr><td>folderID</td><td>char(36)</td><td>NO</td><td>PRI</td><td>00000000-0000-0000-0000-000000000000</td><td></td><td></td><tr>
+
! Default
<tr><td>agentID</td><td>char(36)</td><td>YES</td><td>MUL</td><td>NULL</td><td></td><td></td></tr>
+
! Extra
<tr><td>parentFolderID</td><td>char(36)</td><td>YES</td><td>MUL</td><td>NULL</td><td></td><td></td></tr>
+
|-
</table>
+
| folderName || varchar(64) || YES ||  || NULL ||
 +
|- style="background:#eee;"
 +
| type || smallint(6) || NO ||  || 0 ||
 +
|-
 +
| version || int(11) || NO ||  || 0 ||
 +
|- style="background:#eee;"
 +
| folderID || char(36) || NO || PRI || 00000000-0000-0000-0000-000000000000 ||
 +
|-
 +
| agentID || char(36) || YES || MUL || NULL ||
 +
|- style="background:#eee;"
 +
| parentFolderID || char(36) || YES || MUL || NULL ||
 +
|}
 
<br />
 
<br />
 
<br />
 
<br />

Revision as of 12:00, 16 January 2014


inventoryfolders Records details concerning the avatar's inventory organisation,      (back to Database Documentation)
specifically the folders. No information about contents of the folders is in this table.

The current structure of the avatar appearance table is as follows:

Field Type Null Key Default Extra
folderName varchar(64) YES NULL
type smallint(6) NO 0
version int(11) NO 0
folderID char(36) NO PRI 00000000-0000-0000-0000-000000000000
agentID char(36) YES MUL NULL
parentFolderID char(36) YES MUL NULL



      (back to Database Documentation)


folderName
Text of the folder's name as it appears in the client inventory interface

type
Numerically encoded inventory folder type:

Value Meaning
-1 User Defined
0 Texture
1 Sounds
2 Calling Cards
3 Landmarks
5 Clothing
6 Object
7 Notecard
8 Top Level (In OpenSimulator 0.6.x)
9 Top Level (In OpenSimulator 0.7.x)
10 Script
13 Body Part
14 Trash
15 Snapshot
16 Lost and Found
20 Animation
21 Gesture



version
This item is incremented when an item is added to the folder.

NOTE: This appears to be a form of serial number that is updated when the contents of the folder is changed. A change in the number informs the viewer that it should refresh its copy of the folder contents. This needs to be verified.

folderID
Uniquely identifies the folder. This facilitates the folder being claimed as a logical container by other folders, or the things in the inventoryitems table that are said to be 'in' the folder.

agentID
Unique agent identifier - identifies the agent which owns the folder.

parentFolderID
This identifies the parent folder that contains this folder. Hence, it must match another inventory folders table entry which has that folderID.


      (back to Database Documentation)

Personal tools
General
About This Wiki