Database:Inventoryitems

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Added details about the flags field of the inventoryitems table.)
(Replace inventoryFolderId by inventoryFolderID)
Line 57: Line 57:
 
| '''[[#avatarID|avatarID]]''' || char(36) || YES || MUL || NULL ||
 
| '''[[#avatarID|avatarID]]''' || char(36) || YES || MUL || NULL ||
 
|-
 
|-
| '''[[#parentFolderId|parentFolderId]]''' || char(36) || YES || MUL || NULL ||
+
| '''[[#parentFolderID|parentFolderID]]''' || char(36) || YES || MUL || NULL ||
 
|- style="background:#eee;"
 
|- style="background:#eee;"
 
| '''[[#invGroupPerms|inventoryGroupPermissions]]''' || int(10) unsigned || NO ||  || 0 ||
 
| '''[[#invGroupPerms|inventoryGroupPermissions]]''' || int(10) unsigned || NO ||  || 0 ||
Line 201: Line 201:
 
<br />
 
<br />
  
<div id="parentFolderId">'''parentFolderId'''</div>
+
<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 />

Revision as of 05:36, 26 October 2020


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
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
None0
ObjectSlamPerm1<<8 (256)
ObjectSlamSale1<<12 (4096)
ObjectOverwriteBase1<<16 (65536)
ObjectOverwriteOwner1<<17 (131072)
ObjectOverwriteGroup1<<18 (262144)
ObjectOverwriteEveryone1<<19 (524288)
ObjectOverwriteNextOwner1<<20 (1048576)
ObjectHasMultipleItems1<<21 (2097152)
SharedSingleReference1<<30 (1073741824)


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