001_InventoryStore.sql 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. BEGIN TRANSACTION
  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 CLUSTERED
  10. (
  11. [folderID] ASC
  12. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  13. ) ON [PRIMARY]
  14. CREATE NONCLUSTERED INDEX [owner] ON [inventoryfolders]
  15. (
  16. [agentID] ASC
  17. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  18. CREATE NONCLUSTERED INDEX [parent] ON [inventoryfolders]
  19. (
  20. [parentFolderID] ASC
  21. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  22. CREATE TABLE [inventoryitems] (
  23. [inventoryID] [varchar](36) NOT NULL default '',
  24. [assetID] [varchar](36) default NULL,
  25. [assetType] [int] default NULL,
  26. [parentFolderID] [varchar](36) default NULL,
  27. [avatarID] [varchar](36) default NULL,
  28. [inventoryName] [varchar](64) default NULL,
  29. [inventoryDescription] [varchar](128) default NULL,
  30. [inventoryNextPermissions] [int] default NULL,
  31. [inventoryCurrentPermissions] [int] default NULL,
  32. [invType] [int] default NULL,
  33. [creatorID] [varchar](36) default NULL,
  34. [inventoryBasePermissions] [int] NOT NULL default 0,
  35. [inventoryEveryOnePermissions] [int] NOT NULL default 0,
  36. [salePrice] [int] default NULL,
  37. [saleType] [tinyint] default NULL,
  38. [creationDate] [int] default NULL,
  39. [groupID] [varchar](36) default NULL,
  40. [groupOwned] [bit] default NULL,
  41. [flags] [int] default NULL,
  42. PRIMARY KEY CLUSTERED
  43. (
  44. [inventoryID] ASC
  45. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  46. ) ON [PRIMARY]
  47. CREATE NONCLUSTERED INDEX [owner] ON [inventoryitems]
  48. (
  49. [avatarID] ASC
  50. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  51. CREATE NONCLUSTERED INDEX [folder] ON [inventoryitems]
  52. (
  53. [parentFolderID] ASC
  54. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  55. COMMIT