Regions (database table)

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Removed 'Template:' prefix from template includings and/or changed external-link into internal-link)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{Quicklinks}}
 
{{Quicklinks}}
<br />
 
The regions table contains information concerning all the regions currently connected to the grid.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
 
  
The columns are as follows:
+
 
<br>
+
The '''regions''' table contains information concerning all the regions currently connected to the grid.      (back to [[Database Documentation]])
<table>
+
 
<tr><td>Field<br></td><td>Type</td><td>Null</td><td>Key</td><td>Default</td><td>Extra</td></tr>
+
== regions Table Structure ==
<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>
+
The structure of the regions table is as follows:
<tr><td>regionHandle</td><td>bigint(20) unsigned</td><td>NO</td><td>MUL</td><td>NULL</td><td>&nbsp;</td></tr>
+
 
<tr><td>regionName</td><td>varchar(32)</td><td>YES</td><td>MUL</td><td>NULL</td><td></td></tr>
+
 
<tr><td>regionRecvKey</td><td>varchar(128)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
{| style="border:1px solid #ccc;"
<tr><td>regionSendKey</td><td>varchar(128)</td><td>YES</td><td></td><td>NULL</td><td></td><td></td><tr>
+
|- style="background:#cce;"
<tr><td>regionSecret</td><td>varchar(128)</td><td>YES</td><td></td><td>NULL</td><td></td><td></td></tr>
+
! Field
<tr><td>regionDataURI</td><td>varchar(255)</td><td>YES</td><td></td><td>NULL</td><td></td><td></td></tr>
+
! Type
<tr><td>serverIP</td><td>varchar(64)</td><td>YES</td><td></td><td>NULL</td><td></td><td></td></tr>
+
! Null
<tr><td>serverPort</td><td>int(10) unsigned</td><td>YES</td><td></td><td>NULL</td><td></td><td></td></tr>
+
! Key
<tr><td>serverURI</td><td>varchar(255)</td><td>YES</td><td></td><td>NULL</td><td></td><td></td></tr>
+
! Default
<tr><td>locX</td><td>int(10) unsigned</td><td>YES</td><td></td><td>NULL</td><td></td><td></td></tr>
+
! Extra
<tr><td>locY</td><td>int(10) unsigned</td><td>YES</td><td></td><td>NULL</td><td></td><td></td></tr>
+
|-
<tr><td>locZ</td><td>int(10) unsigned</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
| '''[[#uuid|uuid]]''' || varchar(36) || NO || PRI || NULL ||  
<tr><td>eastOverrideHandle</td><td>bigint(20) unsigned</td><td>YES</td><td>MUL</td><td>NULL</td><td></td><tr>
+
|- style="background:#eee;"
<tr><td>westOverrideHandle</td><td>bigint(20) unsigned</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
| '''[[#regionHandle|regionHandle]]''' || bigint(20) unsigned || NO || MUL || NULL ||
<tr><td>southOverrideHandle</td><td>bigint(20) unsigned</td><td>YES</td><td></td><td>NULL</td><td></td><br>
+
|-
<tr><td>northOverrideHandle</td><td>bigint(20) unsigned</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
| '''[[#regionName|regionName]]''' || varchar(32) || YES || MUL || NULL ||
<tr><td>regionAssetURI</td><td>varchar(255)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>regionAssetRecvKey</td><td>varchar(128)</td><td>YES</td><td>PRI</td><td>NULL</td><td></td></tr>
+
| '''[[#regionRecvKey|regionRecvKey]]''' || varchar(128) || YES ||  || NULL ||
<tr><td>regionAssetSendKey</td><td>varchar(128)</td><td>YES</td><td>PRI</td><td>NULL</td><td></td></tr>
+
|-
<tr><td>regionUserURI</td><td>varchar(255)</td><td>YES</td><td></td><td>NULL</td><td></td><tr>
+
| '''[[#regionSendKey|regionSendKey]]''' || varchar(128) || YES ||  || NULL ||
<tr><td>regionUserRecvKey</td><td>varchar(128)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>regionUserSendKey</td><td>varchar(128)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
| '''[[#regionSecret|regionSecret]]''' || varchar(128) || YES ||  || NULL ||
<tr><td>regionMapTexture</td><td>varchar(36)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
|-
<tr><td>serverHttpPort</td><td>int(10)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
| '''[[#regionDataURI|regionDataURI]]''' || varchar(255) || YES ||  || NULL ||
<tr><td>serverRemotingPort</td><td>int(10)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
|- style="background:#eee;"
<tr><td>owner_uuid</td><td>varchar(36)</td><td>NO</td><td></td><td>00000000-0000-0000-0000-000000000000</td><td></td></tr>
+
| '''[[#serverIP|serverIP]]''' || varchar(64) || YES ||  || NULL ||
<tr><td>originUUID</td><td>varchar(36)</td><td>YES</td><td></td><td>NULL</td><td></td></tr>
+
|-
</table>
+
| '''[[#serverPort|serverPort]]''' || int(10) unsigned || YES ||  || NULL ||
<br>
+
|- style="background:#eee;"
<br>
+
| '''[[#serverURI|serverURI]]''' || varchar(255) || YES ||  || NULL ||
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
+
|-
<hr>
+
| '''[[#locX|locX]]''' || int(10) unsigned || YES ||  || NULL ||
'''uuid'''<br>
+
|- style="background:#eee;"
The region's unique identifier
+
| '''[[#locY|locY]]''' || int(10) unsigned || YES ||  || NULL ||
<br>
+
|-
<br>
+
| '''[[#locZ|locZ]]''' || int(10) unsigned || YES ||  || NULL ||
'''regionHandle'''<br>
+
|- style="background:#eee;"
The absolute address of the origin coordinates, specified in metres, of the region calculated from LocX and LocY as<br>
+
| '''[[#eastOverrideHandle|eastOverrideHandle]]''' || bigint(20) unsigned || YES || MUL || NULL ||
(LocX*256*65536)+(LocY*256).
+
|-
<br>
+
| '''[[#westOverrideHandle|westOverrideHandle]]''' || bigint(20) unsigned || YES ||  || NULL ||
<br>
+
|- style="background:#eee;"
'''regionName'''<br>
+
| '''[[#southOverrideHandle|southOverrideHandle]]''' || bigint(20) unsigned || YES ||  || NULL ||
the region's name as it appears on maps - not necesarily unique
+
|-
<br>
+
| '''[[#northOverrideHandle|northOverrideHandle]]''' || bigint(20) unsigned || YES ||  || NULL ||
<br>
+
|- style="background:#eee;"
'''regionRecvKey'''<br>
+
| '''[[#regionAssetURI|regionAssetURI]]''' || varchar(255) || YES ||  || NULL ||
the key used by the region server to verify authenticity of communications from other regions
+
|-
<br>
+
| '''[[#regionAssetRecvKey|regionAssetRecvKey]]''' || varchar(128) || YES || PRI || NULL ||
<br>
+
|- style="background:#eee;"
'''regionSendKey'''<br>
+
| '''[[#regionAssetSendKey|regionAssetSendKey]]''' || varchar(128) || YES || PRI || NULL ||
the key used by the region server when verifying its identity in communications with other regions  
+
|-
<br>
+
| '''[[#regionUserURI|regionUserURI]]''' || varchar(255) || YES ||  || NULL ||
<br>
+
|- style="background:#eee;"
'''regionSecret'''<br>
+
| '''[[#regionUserRecvKey|regionUserRecvKey]]''' || varchar(128) || YES ||  || NULL ||
more detail req'd
+
|-
<br>
+
| '''[[#regionUserSendKey|regionUserSendKey]]''' || varchar(128) || YES ||  || NULL ||
<br>
+
|- style="background:#eee;"
'''regionDataURI'''<br>
+
| '''[[#regionMapTexture|regionMapTexture]]''' || varchar(36) || YES ||  || NULL ||
more detail req'd
+
|-
<br>
+
| '''[[#serverHttpPort|serverHttpPort]]''' || int(10) || YES ||  || NULL ||
<br>
+
|- style="background:#eee;"
'''serverIP'''<br>
+
| '''[[#serverRemotingPort|serverRemotingPort]]''' || int(10) || YES ||  || NULL ||
IP address of region server
+
|-
<br>
+
| '''[[#owner_uuid|owner_uuid]]''' || varchar(36) || NO ||  || 00000000-0000-0000-0000-000000000000 ||
<br>
+
|- style="background:#eee;"
'''serverPort'''<br>
+
| '''[[#originUUID|originUUID]]''' || varchar(36) || YES ||  || NULL ||
connection port for region server
+
|-
<br>
+
| '''[[#access|access]]''' || int(10) unsigned || YES ||  || 1 ||
<br>
+
|- style="background:#eee;"
'''serverURI'''<br>
+
| '''[[#ScopeID|ScopeID]]''' || char(36) || NO ||  || 00000000-0000-0000-0000-000000000000 ||
more detail req'd
+
|-
<br>
+
| '''[[#sizeX|sizeX]]''' || int(11) || NO ||  || 0 ||
<br>
+
|- style="background:#eee;"
'''locX'''<br>
+
| '''[[#sizeY|sizeY]]''' || int(11) || NO ||  || 0 ||
X coordinate of region on the grid
+
|-
<br>
+
| '''[[#flags|flags]]''' || int(11) || NO ||  || 0 ||
<br>
+
|- style="background:#eee;"
'''locY'''<br>
+
| '''[[#last_seen|last_seen]]''' || int(11) || NO ||  || 0 ||
Y coordinate of region on the grid
+
|-
<br>
+
| '''[[#PrincipalID|PrincipalID]]''' || char(36) || NO ||  || 00000000-0000-0000-0000-000000000000 ||
<br>
+
|- style="background:#eee;"
'''locZ'''<br>
+
| '''[[#Token|Token]]''' || varchar(255) || NO ||  || None ||
Z coordinate of region on the grid *grinz*
+
|-
<br>
+
| '''[[#parcelMapTexture|parcelMapTexture]]''' || varchar(36) || YES ||  || NULL ||
<br>
+
|- style="background:#eee;"
'''eastOverrideHandle'''<br>
+
|}
more detail req'd
+
 
<br>
+
 
<br>
+
      (back to [[Database Documentation]])
'''westOverrideHandle'''<br>
+
 
more detail req'd
+
 
<br>
+
----
<br>
+
 
'''southOverrideHandle'''<br>
+
 
more detail req'd
+
== regions Fields ==
<br>
+
 
<br>
+
== regions Fields ==
'''northOverrideHandle'''<br>
+
 
more detail req'd
+
'''uuid'''
<br>
+
:The region's unique identifier
<br>
+
 
'''regionAssetURI'''<br>
+
'''regionHandle'''
The URL and port number of the Asset Server for the grid
+
:The absolute address of the origin coordinates, specified in metres, of the region calculated from LocX and LocY as
<br>
+
:(LocX*256*65536)+(LocY*256).
<br>
+
 
'''regionAssetRecvKey'''<br>
+
'''regionName'''
key used to verify the authenticity of communications received from the asset server
+
:The region's name as it appears on maps - not necesarily unique
<br>
+
 
<br>
+
'''regionRecvKey'''
'''regionAssetSendKey'''<br>
+
:The key used by the region server to verify authenticity of communications from other regions
key used to verify the authenticity of communications sent to the asset server
+
 
<br>
+
'''regionSendKey'''
<br>
+
:The key used by the region server when verifying its identity in communications with other regions  
'''regionUserURI'''<br>
+
 
The URL and port number of the User Server for the grid
+
'''regionSecret'''
<br>
+
:more detail req'd
<br>
+
 
'''regionUserRecvKey'''<br>
+
'''regionDataURI'''
key used to verify the authenticity of communications received from the user server
+
:more detail req'd
<br>
+
 
<br>
+
'''serverIP'''
'''regionUserSendKey'''<br>
+
:IP address of region server
key used to verify the authenticity of communications sent to the user server
+
 
<br>
+
'''serverPort'''
<br>
+
:connection port for a specific region(this can be but need not be the same as http, each region should have its own port)
'''regionMapTexture'''<br>
+
 
texture for the map as displayed in the client minimap
+
'''serverURI'''
<br>
+
:http representation of serverIP and main http port
<br>
+
 
'''serverHttpPort'''<br>
+
'''locX'''
port the region will answer on for HTTP requests
+
:X coordinate of region on the grid in absolute meters locX/256 is equal to coordinate in Regions.ini
<br>
+
 
<br>
+
'''locY'''
'''serverRemotingPort'''<br>
+
:Y coordinate of region on the grid in absolute meters locY/256 is equal to coordinate in Regions.ini
more detail req'd
+
 
<br>
+
'''locZ'''
<br>
+
:Z coordinate of region on the grid *grinz*
'''owner_uuid'''<br>
+
 
UUID of the avatar/account which owns the region
+
'''eastOverrideHandle'''
<br>
+
:more detail req'd
<br>
+
 
'''originUUID'''<br>
+
'''westOverrideHandle'''
more detail req'd, currently seems to contain the current UUID of the region.
+
:more detail req'd
<br>
+
 
<br>
+
'''southOverrideHandle'''
<hr>
+
:more detail req'd
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(back to [[Database Documentation]])
+
 
<br>
+
'''northOverrideHandle'''
 +
:more detail req'd
 +
 
 +
'''regionAssetURI'''
 +
:The URL and port number of the Asset Server for the grid
 +
 
 +
'''regionAssetRecvKey'''
 +
:Key used to verify the authenticity of communications received from the asset server
 +
 
 +
'''regionAssetSendKey'''
 +
:Key used to verify the authenticity of communications sent to the asset server
 +
 
 +
'''regionUserURI'''
 +
:The URL and port number of the User Server for the grid
 +
 
 +
'''regionUserRecvKey'''
 +
:Key used to verify the authenticity of communications received from the user server
 +
 
 +
'''regionUserSendKey'''
 +
:Key used to verify the authenticity of communications sent to the user server
 +
 
 +
'''regionMapTexture'''
 +
:Texture for the map as displayed in the client minimap
 +
 
 +
'''serverHttpPort'''
 +
:Port the region will answer on for HTTP requests
 +
 
 +
'''serverRemotingPort'''
 +
:more detail req'd
 +
 
 +
'''owner_uuid'''
 +
:UUID of the avatar/account which owns the region
 +
 
 +
'''originUUID'''
 +
:more detail req'd, currently seems to contain the current UUID of the region.
 +
 
 +
'''access'''
 +
:PG=13 Region is set to PG
 +
:Moderate=21 Region is set to Moderate
 +
:Adult=42 Region is set to Adult
 +
 
 +
'''ScopeID'''
 +
:more detail req'd
 +
 
 +
'''sizeX'''
 +
:X size of region (in m)
 +
 
 +
'''sizeY'''
 +
:Y size of region (in m)
 +
 
 +
'''flags'''
 +
:DefaultRegion=1 Default region for new avatars. Region is randomly selected if multiple regions have fallback flag set.
 +
:FallbackRegion=2 Regions we redirect to when the destination is down
 +
:RegionOnline=4 Set when a region comes online, unset when it unregisters and DeleteOnUnregister is false
 +
:NoDirectLogin=8 Region unavailable for direct logins (by name)
 +
:Persistent=16 Don't remove on unregister
 +
:LockedOut=32 Don't allow registration
 +
:NoMove=64 Don't allow moving this region
 +
:Reservation=128 This is an inactive reservation
 +
:Authenticate=256 Require authentication
 +
:Hyperlink=512 Record represents a HG link
 +
:DefaultHGRegion=1024 Record represents a default region for hypergrid teleports only.
 +
 
 +
'''last_seen'''
 +
:more detail req'd
 +
 
 +
'''PrincipalID'''
 +
:more detail req'd
 +
 
 +
'''Token'''
 +
:more detail req'd
 +
 
 +
 
 +
----
 +
 
 +
(back to [[Database Documentation]])
 +
 
 +
 
 
[[Category:Database]]
 
[[Category:Database]]

Latest revision as of 08:38, 24 April 2024


The regions table contains information concerning all the regions currently connected to the grid.      (back to Database Documentation)

[edit] regions Table Structure

The structure of the regions table is as follows:


Field Type Null Key Default Extra
uuid varchar(36) NO PRI NULL  
regionHandle bigint(20) unsigned NO MUL NULL
regionName varchar(32) YES MUL NULL
regionRecvKey varchar(128) YES NULL
regionSendKey varchar(128) YES NULL
regionSecret varchar(128) YES NULL
regionDataURI varchar(255) YES NULL
serverIP varchar(64) YES NULL
serverPort int(10) unsigned YES NULL
serverURI varchar(255) YES NULL
locX int(10) unsigned YES NULL
locY int(10) unsigned YES NULL
locZ int(10) unsigned YES NULL
eastOverrideHandle bigint(20) unsigned YES MUL NULL
westOverrideHandle bigint(20) unsigned YES NULL
southOverrideHandle bigint(20) unsigned YES NULL
northOverrideHandle bigint(20) unsigned YES NULL
regionAssetURI varchar(255) YES NULL
regionAssetRecvKey varchar(128) YES PRI NULL
regionAssetSendKey varchar(128) YES PRI NULL
regionUserURI varchar(255) YES NULL
regionUserRecvKey varchar(128) YES NULL
regionUserSendKey varchar(128) YES NULL
regionMapTexture varchar(36) YES NULL
serverHttpPort int(10) YES NULL
serverRemotingPort int(10) YES NULL
owner_uuid varchar(36) NO 00000000-0000-0000-0000-000000000000
originUUID varchar(36) YES NULL
access int(10) unsigned YES 1
ScopeID char(36) NO 00000000-0000-0000-0000-000000000000
sizeX int(11) NO 0
sizeY int(11) NO 0
flags int(11) NO 0
last_seen int(11) NO 0
PrincipalID char(36) NO 00000000-0000-0000-0000-000000000000
Token varchar(255) NO None
parcelMapTexture varchar(36) YES NULL


      (back to Database Documentation)




[edit] regions Fields

[edit] regions Fields

uuid

The region's unique identifier

regionHandle

The absolute address of the origin coordinates, specified in metres, of the region calculated from LocX and LocY as
(LocX*256*65536)+(LocY*256).

regionName

The region's name as it appears on maps - not necesarily unique

regionRecvKey

The key used by the region server to verify authenticity of communications from other regions

regionSendKey

The key used by the region server when verifying its identity in communications with other regions

regionSecret

more detail req'd

regionDataURI

more detail req'd

serverIP

IP address of region server

serverPort

connection port for a specific region(this can be but need not be the same as http, each region should have its own port)

serverURI

http representation of serverIP and main http port

locX

X coordinate of region on the grid in absolute meters locX/256 is equal to coordinate in Regions.ini

locY

Y coordinate of region on the grid in absolute meters locY/256 is equal to coordinate in Regions.ini

locZ

Z coordinate of region on the grid *grinz*

eastOverrideHandle

more detail req'd

westOverrideHandle

more detail req'd

southOverrideHandle

more detail req'd

northOverrideHandle

more detail req'd

regionAssetURI

The URL and port number of the Asset Server for the grid

regionAssetRecvKey

Key used to verify the authenticity of communications received from the asset server

regionAssetSendKey

Key used to verify the authenticity of communications sent to the asset server

regionUserURI

The URL and port number of the User Server for the grid

regionUserRecvKey

Key used to verify the authenticity of communications received from the user server

regionUserSendKey

Key used to verify the authenticity of communications sent to the user server

regionMapTexture

Texture for the map as displayed in the client minimap

serverHttpPort

Port the region will answer on for HTTP requests

serverRemotingPort

more detail req'd

owner_uuid

UUID of the avatar/account which owns the region

originUUID

more detail req'd, currently seems to contain the current UUID of the region.

access

PG=13 Region is set to PG
Moderate=21 Region is set to Moderate
Adult=42 Region is set to Adult

ScopeID

more detail req'd

sizeX

X size of region (in m)

sizeY

Y size of region (in m)

flags

DefaultRegion=1 Default region for new avatars. Region is randomly selected if multiple regions have fallback flag set.
FallbackRegion=2 Regions we redirect to when the destination is down
RegionOnline=4 Set when a region comes online, unset when it unregisters and DeleteOnUnregister is false
NoDirectLogin=8 Region unavailable for direct logins (by name)
Persistent=16 Don't remove on unregister
LockedOut=32 Don't allow registration
NoMove=64 Don't allow moving this region
Reservation=128 This is an inactive reservation
Authenticate=256 Require authentication
Hyperlink=512 Record represents a HG link
DefaultHGRegion=1024 Record represents a default region for hypergrid teleports only.

last_seen

more detail req'd

PrincipalID

more detail req'd

Token

more detail req'd



(back to Database Documentation)

Personal tools
General
About This Wiki