Database:Inventoryfolders
From OpenSimulator
m (Minor HTML formatting changes) |
m (Formatting changes to match other database documentation pages) |
||
Line 2: | Line 2: | ||
{{Quicklinks}} | {{Quicklinks}} | ||
<br /> | <br /> | ||
− | '''inventoryfolders''' | + | |
− | + | 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]]) | |
− | + | ||
− | + | ||
<br /> | <br /> | ||
+ | <br /> | ||
+ | |||
+ | == inventoryitems Table Structure == | ||
+ | |||
+ | The structure of the inventoryitems table is as follows: | ||
+ | <br /> | ||
+ | |||
{| style="border:1px solid #ccc;" | {| style="border:1px solid #ccc;" | ||
|- style="background:#cce;" | |- style="background:#cce;" | ||
Line 16: | Line 21: | ||
! Extra | ! Extra | ||
|- | |- | ||
− | | folderName || varchar(64) || YES || || NULL || | + | | [[#folderName|folderName]] || varchar(64) || YES || || NULL || |
|- style="background:#eee;" | |- style="background:#eee;" | ||
− | | type || smallint(6) || NO || || 0 || | + | | [[#type|type]] || smallint(6) || NO || || 0 || |
|- | |- | ||
− | | version || int(11) || NO || || 0 || | + | | [[#version|version]] || int(11) || NO || || 0 || |
|- style="background:#eee;" | |- style="background:#eee;" | ||
− | | folderID || char(36) || NO || PRI || 00000000-0000-0000-0000-000000000000 || | + | | [[#folderID|folderID]] || char(36) || NO || PRI || 00000000-0000-0000-0000-000000000000 || |
|- | |- | ||
− | | agentID || char(36) || YES || MUL || NULL || | + | | [[#agentID|agentID]] || char(36) || YES || MUL || NULL || |
|- style="background:#eee;" | |- style="background:#eee;" | ||
− | | parentFolderID || char(36) || YES || MUL || NULL || | + | | [[#parentFolderID|parentFolderID]] || char(36) || YES || MUL || NULL || |
|} | |} | ||
+ | |||
<br /> | <br /> | ||
<br /> | <br /> | ||
− | + | ||
− | + | == inventoryitems Fields == | |
'''folderName'''<br /> | '''folderName'''<br /> |
Revision as of 16:49, 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 |
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.
Value | Icon | Meaning |
-1 | User Defined | |
0 | Textures | |
1 | Sounds | |
2 | Calling Cards | |
3 | Landmarks | |
5 | Clothing | |
6 | Objects | |
7 | Notecards | |
8 | My Inventory | |
9 | ||
10 | Scripts | |
13 | Body Parts | |
14 | Trash | |
15 | Photo Album | |
16 | Lost and Found | |
20 | Animations | |
21 | Gestures | |
23 | Favorites | |
46 | Current Outfit | |
47 | Outfits | |
49 | Meshes | |
100 | My 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)