001_UserStore.sql 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. CREATE TABLE [users] (
  2. [UUID] [varchar](36) NOT NULL default '',
  3. [username] [varchar](32) NOT NULL,
  4. [lastname] [varchar](32) NOT NULL,
  5. [passwordHash] [varchar](32) NOT NULL,
  6. [passwordSalt] [varchar](32) NOT NULL,
  7. [homeRegion] [bigint] default NULL,
  8. [homeLocationX] [float] default NULL,
  9. [homeLocationY] [float] default NULL,
  10. [homeLocationZ] [float] default NULL,
  11. [homeLookAtX] [float] default NULL,
  12. [homeLookAtY] [float] default NULL,
  13. [homeLookAtZ] [float] default NULL,
  14. [created] [int] NOT NULL,
  15. [lastLogin] [int] NOT NULL,
  16. [userInventoryURI] [varchar](255) default NULL,
  17. [userAssetURI] [varchar](255) default NULL,
  18. [profileCanDoMask] [int] default NULL,
  19. [profileWantDoMask] [int] default NULL,
  20. [profileAboutText] [ntext],
  21. [profileFirstText] [ntext],
  22. [profileImage] [varchar](36) default NULL,
  23. [profileFirstImage] [varchar](36) default NULL,
  24. [webLoginKey] [varchar](36) default NULL,
  25. PRIMARY KEY CLUSTERED
  26. (
  27. [UUID] ASC
  28. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  29. ) ON [PRIMARY]
  30. CREATE NONCLUSTERED INDEX [usernames] ON [users]
  31. (
  32. [username] ASC,
  33. [lastname] ASC
  34. )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]
  35. CREATE TABLE [agents] (
  36. [UUID] [varchar](36) NOT NULL,
  37. [sessionID] [varchar](36) NOT NULL,
  38. [secureSessionID] [varchar](36) NOT NULL,
  39. [agentIP] [varchar](16) NOT NULL,
  40. [agentPort] [int] NOT NULL,
  41. [agentOnline] [tinyint] NOT NULL,
  42. [loginTime] [int] NOT NULL,
  43. [logoutTime] [int] NOT NULL,
  44. [currentRegion] [varchar](36) NOT NULL,
  45. [currentHandle] [bigint] NOT NULL,
  46. [currentPos] [varchar](64) NOT NULL,
  47. PRIMARY KEY CLUSTERED
  48. (
  49. [UUID] ASC
  50. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  51. ) ON [PRIMARY]
  52. CREATE NONCLUSTERED INDEX [session] ON [agents]
  53. (
  54. [sessionID] ASC
  55. )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]
  56. CREATE NONCLUSTERED INDEX [ssession] ON [agents]
  57. (
  58. [secureSessionID] ASC
  59. )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]
  60. CREATE TABLE [dbo].[userfriends](
  61. [ownerID] [varchar](50) COLLATE Latin1_General_CI_AS NOT NULL,
  62. [friendID] [varchar](50) COLLATE Latin1_General_CI_AS NOT NULL,
  63. [friendPerms] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  64. [datetimestamp] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
  65. ) ON [PRIMARY]
  66. CREATE TABLE [avatarappearance] (
  67. [Owner] [varchar](36) NOT NULL,
  68. [Serial] int NOT NULL,
  69. [Visual_Params] [image] NOT NULL,
  70. [Texture] [image] NOT NULL,
  71. [Avatar_Height] float NOT NULL,
  72. [Body_Item] [varchar](36) NOT NULL,
  73. [Body_Asset] [varchar](36) NOT NULL,
  74. [Skin_Item] [varchar](36) NOT NULL,
  75. [Skin_Asset] [varchar](36) NOT NULL,
  76. [Hair_Item] [varchar](36) NOT NULL,
  77. [Hair_Asset] [varchar](36) NOT NULL,
  78. [Eyes_Item] [varchar](36) NOT NULL,
  79. [Eyes_Asset] [varchar](36) NOT NULL,
  80. [Shirt_Item] [varchar](36) NOT NULL,
  81. [Shirt_Asset] [varchar](36) NOT NULL,
  82. [Pants_Item] [varchar](36) NOT NULL,
  83. [Pants_Asset] [varchar](36) NOT NULL,
  84. [Shoes_Item] [varchar](36) NOT NULL,
  85. [Shoes_Asset] [varchar](36) NOT NULL,
  86. [Socks_Item] [varchar](36) NOT NULL,
  87. [Socks_Asset] [varchar](36) NOT NULL,
  88. [Jacket_Item] [varchar](36) NOT NULL,
  89. [Jacket_Asset] [varchar](36) NOT NULL,
  90. [Gloves_Item] [varchar](36) NOT NULL,
  91. [Gloves_Asset] [varchar](36) NOT NULL,
  92. [Undershirt_Item] [varchar](36) NOT NULL,
  93. [Undershirt_Asset] [varchar](36) NOT NULL,
  94. [Underpants_Item] [varchar](36) NOT NULL,
  95. [Underpants_Asset] [varchar](36) NOT NULL,
  96. [Skirt_Item] [varchar](36) NOT NULL,
  97. [Skirt_Asset] [varchar](36) NOT NULL,
  98. PRIMARY KEY CLUSTERED (
  99. [Owner]
  100. ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  101. ) ON [PRIMARY]