Database:Inventoryfolders

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Formatting changes to match other database documentation pages)
m (Minor formatting changes to match other database documentation pages)
Line 33: Line 33:
 
| [[#parentFolderID|parentFolderID]] || char(36) || YES || MUL || NULL ||
 
| [[#parentFolderID|parentFolderID]] || char(36) || YES || MUL || NULL ||
 
|}
 
|}
 +
<br />
  
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
 
<br />
 
<br />
 +
 +
----
 
<br />
 
<br />
  
 
== inventoryitems Fields ==
 
== inventoryitems Fields ==
  
'''folderName'''<br />
+
;<div id="folderName">'''folderName'''</div>
 
Text of the folder's name as it appears in the client inventory interface
 
Text of the folder's name as it appears in the client inventory interface
 
<br />
 
<br />
<br />
+
 
'''type'''<br />
+
<div id="type">'''type'''</div>
 
Type of inventory folder. This is a subset of enum InventoryType for folders only.  
 
Type of inventory folder. This is a subset of enum InventoryType for folders only.  
 
<br />
 
<br />
 +
 
<table>
 
<table>
 
<tr><td>Value</td><td>Icon</td><td>Meaning</td></tr>
 
<tr><td>Value</td><td>Icon</td><td>Meaning</td></tr>
Line 72: Line 77:
 
<br />
 
<br />
  
'''version'''<br />
+
<div id="version">'''version'''</div>
 
This item is incremented when an item is added to the folder.
 
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.
 
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.
 
<br />
 
<br />
<br />
+
 
'''folderID'''<br />
+
<div id="folderID">'''folderID'''</div>
 
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.
 
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.
 
<br />
 
<br />
<br />
+
 
'''agentID'''<br />
+
<div id="agentID">'''agentID'''</div>
 
Unique agent identifier - identifies the agent which owns the folder.
 
Unique agent identifier - identifies the agent which owns the folder.
 
<br />
 
<br />
<br />
+
 
'''parentFolderID'''<br />
+
<div id="parentFolderID">'''parentFolderID'''</div>
 
This identifies the parent folder that contains this folder.  Hence, it must match anGother inventory folders table entry which has that folderID.
 
This identifies the parent folder that contains this folder.  Hence, it must match anGother inventory folders table entry which has that folderID.
  
Line 94: Line 98:
  
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
 
 
<br />
 
<br />
  
 
[[Category:Database]]
 
[[Category:Database]]

Revision as of 18:21, 11 April 2016


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

inventoryitems Table Structure

The structure of the inventoryitems 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)



inventoryitems Fields

folderName

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

type

Type of inventory folder. This is a subset of enum InventoryType for folders only.

ValueIconMeaning
-1inv_folder_plain_closed.pngUser Defined
0inv_folder_texture.pngTextures
1inv_folder_sound.pngSounds
2inv_folder_callingcard.pngCalling Cards
3inv_folder_landmark.pngLandmarks
5inv_folder_clothing.pngClothing
6inv_folder_object.pngObjects
7inv_folder_notecard.pngNotecards
8inv_folder_plain_closed.pngMy Inventory
9inv_folder_plain_closed.pngMy Inventory (from OpenSimulator 0.7.x up to 0.8.1.x, now obsolete)
10inv_folder_script.pngScripts
13inv_folder_bodypart.pngBody Parts
14inv_folder_trash.pngTrash
15inv_folder_snapshot.pngPhoto Album
16inv_folder_lostandfound.pngLost and Found
20inv_folder_animation.pngAnimations
21inv_folder_gesture.pngGestures
23inv_folder_favorite.pngFavorites
46inv_folder_outfit.pngCurrent Outfit
47inv_folder_outfit.pngOutfits
49inv_folder_mesh.pngMeshes
100inv_folder_plain_closed.pngMy Suitcase


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 anGother inventory folders table entry which has that folderID.



      (back to Database Documentation)

Personal tools
General
About This Wiki