Start of Inventory service, currently only (partially) functional in standalone mode and using sqlite).

In standalone mode, if you have account authenticate turned on (setting in opensim.ini) then when you create a new account, a set of inventory is created for that account and stored in database (currently only a set of empty folders). Then during login the database is search for that set and sent to the client in the login response.
More functions will be added soon, like creating new folders (and a bit later items) from the client inventory window.
This commit is contained in:
MW
2007-08-14 13:54:46 +00:00
parent 7b2663a41e
commit a228b5984e
14 changed files with 663 additions and 30 deletions

View File

@@ -0,0 +1,40 @@
--
-- Database schema for inventory storage
--
--
-- Some type mappings
-- LLUID => char(36) (in ascii hex format)
-- uint => integer
-- string => varchar(256) until such time as we know we need bigger
create table inventoryitems (
UUID char(36) primary key, -- inventoryid
assetID char(36),
assetType integer,
invType integer,
parentFolderID char(36),
avatarID char(36),
creatorsID char(36),
inventoryName varchar(256),
inventoryDescription varchar(256),
-- permissions
inventoryNextPermissions integer,
inventoryCurrentPermissions integer,
inventoryBasePermissions integer,
inventoryEveryOnePermissions integer
);
create index inventoryitems_parent on inventoryitems(parentFolderID);
create index inventoryitems_ownerid on inventoryitems(avatarID);
create index inventoryitems_assetid on inventoryitems(assetID);
create table inventoryfolders (
-- The same UUID as prim, just to keep them easily linked
UUID varchar(36) primary key not null, --folderid
name varchar(256),
agentID char(36),
parentID char(36),
type integer,
version integer
);