Database:Inventoryitems
From OpenSimulator
m (Updated the table description) |
(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|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'''< | + | <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'''< | + | <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'''< | + | <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'''< | + | <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'''< | + | <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'''< | + | <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'''< | + | <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'''< | + | <div id="creatorID">'''creatorID'''</div> |
UUID of the item's original creator. | UUID of the item's original creator. | ||
<br /> | <br /> | ||
− | '''inventoryBasePermissions'''< | + | <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'''< | + | <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'''< | + | <div id="salePrice">'''salePrice'''</div> |
Sale price of the item. | Sale price of the item. | ||
<br /> | <br /> | ||
− | '''saleType'''< | + | <div id="saleType">'''saleType'''</div> |
''presently unknown'' | ''presently unknown'' | ||
<br /> | <br /> | ||
− | '''creationDate'''< | + | <div id="creationDate">'''creationDate'''</div> |
Date the item was created | Date the item was created | ||
<br /> | <br /> | ||
− | '''groupID'''< | + | <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'''< | + | <div id="groupOwned">'''groupOwned'''</div> |
group ownership flags | group ownership flags | ||
<br /> | <br /> | ||
− | '''flags'''< | + | <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'''< | + | <div id="inventoryID">'''inventoryID'''</div> |
UUID of inventory item | UUID of inventory item | ||
<br /> | <br /> | ||
− | '''avatarID'''< | + | <div id="avatarID">'''avatarID'''</div> |
UUID of item's owner | UUID of item's owner | ||
<br /> | <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'''< | + | <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 18:39, 11 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
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".
Type of asset (e.g., script, texture, or shape - asset type list)
Text of the name 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.
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 on the the item for the current posessor of the item. Permission values can be found at OpenSim:Permissions
Type of inventory item. This is a subset of enum InventoryType for items only.
Value | Icon | Meaning |
-1 | User Defined | |
0 | Texture | |
1 | Sound | |
2 | Calling Card | |
3 | Landmark | |
6 | Object | |
7 | Notecard | |
10 | Script | |
15 | Snapshot | |
17 | Attachment | |
18 | Wearable (assets 5 and 13, see below) | |
19 | Animation (assets 20) | |
20 | Gesture (asset 21) | |
22 | Mesh (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.
0 | Shape (asset type 13) | |
1 | Skin (asset type 13) | |
2 | Hair (asset type 13) | |
3 | Eyes (asset type 13) | |
4 | Shirt (asset type 5) | |
5 | Pants (asset type 5) | |
6 | Shoes (asset type 5) | |
7 | Socks (asset type 5) | |
8 | Jacket (asset type 5) | |
9 | Gloves (asset type 5) | |
10 | Undershirt (asset type 5) | |
11 | Underpants (asset type 5) | |
12 | Skirt (asset type 5) | |
13 | Alpha (asset type 5) | |
14 | Tattoo (asset type 5) | |
15 | Physics (asset type 5) |
UUID of the item's original creator.
Base permissions of the object. 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
Sale price of the item.
presently unknown
Date the item was created
UUID of the group that the items is 'deeded' to
group ownership flags
A definition of Flag values can be found at OpenSim:Permissions#ObjectFlags_.28F.29
UUID of inventory item
UUID of item's owner
UUID of the folder that contains the item. This must match the folderID of an inventory folders table entry.
Permissions with respect to the owner group of the item. Permission values can be found at OpenSim:Permissions
(back to Database Documentation)