1
0

UserProfiles.migrations 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. :VERSION 1 # -------------------------------
  2. begin;
  3. CREATE TABLE IF NOT EXISTS classifieds (
  4. classifieduuid char(36) NOT NULL PRIMARY KEY,
  5. creatoruuid char(36) NOT NULL,
  6. creationdate int(20) NOT NULL,
  7. expirationdate int(20) NOT NULL,
  8. category varchar(20) NOT NULL,
  9. name varchar(255) NOT NULL,
  10. description text NOT NULL,
  11. parceluuid char(36) NOT NULL,
  12. parentestate int(11) NOT NULL,
  13. snapshotuuid char(36) NOT NULL,
  14. simname varchar(255) NOT NULL,
  15. posglobal varchar(255) NOT NULL,
  16. parcelname varchar(255) NOT NULL,
  17. classifiedflags int(8) NOT NULL,
  18. priceforlisting int(5) NOT NULL
  19. );
  20. commit;
  21. begin;
  22. CREATE TABLE IF NOT EXISTS usernotes (
  23. useruuid varchar(36) NOT NULL,
  24. targetuuid varchar(36) NOT NULL,
  25. notes text NOT NULL,
  26. UNIQUE (useruuid,targetuuid) ON CONFLICT REPLACE
  27. );
  28. commit;
  29. begin;
  30. CREATE TABLE IF NOT EXISTS userpicks (
  31. pickuuid varchar(36) NOT NULL PRIMARY KEY,
  32. creatoruuid varchar(36) NOT NULL,
  33. toppick int NOT NULL,
  34. parceluuid varchar(36) NOT NULL,
  35. name varchar(255) NOT NULL,
  36. description text NOT NULL,
  37. snapshotuuid varchar(36) NOT NULL,
  38. user varchar(255) NOT NULL,
  39. originalname varchar(255) NOT NULL,
  40. simname varchar(255) NOT NULL,
  41. posglobal varchar(255) NOT NULL,
  42. sortorder int(2) NOT NULL,
  43. enabled int NOT NULL
  44. );
  45. commit;
  46. begin;
  47. CREATE TABLE IF NOT EXISTS userprofile (
  48. useruuid varchar(36) NOT NULL PRIMARY KEY,
  49. profilePartner varchar(36) NOT NULL,
  50. profileAllowPublish binary(1) NOT NULL,
  51. profileMaturePublish binary(1) NOT NULL,
  52. profileURL varchar(255) NOT NULL,
  53. profileWantToMask int(3) NOT NULL,
  54. profileWantToText text NOT NULL,
  55. profileSkillsMask int(3) NOT NULL,
  56. profileSkillsText text NOT NULL,
  57. profileLanguages text NOT NULL,
  58. profileImage varchar(36) NOT NULL,
  59. profileAboutText text NOT NULL,
  60. profileFirstImage varchar(36) NOT NULL,
  61. profileFirstText text NOT NULL
  62. );
  63. commit;
  64. :VERSION 2 # -------------------------------
  65. begin;
  66. CREATE TABLE IF NOT EXISTS userdata (
  67. UserId char(36) NOT NULL,
  68. TagId varchar(64) NOT NULL,
  69. DataKey varchar(255),
  70. DataVal varchar(255),
  71. PRIMARY KEY (UserId,TagId)
  72. );
  73. commit;
  74. :VERSION 3 # -------------------------------
  75. begin;
  76. CREATE TABLE IF NOT EXISTS usersettings (
  77. useruuid char(36) NOT NULL,
  78. imviaemail binary(1) NOT NULL,
  79. visible binary(1) NOT NULL,
  80. email varchar(254) NOT NULL,
  81. PRIMARY KEY (useruuid)
  82. )
  83. commit;