Database:Agents

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: '''agents''' ''Records agent (Avatar/User) login details'' <br> The current structure of the agents table is as follows:<br> <br> <code> <table> <tr><td>Field<br></td><td>Type</td><td>Null...)
 
m (Robot: Cosmetic changes)
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''agents''' ''Records agent (Avatar/User) login details''
+
__NOTOC__
<br>
+
{{Quicklinks}}
The current structure of the agents table is as follows:<br>
+
 
<br>
+
'''agents''' ''Records agent (Avatar/User) login details''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br />
<code>
+
<br /><br />
 +
The current structure of the agents table is as follows:<br />
 +
<br />
 
<table>
 
<table>
<tr><td>Field<br></td><td>Type</td><td>Null</td><td>Key</td><td>Default</td><td>Extra</td></tr>
+
<tr><td>Field<br /></td><td>Type</td><td>Null</td><td>Key</td><td>Default</td><td>Extra</td></tr>
 
<tr><td>&nbsp;</td></tr>
 
<tr><td>&nbsp;</td></tr>
 
<tr><td>UUID</td><td>varchar(36)</td><td>NO</td><td>PRI</td><td>NULL</td><td>&nbsp;</td></tr>
 
<tr><td>UUID</td><td>varchar(36)</td><td>NO</td><td>PRI</td><td>NULL</td><td>&nbsp;</td></tr>
Line 16: Line 18:
 
<tr><td>logoutTime</td><td>int(11)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td></tr>
 
<tr><td>logoutTime</td><td>int(11)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td></tr>
 
<tr><td>currentRegion</td><td>varchar(36)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td><tr>
 
<tr><td>currentRegion</td><td>varchar(36)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td><tr>
<tr><td>currentHandle   | bigint(20) unsigned | NO   |    | NULL   |      |<br>
+
<tr><td>currentHandle</td><td>bigint(20) unsigned</td><td>NO</td><td></td><td>NULL</td><td></td></tr>
<tr><td>currentPos     | varchar(64)         | NO   |    | NULL   |      |<br>
+
<tr><td>currentPos</td><td>varchar(64)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td><br />
 +
<tr><td>currentLookAt</td><td>varchar(36)</td><td>NO</td><td></td><td>NULL</td><td></td><td></td><br />
 
</table>
 
</table>
</code>
+
<br />
<br>
+
<br />
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br />
 +
----
 +
'''UUID'''
 +
<br />
 +
The UUID uniquely identifies the avatar associated with the user's account. This master ID 'number' is used for everything the avatar interacts with - it is used to determine permissions, identify belongings, and route messages to and from system and other avatars.
 +
<br />
 +
<br />
 +
'''sessionID'''
 +
<br />
 +
For Future Use
 +
<br />
 +
<br />
 +
'''SecureSessionID'''
 +
<br />
 +
For Future Use
 +
<br />
 +
<br />
 +
'''agentIP'''
 +
<br />
 +
IP address of logged-in agent?<br />
 +
Does not appear to be updated at this time
 +
<br />
 +
<br />
 +
'''agentPort'''
 +
<br />
 +
Port the agent is connected on<br />
 +
Does not appear to be updated at this time
 +
<br />
 +
<br />
 +
'''agentOnLine'''
 +
<br />
 +
Status of agent (Online/Offline)
 +
<br />
 +
<br />
 +
'''loginTime'''
 +
<br />
 +
Time the agent last logged in
 +
<br />
 +
<br />
 +
'''logoutTime'''
 +
<br />
 +
Time the agent last logged out
 +
<br />
 +
<br />
 +
'''currentRegion'''
 +
<br />
 +
Region UUID for the region the av is presently resident within
 +
<br />
 +
<br />
 +
'''currentHandle'''
 +
<br />
 +
Records the grid position of the region the av is presently resident within
 +
<br />
 +
<br />
 +
'''currentPos'''
 +
<br />
 +
Records the av's current position with the region in which it is currently resident
 +
<br />
 +
<br />
 +
'''currentLookAt'''
 +
<br />
 +
The direction the agent is facing given as x, y and z co-ordinates relative to "currentPos"
 +
<br />
 +
<br />
 +
----
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])<br />
 +
 
 +
[[Category:Database]]
 +
[[Category:Database]]

Latest revision as of 18:54, 3 March 2012

agents Records agent (Avatar/User) login details      (back to Database Documentation)


The current structure of the agents table is as follows:



Field
TypeNullKeyDefaultExtra
 
UUIDvarchar(36)NOPRINULL 
sessionIDvarchar(36)NOUNINULL
secureSessionIDvarchar(36)NOUNINULL
agentIPvarchar(16)NONULL
agentPortint(11)NONULL
agentOnlinetinyint(4)NONULL
loginTimeint(11)NONULL
logoutTimeint(11)NONULL
currentRegionvarchar(36)NONULL
currentHandlebigint(20) unsignedNONULL
currentPosvarchar(64)NONULL
currentLookAtvarchar(36)NONULL



      (back to Database Documentation)


UUID
The UUID uniquely identifies the avatar associated with the user's account. This master ID 'number' is used for everything the avatar interacts with - it is used to determine permissions, identify belongings, and route messages to and from system and other avatars.

sessionID
For Future Use

SecureSessionID
For Future Use

agentIP
IP address of logged-in agent?
Does not appear to be updated at this time

agentPort
Port the agent is connected on
Does not appear to be updated at this time

agentOnLine
Status of agent (Online/Offline)

loginTime
Time the agent last logged in

logoutTime
Time the agent last logged out

currentRegion
Region UUID for the region the av is presently resident within

currentHandle
Records the grid position of the region the av is presently resident within

currentPos
Records the av's current position with the region in which it is currently resident

currentLookAt
The direction the agent is facing given as x, y and z co-ordinates relative to "currentPos"


      (back to Database Documentation)

Personal tools
General
About This Wiki