Database:Inventoryitems

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Wikified table structure)
m (updated item types)
Line 79: Line 79:
 
<br /><br />
 
<br /><br />
 
'''invType'''<br />
 
'''invType'''<br />
Type of inventory item (is this redundant with assetType?)
+
Type of inventory item. This is a subset of enum InventoryType for items only.
 +
<br />
 +
<table>
 +
<tr><td>Value</td><td>&nbsp;</td><td>Meaning</td></tr>
 +
<tr><td>-1</td><td>&nbsp;</td><td>User Defined</td></tr>
 +
<tr><td>0</td><td>&nbsp;</td><td>Texture</td></tr>
 +
<tr><td>1</td><td>&nbsp;</td><td>Sounds</td></tr>
 +
<tr><td>2</td><td>&nbsp;</td><td>Calling Cards</td></tr>
 +
<tr><td>3</td><td>&nbsp;</td><td>Landmarks</td></tr>
 +
<tr><td>6</td><td>&nbsp;</td><td>Object</td></tr>
 +
<tr><td>7</td><td>&nbsp;</td><td>Notecard</td></tr>
 +
<tr><td>10</td><td>&nbsp;</td><td>Script</td></tr>
 +
<tr><td>18</td><td>&nbsp;</td><td>Wearable (assets 5 and 13)</td></tr>
 +
<tr><td>19</td><td>&nbsp;</td><td>Animation (assets 20)</td></tr>
 +
<tr><td>21</td><td>&nbsp;</td><td>Gesture</td></tr>
 +
<tr><td>22</td><td>&nbsp;</td><td>Mesh</td></tr>
 +
</table>
 
<br /><br />
 
<br /><br />
 
'''creatorID'''<br />
 
'''creatorID'''<br />

Revision as of 09:50, 18 January 2014


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


The current 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



      (back to Database Documentation)


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.

Value Meaning
-1 User Defined
0 Texture
1 Sounds
2 Calling Cards
3 Landmarks
6 Object
7 Notecard
10 Script
18 Wearable (assets 5 and 13)
19 Animation (assets 20)
21 Gesture
22 Mesh



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