Database:Inventoryitems

From OpenSimulator

Revision as of 18:16, 11 April 2016 by Kcozens (Talk | contribs)

Jump to: navigation, search


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
0inv_item_texture.pngTexture
1inv_item_sound.pngSound
2inv_item_callingcard_online.pngCalling Card
3inv_item_landmark.pngLandmark
6inv_item_object.pngObject
7inv_item_notecard.pngNotecard
10inv_item_script.pngScript
15inv_item_snapshot.pngSnapshot
17inv_item_attach.pngAttachment
18inv_item_clothing.pngWearable (assets 5 and 13, see below)
19inv_item_animation.pngAnimation (assets 20)
20inv_item_gesture.pngGesture (asset 21)
22inv_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.

0inv_item_shape.pngShape (asset type 13)
1inv_item_skin.pngSkin (asset type 13)
2inv_item_hair.pngHair (asset type 13)
3inv_item_eyes.pngEyes (asset type 13)
4inv_item_shirt.pngShirt (asset type 5)
5inv_item_pants.pngPants (asset type 5)
6inv_item_shoes.pngShoes (asset type 5)
7inv_item_socks.pngSocks (asset type 5)
8inv_item_jacket.pngJacket (asset type 5)
9inv_item_gloves.pngGloves (asset type 5)
10inv_item_undershirt.pngUndershirt (asset type 5)
11inv_item_underpants.pngUnderpants (asset type 5)
12inv_item_skirt.pngSkirt (asset type 5)
13inv_item_alpha.pngAlpha (asset type 5)
14inv_item_tattoo.pngTattoo (asset type 5)
15inv_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)

Personal tools
General
About This Wiki