001_UserStore.sql 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. create table UserAgents (
  2. ProfileID NVARCHAR(255) not null,
  3. AgentIP NVARCHAR(24) null,
  4. AgentPort INT null,
  5. AgentOnline BIT null,
  6. SessionID NVARCHAR(255) null,
  7. SecureSessionID NVARCHAR(255) null,
  8. InitialRegion NVARCHAR(255) null,
  9. Region NVARCHAR(255) null,
  10. LoginTime INT null,
  11. LogoutTime INT null,
  12. Handle BIGINT null,
  13. primary key (ProfileID)
  14. )
  15. create table UserProfiles (
  16. ID NVARCHAR(255) not null,
  17. FirstName NVARCHAR(32) null,
  18. SurName NVARCHAR(32) null,
  19. PasswordHash NVARCHAR(32) null,
  20. PasswordSalt NVARCHAR(32) null,
  21. WebLoginKey NVARCHAR(255) null,
  22. HomeRegionX INT null,
  23. HomeRegionY INT null,
  24. HomeLocationX REAL null,
  25. HomeLocationY REAL null,
  26. HomeLocationZ REAL null,
  27. HomeLookAtX REAL null,
  28. HomeLookAtY REAL null,
  29. HomeLookAtZ REAL null,
  30. Created INT null,
  31. LastLogin INT null,
  32. RootInventoryFolderID NVARCHAR(255) null,
  33. UserInventoryURI NVARCHAR(255) null,
  34. UserAssetURI NVARCHAR(255) null,
  35. Image NVARCHAR(255) null,
  36. FirstLifeImage NVARCHAR(255) null,
  37. AboutText NVARCHAR(255) null,
  38. FirstLifeAboutText NVARCHAR(255) null,
  39. primary key (ID)
  40. )
  41. create table UserAppearances (
  42. Owner NVARCHAR(255) not null,
  43. BodyItem NVARCHAR(255) null,
  44. BodyAsset NVARCHAR(255) null,
  45. SkinItem NVARCHAR(255) null,
  46. SkinAsset NVARCHAR(255) null,
  47. HairItem NVARCHAR(255) null,
  48. HairAsset NVARCHAR(255) null,
  49. EyesItem NVARCHAR(255) null,
  50. EyesAsset NVARCHAR(255) null,
  51. ShirtItem NVARCHAR(255) null,
  52. ShirtAsset NVARCHAR(255) null,
  53. PantsItem NVARCHAR(255) null,
  54. PantsAsset NVARCHAR(255) null,
  55. ShoesItem NVARCHAR(255) null,
  56. ShoesAsset NVARCHAR(255) null,
  57. SocksItem NVARCHAR(255) null,
  58. SocksAsset NVARCHAR(255) null,
  59. JacketItem NVARCHAR(255) null,
  60. JacketAsset NVARCHAR(255) null,
  61. GlovesItem NVARCHAR(255) null,
  62. GlovesAsset NVARCHAR(255) null,
  63. UnderShirtItem NVARCHAR(255) null,
  64. UnderShirtAsset NVARCHAR(255) null,
  65. UnderPantsItem NVARCHAR(255) null,
  66. UnderPantsAsset NVARCHAR(255) null,
  67. SkirtItem NVARCHAR(255) null,
  68. SkirtAsset NVARCHAR(255) null,
  69. Texture VARBINARY(8000) null,
  70. VisualParams VARBINARY(8000) null,
  71. Serial INT null,
  72. primary key (Owner)
  73. )
  74. create index user_surname on UserProfiles (SurName)
  75. create index user_firstname on UserProfiles (FirstName)