Database:Inventoryitems: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>Kcozens
m Updated the table description
imported>Kcozens
Added links from table structure to field descriptions
Line 21: Line 21:
! Extra
! Extra
|-  
|-  
| assetID || varchar(36) || YES ||  || NULL ||
| '''[[#assetID|assetID]]''' || varchar(36) || YES ||  || NULL ||
|- style="background:#eee;"
|- style="background:#eee;"
| assetType || int(11) unsigned || YES ||  || NULL ||  
| '''[[#assetType|assetType]]''' || int(11) unsigned || YES ||  || NULL ||
|-  
|-
| inventoryName || varchar(64) || YES ||  || NULL ||  
| '''[[#invName|inventoryName]]''' || varchar(64) || YES ||  || NULL ||    
|- style="background:#eee;"
|- style="background:#eee;"
| inventoryDescription || varchar(64) || YES ||  || NULL ||
| '''[[#invDescription|inventoryDescription]]''' || varchar(64) || YES ||  || NULL ||
|-  
|-
| inventoryNextPermissions || int(10) unsigned || YES ||  || NULL ||
| '''[[#invNextPerms|inventoryNextPermissions]]''' || int(10) unsigned || YES ||  || NULL ||
|- style="background:#eee;"
|- style="background:#eee;"
| inventoryCurrentPermissions || int(10) unsigned || YES ||  || NULL ||
| '''[[#invCurrentPerms|inventoryCurrentPermissions]]''' || int(10) unsigned || YES ||  || NULL ||
|-  
|-
| invType || int(11) || YES ||  || NULL ||
| '''[[#invType|invType]]''' || int(11) || YES ||  || NULL ||
|- style="background:#eee;"
|- style="background:#eee;"
| CreatorID || varchar(36) || YES ||  || NULL ||
| '''[[#creatorID|creatorID]]''' || varchar(36) || YES ||  || NULL ||
|-  
|-
| inventoryBasePermissions || int(10) unsigned || NO ||  || 0 ||
| '''[[#invBasePerms|inventoryBasePermissions]]''' || int(10) unsigned || NO ||  || 0 ||
|- style="background:#eee;"
|- style="background:#eee;"
| inventoryEveryOnePermissions || int(10) unsigned || NO ||  || 0 ||
| '''[[#invEveryOnePerms|inventoryEveryOnePermissions]]''' || int(10) unsigned || NO ||  || 0 ||
|-  
|-
| salePrice || int(11) || NO ||  || NULL ||  
| '''[[#salePrice|salePrice]]''' || int(11) || NO ||  || NULL ||
|- style="background:#eee;"
|- style="background:#eee;"
| saleType || tinyint(4) || NO ||  || NULL ||
| '''[[#saleType|saleType]]''' || tinyint(4) || NO ||  || NULL ||
|-  
|-
| creationDate || int(11) || NO ||  || NULL ||  
| '''[[#creationDate|creationDate]]''' || int(11) || NO ||  || NULL ||
|- style="background:#eee;"
|- style="background:#eee;"
| groupID || varchar(36) || NO ||  || 00000000-0000-0000-0000-000000000000 ||
| '''[[#groupID|groupID]]''' || varchar(36) || NO ||  || 00000000-0000-0000-0000-000000000000 ||
|-  
|-
| groupOwned || tinyint(4) || NO ||  || NULL ||  
| '''[[#groupOwned|groupOwned]]''' || tinyint(4) || NO ||  || NULL ||
|- style="background:#eee;"
|- style="background:#eee;"
| flags || int(11) unsigned || NO ||  || 0 ||  
| '''[[#flags|flags]]''' || int(11) unsigned || NO ||  || 0 ||
|-  
|-
| inventoryID || char(36) || NO || PRI || 00000000-0000-0000-0000-000000000000 ||  
| '''[[#inventoryID|inventoryID]]''' || char(36) || NO || PRI || 00000000-0000-0000-0000-000000000000 ||
|- style="background:#eee;"
|- style="background:#eee;"
| avatarID || char(36) || YES || MUL || NULL ||
| '''[[#avatarID|avatarID]]''' || char(36) || YES || MUL || NULL ||
|-  
|-
| parentFolderId || char(36) || YES || MUL || NULL ||  
| '''[[#parentFolderId|parentFolderId]]''' || char(36) || YES || MUL || NULL ||
|- style="background:#eee;"
|- style="background:#eee;"
| inventoryGroupPermissions || int(10) unsigned || NO ||  || 0 ||
| '''[[#invGroupPerms|inventoryGroupPermissions]]''' || int(10) unsigned || NO ||  || 0 ||
|}
|}


Line 74: Line 74:
== inventoryitems Fields ==
== inventoryitems Fields ==


'''assetID'''<br />
<div id="assetID">'''assetID'''</div>
Refers to the related row in the assets table.<br />
Refers to the related row in the assets table.<br />
Calling Cards do not create assets so if assetType=2 (see next field) this field should be "00000000-0000-0000-0000-000000000000".
Calling Cards do not create assets so if assetType=2 (see next field) this field should be "00000000-0000-0000-0000-000000000000".
<br />
<br />


'''assetType'''<br />
<div id="assetType">'''assetType'''</div>
Type of asset (e.g., script, texture, or shape - [http://wiki.secondlife.com/wiki/AssetType asset type list])
Type of asset (e.g., script, texture, or shape - [http://wiki.secondlife.com/wiki/AssetType asset type list])
<br />
<br />


'''inventoryName'''<br />
<div id="invName">'''inventoryName'''</div>
Text of the name of the inventory item as it appears in the client inventory interface.
Text of the name of the inventory item as it appears in the client inventory interface.
<br />
<br />


'''inventoryDescription'''<br />
<div id="invDescription">'''inventoryDescription'''</div>
Text of the description of the inventory item as it appears in the client inventory interface.
Text of the description of the inventory item as it appears in the client inventory interface.
<br />
<br />


'''inventoryNextPermissions'''<br />
<div id="invNextPerms">'''inventoryNextPermissions'''</div>
Permissions that will be applied to the item if/when it is transferred to another avatar. Permission values can be found at [[OpenSim:Permissions]]
Permissions that will be applied to the item if/when it is transferred to another avatar. Permission values can be found at [[OpenSim:Permissions]]
<br />
<br />


'''inventoryCurrentPermissions'''<br />
<div id="invCurrentPerms">'''inventoryCurrentPermissions'''</div>
Permissions on the the item for the current posessor of the item. Permission values can be found at [[OpenSim:Permissions]]
Permissions on the the item for the current posessor of the item. Permission values can be found at [[OpenSim:Permissions]]
<br />
<br />


'''invType'''<br />
<div id="invType">'''invType'''</div>
Type of inventory item. This is a subset of enum InventoryType for items only.
Type of inventory item. This is a subset of enum InventoryType for items only.
<br />
<br />
Line 121: Line 121:
</table>
</table>
<br />
<br />
Subtype for wearable (assets type 5 and 13).<br />
Subtype for wearable (assets type 5 and 13).<br />
The subtype is contained inside the asset data (LLSD format). It does not appear in the table.
The subtype is contained inside the asset data (LLSD format). It does not appear in the table.
Line 145: Line 146:
<br />
<br />


'''creatorID'''<br />
<div id="creatorID">'''creatorID'''</div>
UUID of the item's original creator.
UUID of the item's original creator.
<br />
<br />


'''inventoryBasePermissions'''<br />
<div id="invBasePerms">'''inventoryBasePermissions'''</div>
Base permissions of the object. Permission values can be found at [[OpenSim:Permissions]]
Base permissions of the object. Permission values can be found at [[OpenSim:Permissions]]
<br />
<br />


'''inventoryEveryOnePermissions'''<br />
<div id="invEveryOnePerms">'''inventoryEveryOnePermissions'''</div>
Permissions with respect to everyone but the owner of the item. Permission values can be found at [[OpenSim:Permissions]]
Permissions with respect to everyone but the owner of the item. Permission values can be found at [[OpenSim:Permissions]]
<br />
<br />


'''salePrice'''<br />
<div id="salePrice">'''salePrice'''</div>
Sale price of the item.
Sale price of the item.
<br />
<br />


'''saleType'''<br />
<div id="saleType">'''saleType'''</div>
''presently unknown''
''presently unknown''
<br />
<br />


'''creationDate'''<br />
<div id="creationDate">'''creationDate'''</div>
Date the item was created
Date the item was created
<br />
<br />


'''groupID'''<br />
<div id="groupID">'''groupID'''</div>
UUID of the group that the items is 'deeded' to
UUID of the group that the items is 'deeded' to
<br />
<br />


'''groupOwned'''<br />
<div id="groupOwned">'''groupOwned'''</div>
group ownership flags
group ownership flags
<br />
<br />


'''flags'''<br />
<div id="flags">'''flags'''</div>
A definition of Flag values can be found at [[OpenSim:Permissions#ObjectFlags_.28F.29]]
A definition of Flag values can be found at [[OpenSim:Permissions#ObjectFlags_.28F.29]]
<br />
<br />


'''inventoryID'''<br />
<div id="inventoryID">'''inventoryID'''</div>
UUID of inventory item
UUID of inventory item
<br />
<br />


'''avatarID'''<br />
<div id="avatarID">'''avatarID'''</div>
UUID of item's owner
UUID of item's owner
<br />
<br />


'''parentFolderID'''<br />
<div id="parentFolderId">'''parentFolderId'''</div>
UUID of the folder that contains the item.  This must match the folderID of an inventory folders table entry.
UUID of the folder that contains the item.  This must match the folderID of an inventory folders table entry.
<br />
<br />


'''inventoryGroupPermissions'''<br />
<div id="invGroupPerms">'''inventoryGroupPermissions'''</div>
Permissions with respect to the owner group of the item. Permission values can be found at [[OpenSim:Permissions]]
Permissions with respect to the owner group of the item. Permission values can be found at [[OpenSim:Permissions]]
<br />
<br />

Revision as of 02:39, 12 April 2016


The inventoryitems records details with respect to the avatar's personal property (assets)      (back to Database Documentation)

inventoryitems Table Structure

The structure of the inventoryitems table is as follows:

Field Type Null Key Default Extra
assetID varchar(36) YES NULL
assetType int(11) unsigned YES NULL
inventoryName varchar(64) YES NULL
inventoryDescription varchar(64) YES NULL
inventoryNextPermissions int(10) unsigned YES NULL
inventoryCurrentPermissions int(10) unsigned YES NULL
invType int(11) YES NULL
creatorID varchar(36) YES NULL
inventoryBasePermissions int(10) unsigned NO 0
inventoryEveryOnePermissions int(10) unsigned NO 0
salePrice int(11) NO NULL
saleType tinyint(4) NO NULL
creationDate int(11) NO NULL
groupID varchar(36) NO 00000000-0000-0000-0000-000000000000
groupOwned tinyint(4) NO NULL
flags int(11) unsigned NO 0
inventoryID char(36) NO PRI 00000000-0000-0000-0000-000000000000
avatarID char(36) YES MUL NULL
parentFolderId char(36) YES MUL NULL
inventoryGroupPermissions int(10) unsigned NO 0

Note: When assetType is 24, the item is a link. In this case, assetID is not the id of the asset.
It is instead the inventoryID of another inventory item, whose assetID points to the target asset.

      (back to Database Documentation)



inventoryitems Fields

assetID

Refers to the related row in the assets table.
Calling Cards do not create assets so if assetType=2 (see next field) this field should be "00000000-0000-0000-0000-000000000000".

assetType

Type of asset (e.g., script, texture, or shape - asset type list)

inventoryName

Text of the name of the inventory item as it appears in the client inventory interface.

inventoryDescription

Text of the description of the inventory item as it appears in the client inventory interface.

inventoryNextPermissions

Permissions that will be applied to the item if/when it is transferred to another avatar. Permission values can be found at OpenSim:Permissions

inventoryCurrentPermissions

Permissions on the the item for the current posessor of the item. Permission values can be found at OpenSim:Permissions

invType

Type of inventory item. This is a subset of enum InventoryType for items only.

ValueIconMeaning
-1 User Defined
0http://www.pescadoo.net/oswiki/inv_item_texture.pngTexture
1http://www.pescadoo.net/oswiki/inv_item_sound.pngSound
2http://www.pescadoo.net/oswiki/inv_item_callingcard_online.pngCalling Card
3http://www.pescadoo.net/oswiki/inv_item_landmark.pngLandmark
6http://www.pescadoo.net/oswiki/inv_item_object.pngObject
7http://www.pescadoo.net/oswiki/inv_item_notecard.pngNotecard
10http://www.pescadoo.net/oswiki/inv_item_script.pngScript
15http://www.pescadoo.net/oswiki/inv_item_snapshot.pngSnapshot
17http://www.pescadoo.net/oswiki/inv_item_attach.pngAttachment
18http://www.pescadoo.net/oswiki/inv_item_clothing.pngWearable (assets 5 and 13, see below)
19http://www.pescadoo.net/oswiki/inv_item_animation.pngAnimation (assets 20)
20http://www.pescadoo.net/oswiki/inv_item_gesture.pngGesture (asset 21)
22http://www.pescadoo.net/oswiki/inv_item_mesh.pngMesh (asset 49)


Subtype for wearable (assets type 5 and 13).
The subtype is contained inside the asset data (LLSD format). It does not appear in the table.

0http://www.pescadoo.net/oswiki/inv_item_shape.pngShape (asset type 13)
1http://www.pescadoo.net/oswiki/inv_item_skin.pngSkin (asset type 13)
2http://www.pescadoo.net/oswiki/inv_item_hair.pngHair (asset type 13)
3http://www.pescadoo.net/oswiki/inv_item_eyes.pngEyes (asset type 13)
4http://www.pescadoo.net/oswiki/inv_item_shirt.pngShirt (asset type 5)
5http://www.pescadoo.net/oswiki/inv_item_pants.pngPants (asset type 5)
6http://www.pescadoo.net/oswiki/inv_item_shoes.pngShoes (asset type 5)
7http://www.pescadoo.net/oswiki/inv_item_socks.pngSocks (asset type 5)
8http://www.pescadoo.net/oswiki/inv_item_jacket.pngJacket (asset type 5)
9http://www.pescadoo.net/oswiki/inv_item_gloves.pngGloves (asset type 5)
10http://www.pescadoo.net/oswiki/inv_item_undershirt.pngUndershirt (asset type 5)
11http://www.pescadoo.net/oswiki/inv_item_underpants.pngUnderpants (asset type 5)
12http://www.pescadoo.net/oswiki/inv_item_skirt.pngSkirt (asset type 5)
13http://www.pescadoo.net/oswiki/inv_item_alpha.pngAlpha (asset type 5)
14http://www.pescadoo.net/oswiki/inv_item_tattoo.pngTattoo (asset type 5)
15http://www.pescadoo.net/oswiki/inv_item_physics.pngPhysics (asset type 5)


creatorID

UUID of the item's original creator.

inventoryBasePermissions

Base permissions of the object. Permission values can be found at OpenSim:Permissions

inventoryEveryOnePermissions

Permissions with respect to everyone but the owner of the item. Permission values can be found at OpenSim:Permissions

salePrice

Sale price of the item.

saleType

presently unknown

creationDate

Date the item was created

groupID

UUID of the group that the items is 'deeded' to

groupOwned

group ownership flags

flags

A definition of Flag values can be found at OpenSim:Permissions#ObjectFlags_.28F.29

inventoryID

UUID of inventory item

avatarID

UUID of item's owner

parentFolderId

UUID of the folder that contains the item. This must match the folderID of an inventory folders table entry.

inventoryGroupPermissions

Permissions with respect to the owner group of the item. Permission values can be found at OpenSim:Permissions


      (back to Database Documentation)