CreateItemsTable.sql 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. SET ANSI_NULLS ON
  2. SET QUOTED_IDENTIFIER ON
  3. SET ANSI_PADDING ON
  4. CREATE TABLE [inventoryitems] (
  5. [inventoryID] [varchar](36) NOT NULL default '',
  6. [assetID] [varchar](36) default NULL,
  7. [assetType] [int] default NULL,
  8. [parentFolderID] [varchar](36) default NULL,
  9. [avatarID] [varchar](36) default NULL,
  10. [inventoryName] [varchar](64) default NULL,
  11. [inventoryDescription] [varchar](128) default NULL,
  12. [inventoryNextPermissions] [int] default NULL,
  13. [inventoryCurrentPermissions] [int] default NULL,
  14. [invType] [int] default NULL,
  15. [creatorID] [varchar](36) default NULL,
  16. [inventoryBasePermissions] [int] NOT NULL default 0,
  17. [inventoryEveryOnePermissions] [int] NOT NULL default 0,
  18. [salePrice] [int] default NULL,
  19. [saleType] [tinyint] default NULL,
  20. [creationDate] [int] default NULL,
  21. [groupID] [varchar](36) default NULL,
  22. [groupOwned] [tinyint] default NULL,
  23. [flags] [int] unsigned default NULL,
  24. PRIMARY KEY CLUSTERED
  25. (
  26. [inventoryID] ASC
  27. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  28. ) ON [PRIMARY]
  29. CREATE NONCLUSTERED INDEX [owner] ON [inventoryitems]
  30. (
  31. [avatarID] ASC
  32. )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]
  33. CREATE NONCLUSTERED INDEX [folder] ON [inventoryitems]
  34. (
  35. [parentFolderID] ASC
  36. )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]
  37. SET ANSI_PADDING OFF