001_InventoryStore.sql 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. BEGIN;
  2. CREATE TABLE `inventoryfolders` (
  3. `folderID` varchar(36) NOT NULL default '',
  4. `agentID` varchar(36) default NULL,
  5. `parentFolderID` varchar(36) default NULL,
  6. `folderName` varchar(64) default NULL,
  7. `type` smallint NOT NULL default 0,
  8. `version` int NOT NULL default 0,
  9. PRIMARY KEY (`folderID`),
  10. KEY `owner` (`agentID`),
  11. KEY `parent` (`parentFolderID`)
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  13. CREATE TABLE `inventoryitems` (
  14. `inventoryID` varchar(36) NOT NULL default '',
  15. `assetID` varchar(36) default NULL,
  16. `assetType` int(11) default NULL,
  17. `parentFolderID` varchar(36) default NULL,
  18. `avatarID` varchar(36) default NULL,
  19. `inventoryName` varchar(64) default NULL,
  20. `inventoryDescription` varchar(128) default NULL,
  21. `inventoryNextPermissions` int(10) unsigned default NULL,
  22. `inventoryCurrentPermissions` int(10) unsigned default NULL,
  23. `invType` int(11) default NULL,
  24. `creatorID` varchar(36) default NULL,
  25. `inventoryBasePermissions` int(10) unsigned NOT NULL default 0,
  26. `inventoryEveryOnePermissions` int(10) unsigned NOT NULL default 0,
  27. `salePrice` int(11) NOT NULL default 0,
  28. `saleType` tinyint(4) NOT NULL default 0,
  29. `creationDate` int(11) NOT NULL default 0,
  30. `groupID` varchar(36) NOT NULL default '00000000-0000-0000-0000-000000000000',
  31. `groupOwned` tinyint(4) NOT NULL default 0,
  32. `flags` int(11) unsigned NOT NULL default 0,
  33. PRIMARY KEY (`inventoryID`),
  34. KEY `owner` (`avatarID`),
  35. KEY `folder` (`parentFolderID`)
  36. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  37. COMMIT;