Database:Inventoryitems

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (inventoryitems Fields: Wearable subtype encoding in table)
m (Changed inventoryDescription to VARCHAR(128), creatorID to VARCHAR(255))
 
(3 intermediate revisions by one user not shown)
Line 27: Line 27:
 
| '''[[#invName|inventoryName]]''' || varchar(64) || YES ||  || NULL ||       
 
| '''[[#invName|inventoryName]]''' || varchar(64) || YES ||  || NULL ||       
 
|- style="background:#eee;"
 
|- style="background:#eee;"
| '''[[#invDescription|inventoryDescription]]''' || varchar(64) || YES ||  || NULL ||
+
| '''[[#invDescription|inventoryDescription]]''' || varchar(128) || YES ||  || NULL ||
 
|-
 
|-
 
| '''[[#invNextPerms|inventoryNextPermissions]]''' || int(10) unsigned || YES ||  || NULL ||
 
| '''[[#invNextPerms|inventoryNextPermissions]]''' || int(10) unsigned || YES ||  || NULL ||
Line 35: Line 35:
 
| '''[[#invType|invType]]''' || int(11) || YES ||  || NULL ||
 
| '''[[#invType|invType]]''' || int(11) || YES ||  || NULL ||
 
|- style="background:#eee;"
 
|- style="background:#eee;"
| '''[[#creatorID|creatorID]]''' || varchar(36) || YES ||  || NULL ||
+
| '''[[#creatorID|creatorID]]''' || varchar(255) || YES ||  || NULL ||
 
|-
 
|-
 
| '''[[#invBasePerms|inventoryBasePermissions]]''' || int(10) unsigned || NO ||  || 0 ||
 
| '''[[#invBasePerms|inventoryBasePermissions]]''' || int(10) unsigned || NO ||  || 0 ||
Line 62: Line 62:
 
|}
 
|}
  
Note: When <u>assetType</u> is 24, the item is a '''link'''. In this case, <u>assetID</u> is not the id of the asset. <br />It is instead the <u>inventoryID</u> of another inventory item, whose <u>assetID</u> points to the target asset.
 
 
<br />
 
<br />
<br />
 
 
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
<br />
 
 
----
 
<br />
 
  
 
== inventoryitems Fields ==
 
== inventoryitems Fields ==
Line 82: Line 75:
 
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 />
 +
 +
When '''assetType''' is 24, the item is a <u>link</u> to an inventory item. '''assetID''' if then the '''inventoryID''' of the target item.<br />
 +
When '''assetType''' is 25, the item is a <u>link</u> to an inventory folder. '''assetID''' if then the '''folderID''' of the target folder.<br />
  
 
<div id="invName">'''inventoryName'''</div>
 
<div id="invName">'''inventoryName'''</div>
Line 92: Line 88:
  
 
<div id="invNextPerms">'''inventoryNextPermissions'''</div>
 
<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 [[OpenSimulator:Permissions]]
 
<br />
 
<br />
  
 
<div id="invCurrentPerms">'''inventoryCurrentPermissions'''</div>
 
<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 [[OpenSimulator:Permissions]]
 
<br />
 
<br />
  
Line 119: Line 115:
 
<tr><td>20</td><td>http://www.pescadoo.net/oswiki/inv_item_gesture.png</td><td>Gesture (asset 21)</td></tr>
 
<tr><td>20</td><td>http://www.pescadoo.net/oswiki/inv_item_gesture.png</td><td>Gesture (asset 21)</td></tr>
 
<tr><td>22</td><td>http://www.pescadoo.net/oswiki/inv_item_mesh.png</td><td>Mesh (asset 49)</td></tr>
 
<tr><td>22</td><td>http://www.pescadoo.net/oswiki/inv_item_mesh.png</td><td>Mesh (asset 49)</td></tr>
 +
<tr><td>25</td><td></td><td>Settings (asset 56)</td></tr>
 +
<tr><td>26</td><td></td><td>Material (asset 57)</td></tr>
 
</table>
 
</table>
 
<br />
 
<br />
Line 152: Line 150:
  
 
<div id="invBasePerms">'''inventoryBasePermissions'''</div>
 
<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 [[OpenSimulator:Permissions]]
 
<br />
 
<br />
  
 
<div id="invEveryOnePerms">'''inventoryEveryOnePermissions'''</div>
 
<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 [[OpenSimulator:Permissions]]
 
<br />
 
<br />
  
Line 207: Line 205:
  
 
<div id="invGroupPerms">'''inventoryGroupPermissions'''</div>
 
<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 [[OpenSimulator:Permissions]]
 
<br />
 
<br />
  

Latest revision as of 03:16, 13 February 2024


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

[edit] 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(128) YES NULL
inventoryNextPermissions int(10) unsigned YES NULL
inventoryCurrentPermissions int(10) unsigned YES NULL
invType int(11) YES NULL
creatorID varchar(255) 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


      (back to Database Documentation)

[edit] 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)

When assetType is 24, the item is a link to an inventory item. assetID if then the inventoryID of the target item.
When assetType is 25, the item is a link to an inventory folder. assetID if then the folderID of the target folder.

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 OpenSimulator:Permissions

inventoryCurrentPermissions

Permissions on the the item for the current posessor of the item. Permission values can be found at OpenSimulator: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)
25Settings (asset 56)
26Material (asset 57)


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.
It is encoded in the lower part of the 'flags' column'.

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 OpenSimulator:Permissions

inventoryEveryOnePermissions

Permissions with respect to everyone but the owner of the item. Permission values can be found at OpenSimulator: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 OpenSimulator:Permissions


      (back to Database Documentation)

Personal tools
General
About This Wiki