Database:Inventoryitems

From OpenSimulator

Revision as of 03:16, 13 February 2024 by JeffKelley (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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(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)

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