1
0

001_UserStore.sql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. BEGIN TRANSACTION;
  2. -- users table
  3. CREATE TABLE users(
  4. UUID varchar(255) primary key,
  5. username varchar(255),
  6. surname varchar(255),
  7. passwordHash varchar(255),
  8. passwordSalt varchar(255),
  9. homeRegionX integer,
  10. homeRegionY integer,
  11. homeLocationX float,
  12. homeLocationY float,
  13. homeLocationZ float,
  14. homeLookAtX float,
  15. homeLookAtY float,
  16. homeLookAtZ float,
  17. created integer,
  18. lastLogin integer,
  19. rootInventoryFolderID varchar(255),
  20. userInventoryURI varchar(255),
  21. userAssetURI varchar(255),
  22. profileCanDoMask integer,
  23. profileWantDoMask integer,
  24. profileAboutText varchar(255),
  25. profileFirstText varchar(255),
  26. profileImage varchar(255),
  27. profileFirstImage varchar(255),
  28. webLoginKey text default '00000000-0000-0000-0000-000000000000');
  29. -- friends table
  30. CREATE TABLE userfriends(
  31. ownerID varchar(255),
  32. friendID varchar(255),
  33. friendPerms integer,
  34. ownerPerms integer,
  35. datetimestamp integer);
  36. COMMIT;