mssql-users.sql 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. PRIMARY KEY CLUSTERED
  28. (
  29. [UUID] ASC
  30. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  31. ) ON [PRIMARY]
  32. CREATE NONCLUSTERED INDEX [usernames] ON [users]
  33. (
  34. [username] ASC,
  35. [lastname] 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]