Mssql-users.sql 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. SET ANSI_NULLS ON
  2. SET QUOTED_IDENTIFIER ON
  3. SET ANSI_PADDING ON
  4. CREATE TABLE [users] (
  5. [UUID] [varchar](36) NOT NULL default '',
  6. [username] [varchar](32) NOT NULL,
  7. [lastname] [varchar](32) NOT NULL,
  8. [passwordHash] [varchar](32) NOT NULL,
  9. [passwordSalt] [varchar](32) NOT NULL,
  10. [homeRegion] [bigint] default NULL,
  11. [homeLocationX] [float] default NULL,
  12. [homeLocationY] [float] default NULL,
  13. [homeLocationZ] [float] default NULL,
  14. [homeLookAtX] [float] default NULL,
  15. [homeLookAtY] [float] default NULL,
  16. [homeLookAtZ] [float] default NULL,
  17. [created] [int] NOT NULL,
  18. [lastLogin] [int] NOT NULL,
  19. [userInventoryURI] [varchar](255) default NULL,
  20. [userAssetURI] [varchar](255) default NULL,
  21. [profileCanDoMask] [int] default NULL,
  22. [profileWantDoMask] [int] default NULL,
  23. [profileAboutText] [ntext],
  24. [profileFirstText] [ntext],
  25. [profileImage] [varchar](36) default NULL,
  26. [profileFirstImage] [varchar](36) default NULL,
  27. [webLoginKey] [varchar](36) default NULL,
  28. PRIMARY KEY CLUSTERED
  29. (
  30. [UUID] ASC
  31. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  32. ) ON [PRIMARY]
  33. CREATE NONCLUSTERED INDEX [usernames] ON [users]
  34. (
  35. [username] ASC,
  36. [lastname] ASC
  37. )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]