Database:Assets

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Asset Fields: Added hallucinated types)
 
(16 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''assets''' ''Records all assets''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br>
+
__NOTOC__
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''including textures, notecards, scripts, and avatar parts''
+
{{Quicklinks}}
<br><br>
+
<br />
The current structure of the assets table is as follows:<br>
+
 
<br>
+
The '''assets''' table records all assets including textures, notecards, scripts, and avatar parts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
<table>
+
<br />
<tr><td>Field<br></td><td>Type</td><td>Null</td><td>Key</td><td>Default</td><td>Extra</td></tr>
+
<br />
<tr><td>&nbsp;</td></tr>
+
 
<tr><td>Name</td><td>varchar(64)</td><td>NO</td><td></td><td>NULL</td><td>&nbsp;</td></tr>
+
== Asset Table Structure ==
<tr><td>description</td><td>varchar(64)</td><td>NO</td><td></td><td>NULL</td><td></td></tr>
+
 
<tr><td>Type</td><td>tinyint(4)</td><td>NO</td><td></td><td>NULL</td><td></td></tr>
+
The structure of the assets table as of v0.7.1.1 is as follows:
<tr><td>local</td><td>tinyint(1)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td><tr>
+
<br />
<tr><td>temporary</td><td>tinyint(1)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td></tr>
+
 
<tr><td>data</td><td>longblob</td><td>NO</td><td></td><td>NULL</td><td></td><td></td></tr>
+
{| style="border:1px solid #ccc;"
<tr><td>id</td><td>char(36)</td><td>NO</td><td>PRI</td><td>00000000-0000-0000-0000-000000000000</td><td></td><td></td></tr>
+
|- style="background:#cce;"
<tr><td>create_time</td><td>int(11)</td><td>YES</td><td></td><td>0</td><td></td></tr>
+
! Field
<tr><td>access_time</td><td>int(11)</td><td>YES</td><td></td><td>0</td><td></td></tr>
+
! Type
</table>
+
! Collation
<br>
+
! Attributes
<br>
+
! Null
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br>
+
! Default
<hr>
+
! Extra
'''name'''
+
|-
<br>
+
| '''[[#name|name]]''' || varchar(64) || utf8_general_ci || || No || ''None'' ||
Name of the asset as it would appear in inventory<br>
+
|- style="background:#eee;"
<br>
+
| '''[[#description|description]]''' || varchar(64) || utf8_general_ci ||  || No || ''None'' ||
'''description'''
+
|-
<br>
+
| '''[[#assetType|assetType]]''' || tinyint(4) ||  ||  || No || ''None'' ||
Asset's description field, as it appears in various client-side editing widgets
+
|- style="background:#eee;"
<br>
+
| '''[[#local|local]]''' || tinyint(1) ||  ||  || No || ''None'' ||
<br>
+
|-
'''Type'''
+
| '''[[#temporary|temporary]]''' || tinyint(1) ||  ||  || No || ''None'' ||
<br>
+
|- style="background:#eee;"
Integer which designates the asset's inventory type
+
| '''[[#data|data]]''' || longblob ||  || <code>BINARY</code> || No || ''None'' ||
<br>
+
|-
<br>
+
| '''[[#id|<u>id</u>]]''' || char(36) || utf8_general_ci ||  || No || 000000-0000-0000-0000-000000000000 ||
'''local'''
+
|- style="background:#eee;"
<br>
+
| '''[[#create_time|create_time]]''' || int(11) ||  ||  || Yes || 0 ||
For Future Use
+
|-
<br>
+
| '''[[#access_time|access_time]]''' || int(11) ||  ||  || Yes || 0 ||
<br>
+
|- style="background:#eee"
'''temporary'''
+
| '''[[#asset_flags|asset_flags]]''' || int(11) ||  ||  || No || 0 ||
<br>
+
|-
For Future Use
+
| '''[[#CreatorID|CreatorID]]''' || varchar(128) || utf8_general_ci ||  || No ||  || 
<br>
+
|}
<br>
+
<br />
'''data'''
+
<br />
<br>
+
 
This is the blob which contains the actual script, notecard text,<br>
+
The structure of the assets table in some deprecated versions is as follows:
binary image (texture) or other data characterized by the "Type" column
+
<br />
<br>
+
{| style="border:1px solid #ccc;"
<br>
+
|- style="background:#cce;"
'''id'''
+
! Field
<br>
+
! Type
UUID which uniquely identifies the asset within the system
+
! Collation
<br>
+
! Attributes
<br>
+
! Null
'''create_time'''
+
! Default
<br>
+
! Extra
Date and time the asset was created in standard UNIX format
+
|-
<br>
+
| '''[[#name|Name]]''' || varchar(64) || NO || || NULL || &nbsp; ||
<br>
+
|- style="background:#eee;"
'''access_time'''
+
| '''[[#description|description]]''' || varchar(64) || NO || || NULL || ||
<br>
+
|-
Date and time the asset was last used in standard UNIX format
+
| '''[[#assetType|Type]]''' || tinyint(4) || NO || || NULL || ||
<br>
+
|- style="background:#eee;"
<br>
+
| '''[[#local|local]]''' || tinyint(1) || NO || || NULL || ||
<br>
+
|-
<hr>
+
| '''[[#temporary|temporary]]''' || tinyint(1) || NO || || NULL || || ||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br>
+
|- style="background:#eee;"
 +
| '''[[#data|data]]''' || longblob || NO || || NULL || || ||
 +
|-
 +
| '''[[#create_time|create_time]]''' || int(11) || YES || || 0 || ||
 +
|- style="background:#eee;"
 +
| '''[[#access_time|access_time]]''' || int(11) || YES || || 0 || ||
 +
|}
 +
<br />
 +
 
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
 +
<br />
 +
 
 +
----
 +
<br />
 +
 
 +
== Asset Fields ==
 +
 
 +
;<div id="name">'''name'''</div>
 +
:Name of the asset as it would appear in inventory
 +
 
 +
;<div id="description">'''description'''</div>
 +
:Asset's description field, as it appears in various client-side editing widgets
 +
 
 +
;<div id="assetType">'''assetType'''</div>
 +
:Integer which designates the asset's type
 +
:* Valid values are (need help checking and filling these in):
 +
:** -2 - Material (Legacy)
 +
:** 0 - Texture in JPEG2000 J2C stream format
 +
:** 1 - Sound
 +
:** 2 - Calling Card
 +
:** 3 - Landmark
 +
:** 5 - Clothing
 +
:** 6 - Object
 +
:** 7 - Notecard
 +
:** 10 - LSLText (aka a script)
 +
:** 13 - Body Part
 +
:** 20 - Animation
 +
:** 21 - Gesture
 +
:** 49 - Mesh
 +
:** 56 - Setting
 +
:** 57 - Material (PBR)
 +
:* Declared in openmetaverse but never seen in database :
 +
:** 8 - Folder
 +
:** 11 - LSLBytecode
 +
:** 17 - SoundWAV
 +
:** 18 - ImageTGA
 +
:** 19 - ImageJPEG
 +
:** 22 - Simstate
 +
:** 24 - Link (to another inventory item)
 +
:** 25 - LinkFolder (to another inventory folder)
 +
:** 26 - Marketplace folder
 +
 
 +
;<div id="local">'''local'''</div>
 +
:For Future Use
 +
 
 +
;<div id="temporary">'''temporary'''</div>
 +
:For Future Use
 +
 
 +
;<div id="data">'''data'''</div>
 +
:This is the blob which contains the actual script, notecard text, binary image (texture) or other data characterized by the "Type" column
 +
 
 +
;<div id="id">'''id'''</div>
 +
:UUID which uniquely identifies the asset within the system
 +
 
 +
;<div id="create_time">'''create_time'''</div>
 +
:Date and time the asset was created in standard UNIX format
 +
 
 +
;<div id="access_time">'''access_time'''</div>
 +
:Date and time the asset was last used in standard UNIX format
 +
 
 +
;<div id="asset_flags">'''asset_flags'''</div>
 +
:Asset flags.
 +
 
 +
;<div id="CreatorID">'''CreatorID'''</div>
 +
:Creator avatar UUID
 +
 
 +
<br />
 +
 
 +
----
 +
 
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
 +
<br />
 +
 
 
[[Category:Database]]
 
[[Category:Database]]

Latest revision as of 14:32, 1 June 2023


The assets table records all assets including textures, notecards, scripts, and avatar parts       (back to Database Documentation)

[edit] Asset Table Structure

The structure of the assets table as of v0.7.1.1 is as follows:

Field Type Collation Attributes Null Default Extra
name varchar(64) utf8_general_ci No None
description varchar(64) utf8_general_ci No None
assetType tinyint(4) No None
local tinyint(1) No None
temporary tinyint(1) No None
data longblob BINARY No None
id char(36) utf8_general_ci No 000000-0000-0000-0000-000000000000
create_time int(11) Yes 0
access_time int(11) Yes 0
asset_flags int(11) No 0
CreatorID varchar(128) utf8_general_ci No



The structure of the assets table in some deprecated versions is as follows:

Field Type Collation Attributes Null Default Extra
Name varchar(64) NO NULL  
description varchar(64) NO NULL
Type tinyint(4) NO NULL
local tinyint(1) NO NULL
temporary tinyint(1) NO NULL
data longblob NO NULL
create_time int(11) YES 0
access_time int(11) YES 0


      (back to Database Documentation)



[edit] Asset Fields

name
Name of the asset as it would appear in inventory
description
Asset's description field, as it appears in various client-side editing widgets
assetType
Integer which designates the asset's type
  • Valid values are (need help checking and filling these in):
    • -2 - Material (Legacy)
    • 0 - Texture in JPEG2000 J2C stream format
    • 1 - Sound
    • 2 - Calling Card
    • 3 - Landmark
    • 5 - Clothing
    • 6 - Object
    • 7 - Notecard
    • 10 - LSLText (aka a script)
    • 13 - Body Part
    • 20 - Animation
    • 21 - Gesture
    • 49 - Mesh
    • 56 - Setting
    • 57 - Material (PBR)
  • Declared in openmetaverse but never seen in database :
    • 8 - Folder
    • 11 - LSLBytecode
    • 17 - SoundWAV
    • 18 - ImageTGA
    • 19 - ImageJPEG
    • 22 - Simstate
    • 24 - Link (to another inventory item)
    • 25 - LinkFolder (to another inventory folder)
    • 26 - Marketplace folder
local
For Future Use
temporary
For Future Use
data
This is the blob which contains the actual script, notecard text, binary image (texture) or other data characterized by the "Type" column
id
UUID which uniquely identifies the asset within the system
create_time
Date and time the asset was created in standard UNIX format
access_time
Date and time the asset was last used in standard UNIX format
asset_flags
Asset flags.
CreatorID
Creator avatar UUID



      (back to Database Documentation)

Personal tools
General
About This Wiki