001_InventoryStore.sql 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. START TRANSACTION;
  2. CREATE TABLE `InventoryFolders` (
  3. `ID` char(36) NOT NULL,
  4. `Type` int(11) default NULL,
  5. `Version` int(11) default NULL,
  6. `ParentID` char(36) default NULL,
  7. `Owner` char(36) default NULL,
  8. `Name` varchar(64) default NULL,
  9. PRIMARY KEY (`ID`),
  10. KEY `folder_owner_id` (`Owner`),
  11. KEY `folder_parent_id` (`ParentID`)
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  13. CREATE TABLE `InventoryItems` (
  14. `ID` char(36) NOT NULL,
  15. `InvType` smallint(6) default NULL,
  16. `AssetType` smallint(6) default NULL,
  17. `AssetID` char(36) default NULL,
  18. `Folder` char(36) default NULL,
  19. `Owner` char(36) default NULL,
  20. `Creator` char(36) default NULL,
  21. `Name` varchar(64) default NULL,
  22. `Description` varchar(64) default NULL,
  23. `NextPermissions` int(11) default NULL,
  24. `CurrentPermissions` int(11) default NULL,
  25. `BasePermissions` int(11) default NULL,
  26. `EveryOnePermissions` int(11) default NULL,
  27. `GroupID` char(36) default NULL,
  28. `GroupOwned` tinyint(1) default NULL,
  29. `SalePrice` int(11) default NULL,
  30. `SaleType` smallint(6) default NULL,
  31. `Flags` int(11) default NULL,
  32. `CreationDate` int(11) default NULL,
  33. PRIMARY KEY (`ID`),
  34. KEY `item_group_id` (`GroupID`),
  35. KEY `item_owner_id` (`Owner`),
  36. KEY `item_folder_id` (`Folder`)
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  38. COMMIT;