Database:Inventoryitems
From OpenSimulator
JeffKelley (Talk | contribs) m (Changed inventoryDescription to VARCHAR(128), creatorID to VARCHAR(255)) |
|||
(25 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | '''inventoryitems''' | + | __NOTOC__ |
− | <br> | + | {{Quicklinks}} |
− | The | + | <br /> |
− | <br> | + | |
− | + | The '''inventoryitems''' records details with respect to the avatar's personal property (assets)'' (back to [[Database Documentation]]) | |
− | + | <br /> | |
− | + | <br /> | |
− | + | ||
− | + | == inventoryitems Table Structure == | |
− | + | ||
− | + | The structure of the inventoryitems table is as follows: | |
− | + | <br /> | |
− | + | ||
− | + | {| style="border:1px solid #ccc;" | |
− | + | |- style="background:#cce;" | |
− | + | ! Field | |
− | + | ! Type | |
− | + | ! Null | |
− | + | ! Key | |
− | + | ! Default | |
− | + | ! Extra | |
− | + | |- | |
− | + | | '''[[#assetID|assetID]]''' || varchar(36) || YES || || NULL || | |
− | + | |- style="background:#eee;" | |
− | + | | '''[[#assetType|assetType]]''' || int(11) unsigned || YES || || NULL || | |
− | + | |- | |
− | + | | '''[[#invName|inventoryName]]''' || varchar(64) || YES || || NULL || | |
− | + | |- style="background:#eee;" | |
− | + | | '''[[#invDescription|inventoryDescription]]''' || varchar(128) || YES || || NULL || | |
− | <br> | + | |- |
− | (back to [[Database Documentation]]) | + | | '''[[#invNextPerms|inventoryNextPermissions]]''' || int(10) unsigned || YES || || NULL || |
− | < | + | |- style="background:#eee;" |
− | '''assetID'''< | + | | '''[[#invCurrentPerms|inventoryCurrentPermissions]]''' || int(10) unsigned || YES || || NULL || |
− | Refers to the related row in the assets table. | + | |- |
− | <br><br> | + | | '''[[#invType|invType]]''' || int(11) || YES || || NULL || |
− | '''assetType'''< | + | |- style="background:#eee;" |
+ | | '''[[#creatorID|creatorID]]''' || varchar(255) || YES || || NULL || | ||
+ | |- | ||
+ | | '''[[#invBasePerms|inventoryBasePermissions]]''' || int(10) unsigned || NO || || 0 || | ||
+ | |- style="background:#eee;" | ||
+ | | '''[[#invEveryOnePerms|inventoryEveryOnePermissions]]''' || int(10) unsigned || NO || || 0 || | ||
+ | |- | ||
+ | | '''[[#salePrice|salePrice]]''' || int(11) || NO || || NULL || | ||
+ | |- style="background:#eee;" | ||
+ | | '''[[#saleType|saleType]]''' || tinyint(4) || NO || || NULL || | ||
+ | |- | ||
+ | | '''[[#creationDate|creationDate]]''' || int(11) || NO || || NULL || | ||
+ | |- style="background:#eee;" | ||
+ | | '''[[#groupID|groupID]]''' || varchar(36) || NO || || 00000000-0000-0000-0000-000000000000 || | ||
+ | |- | ||
+ | | '''[[#groupOwned|groupOwned]]''' || tinyint(4) || NO || || NULL || | ||
+ | |- style="background:#eee;" | ||
+ | | '''[[#flags|flags]]''' || int(11) unsigned || NO || || 0 || | ||
+ | |- | ||
+ | | '''[[#inventoryID|inventoryID]]''' || char(36) || NO || PRI || 00000000-0000-0000-0000-000000000000 || | ||
+ | |- style="background:#eee;" | ||
+ | | '''[[#avatarID|avatarID]]''' || char(36) || YES || MUL || NULL || | ||
+ | |- | ||
+ | | '''[[#parentFolderID|parentFolderID]]''' || char(36) || YES || MUL || NULL || | ||
+ | |- style="background:#eee;" | ||
+ | | '''[[#invGroupPerms|inventoryGroupPermissions]]''' || int(10) unsigned || NO || || 0 || | ||
+ | |} | ||
+ | |||
+ | <br /> | ||
+ | (back to [[Database Documentation]]) | ||
+ | |||
+ | == inventoryitems Fields == | ||
+ | |||
+ | <div id="assetID">'''assetID'''</div> | ||
+ | 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". | ||
+ | <br /> | ||
+ | |||
+ | <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> | + | <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> | ||
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'''< | + | |
− | Permissions that will be applied to the item if/when it is transferred to another avatar. | + | <div id="invNextPerms">'''inventoryNextPermissions'''</div> |
− | <br>< | + | 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'''< | + | <br /> |
− | Permissions on the the item for the current posessor of the item. | + | |
− | <br>< | + | <div id="invCurrentPerms">'''inventoryCurrentPermissions'''</div> |
− | '''invType'''< | + | Permissions on the the item for the current posessor of the item. Permission values can be found at [[OpenSimulator:Permissions]] |
− | Type of inventory item (is | + | <br /> |
− | <br><br> | + | |
− | '''creatorID'''< | + | <div id="invType">'''invType'''</div> |
+ | Type of inventory item. This is a subset of enum InventoryType for items only. | ||
+ | <br /> | ||
+ | |||
+ | <table> | ||
+ | <tr><td>Value</td><td>Icon</td><td>Meaning</td></tr> | ||
+ | <tr><td>-1</td><td> </td><td>User Defined</td></tr> | ||
+ | <tr><td>0</td><td>http://www.pescadoo.net/oswiki/inv_item_texture.png</td><td>Texture</td></tr> | ||
+ | <tr><td>1</td><td>http://www.pescadoo.net/oswiki/inv_item_sound.png</td><td>Sound</td></tr> | ||
+ | <tr><td>2</td><td>http://www.pescadoo.net/oswiki/inv_item_callingcard_online.png</td><td>Calling Card</td></tr> | ||
+ | <tr><td>3</td><td>http://www.pescadoo.net/oswiki/inv_item_landmark.png</td><td>Landmark</td></tr> | ||
+ | <tr><td>6</td><td>http://www.pescadoo.net/oswiki/inv_item_object.png</td><td>Object</td></tr> | ||
+ | <tr><td>7</td><td>http://www.pescadoo.net/oswiki/inv_item_notecard.png</td><td>Notecard</td></tr> | ||
+ | <tr><td>10</td><td>http://www.pescadoo.net/oswiki/inv_item_script.png</td><td>Script</td></tr> | ||
+ | <tr><td>15</td><td>http://www.pescadoo.net/oswiki/inv_item_snapshot.png</td><td>Snapshot</td></tr> | ||
+ | <tr><td>17</td><td>http://www.pescadoo.net/oswiki/inv_item_attach.png</td><td>Attachment</td></tr> | ||
+ | <tr><td>18</td><td>http://www.pescadoo.net/oswiki/inv_item_clothing.png</td><td>Wearable (assets 5 and 13, see below)</td></tr> | ||
+ | <tr><td>19</td><td>http://www.pescadoo.net/oswiki/inv_item_animation.png</td><td>Animation (assets 20)</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>25</td><td></td><td>Settings (asset 56)</td></tr> | ||
+ | <tr><td>26</td><td></td><td>Material (asset 57)</td></tr> | ||
+ | </table> | ||
+ | <br /> | ||
+ | |||
+ | Subtype for wearable (assets type 5 and 13).<br /> | ||
+ | The subtype is contained inside the asset data (LLSD format). <s>It does not appear in the table.</s> | ||
+ | <br />It is encoded in the lower part of the 'flags' column'. | ||
+ | <br /> | ||
+ | |||
+ | <table> | ||
+ | <tr><td>0</td><td>http://www.pescadoo.net/oswiki/inv_item_shape.png</td><td>Shape (asset type 13) | ||
+ | <tr><td>1</td><td>http://www.pescadoo.net/oswiki/inv_item_skin.png</td><td>Skin (asset type 13) | ||
+ | <tr><td>2</td><td>http://www.pescadoo.net/oswiki/inv_item_hair.png</td><td>Hair (asset type 13) | ||
+ | <tr><td>3</td><td>http://www.pescadoo.net/oswiki/inv_item_eyes.png</td><td>Eyes (asset type 13) | ||
+ | <tr><td>4</td><td>http://www.pescadoo.net/oswiki/inv_item_shirt.png</td><td>Shirt (asset type 5) | ||
+ | <tr><td>5</td><td>http://www.pescadoo.net/oswiki/inv_item_pants.png</td><td>Pants (asset type 5) | ||
+ | <tr><td>6</td><td>http://www.pescadoo.net/oswiki/inv_item_shoes.png</td><td>Shoes (asset type 5) | ||
+ | <tr><td>7</td><td>http://www.pescadoo.net/oswiki/inv_item_socks.png</td><td>Socks (asset type 5) | ||
+ | <tr><td>8</td><td>http://www.pescadoo.net/oswiki/inv_item_jacket.png</td><td>Jacket (asset type 5) | ||
+ | <tr><td>9</td><td>http://www.pescadoo.net/oswiki/inv_item_gloves.png</td><td>Gloves (asset type 5) | ||
+ | <tr><td>10</td><td>http://www.pescadoo.net/oswiki/inv_item_undershirt.png</td><td>Undershirt (asset type 5) | ||
+ | <tr><td>11</td><td>http://www.pescadoo.net/oswiki/inv_item_underpants.png</td><td>Underpants (asset type 5) | ||
+ | <tr><td>12</td><td>http://www.pescadoo.net/oswiki/inv_item_skirt.png</td><td>Skirt (asset type 5) | ||
+ | <tr><td>13</td><td>http://www.pescadoo.net/oswiki/inv_item_alpha.png</td><td>Alpha (asset type 5) | ||
+ | <tr><td>14</td><td>http://www.pescadoo.net/oswiki/inv_item_tattoo.png</td><td>Tattoo (asset type 5) | ||
+ | <tr><td>15</td><td>http://www.pescadoo.net/oswiki/inv_item_physics.png</td><td>Physics (asset type 5) | ||
+ | </table> | ||
+ | <br /> | ||
+ | |||
+ | <div id="creatorID">'''creatorID'''</div> | ||
UUID of the item's original creator. | UUID of the item's original creator. | ||
− | <br>< | + | <br /> |
− | '''inventoryBasePermissions'''< | + | |
− | Base permissions of the object. | + | <div id="invBasePerms">'''inventoryBasePermissions'''</div> |
− | <br>< | + | Base permissions of the object. Permission values can be found at [[OpenSimulator:Permissions]] |
− | '''inventoryEveryOnePermissions'''< | + | <br /> |
− | Permissions with respect to everyone but the owner of the item. | + | |
− | <br>< | + | <div id="invEveryOnePerms">'''inventoryEveryOnePermissions'''</div> |
− | '''salePrice'''< | + | Permissions with respect to everyone but the owner of the item. Permission values can be found at [[OpenSimulator:Permissions]] |
+ | <br /> | ||
+ | |||
+ | <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> | |
− | < | + | <table> |
− | '''inventoryID'''< | + | <tr><td>None</td><td>0</td></tr> |
+ | <tr><td>ObjectSlamPerm</td><td>1<<8 (256)</td></tr> | ||
+ | <tr><td>ObjectSlamSale</td><td>1<<12 (4096)</td></tr> | ||
+ | <tr><td>ObjectOverwriteBase</td><td>1<<16 (65536)</td></tr> | ||
+ | <tr><td>ObjectOverwriteOwner</td><td>1<<17 (131072)</td></tr> | ||
+ | <tr><td>ObjectOverwriteGroup</td><td>1<<18 (262144)</td></tr> | ||
+ | <tr><td>ObjectOverwriteEveryone</td><td>1<<19 (524288)</td></tr> | ||
+ | <tr><td>ObjectOverwriteNextOwner</td><td>1<<20 (1048576)</td></tr> | ||
+ | <tr><td>ObjectHasMultipleItems</td><td>1<<21 (2097152)</td></tr> | ||
+ | <tr><td>SharedSingleReference</td><td>1<<30 (1073741824)</td></tr> | ||
+ | </table> | ||
+ | <br /> | ||
+ | |||
+ | <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 /> |
− | '''parentFolderID'''< | + | |
− | UUID of the folder | + | <div id="parentFolderID">'''parentFolderID'''</div> |
− | <br>< | + | UUID of the folder that contains the item. This must match the folderID of an inventory folders table entry. |
− | '''inventoryGroupPermissions'''< | + | <br /> |
− | Permissions with respect to the owner group of the item. | + | |
− | <br> | + | <div id="invGroupPerms">'''inventoryGroupPermissions'''</div> |
− | (back to [[Database Documentation]])<br> | + | Permissions with respect to the owner group of the item. Permission values can be found at [[OpenSimulator:Permissions]] |
+ | <br /> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | (back to [[Database Documentation]]) | ||
+ | <br /> | ||
+ | |||
[[Category:Database]] | [[Category:Database]] |
Latest revision as of 04: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
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)
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.
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 OpenSimulator:Permissions
Permissions on the the item for the current posessor of the item. Permission values can be found at OpenSimulator: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) |
25 | Settings (asset 56) | |
26 | Material (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'.
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 OpenSimulator:Permissions
Permissions with respect to everyone but the owner of the item. Permission values can be found at OpenSimulator: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
None | 0 |
ObjectSlamPerm | 1<<8 (256) |
ObjectSlamSale | 1<<12 (4096) |
ObjectOverwriteBase | 1<<16 (65536) |
ObjectOverwriteOwner | 1<<17 (131072) |
ObjectOverwriteGroup | 1<<18 (262144) |
ObjectOverwriteEveryone | 1<<19 (524288) |
ObjectOverwriteNextOwner | 1<<20 (1048576) |
ObjectHasMultipleItems | 1<<21 (2097152) |
SharedSingleReference | 1<<30 (1073741824) |
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 OpenSimulator:Permissions
(back to Database Documentation)