001_EstateStore.sql 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. CREATE TABLE EstateSettings (
  2. EstateID INT NOT NULL,
  3. ParentEstateID INT DEFAULT NULL,
  4. EstateOwnerID VARCHAR(36) DEFAULT NULL,
  5. Name VARCHAR(64) DEFAULT NULL,
  6. RedirectGridX INT DEFAULT NULL,
  7. RedirectGridY INT DEFAULT NULL,
  8. BillableFactor DOUBLE DEFAULT NULL,
  9. PricePerMeter INT DEFAULT NULL,
  10. SunPosition DOUBLE DEFAULT NULL,
  11. UseGlobalTime BIT DEFAULT NULL,
  12. FixedSun BIT DEFAULT NULL,
  13. AllowVoice BIT DEFAULT NULL,
  14. AllowDirectTeleport BIT DEFAULT NULL,
  15. ResetHomeOnTeleport BIT DEFAULT NULL,
  16. PublicAccess BIT DEFAULT NULL,
  17. DenyAnonymous BIT DEFAULT NULL,
  18. DenyIdentified BIT DEFAULT NULL,
  19. DenyTransacted BIT DEFAULT NULL,
  20. DenyMinors BIT DEFAULT NULL,
  21. BlockDwell BIT DEFAULT NULL,
  22. EstateSkipScripts BIT DEFAULT NULL,
  23. TaxFree BIT DEFAULT NULL,
  24. AbuseEmailToEstateOwner BIT DEFAULT NULL,
  25. AbuseEmail VARCHAR(255) DEFAULT NULL,
  26. PRIMARY KEY (EstateID)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  28. CREATE TABLE EstateRegionLink (
  29. EstateRegionLinkID VARCHAR(36) NOT NULL,
  30. EstateID INT DEFAULT NULL,
  31. RegionID VARCHAR(36) DEFAULT NULL,
  32. PRIMARY KEY (EstateRegionLinkID)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  34. CREATE INDEX EstateRegionLinkEstateIDIndex ON EstateRegionLink (EstateID);
  35. CREATE INDEX EstateRegionLinkERegionIDIndex ON EstateRegionLink (RegionID);
  36. CREATE TABLE EstateManagers (
  37. EstateID INT NOT NULL,
  38. ManagerID VARCHAR(36) NOT NULL,
  39. ArrayIndex INT NOT NULL,
  40. PRIMARY KEY (EstateID,ArrayIndex)
  41. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  42. CREATE TABLE EstateUsers (
  43. EstateID INT NOT NULL,
  44. UserID VARCHAR(36) NOT NULL,
  45. ArrayIndex INT NOT NULL,
  46. PRIMARY KEY (EstateID,ArrayIndex)
  47. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  48. CREATE TABLE EstateGroups (
  49. EstateID INT NOT NULL,
  50. GroupID VARCHAR(36) NOT NULL,
  51. ArrayIndex INT NOT NULL,
  52. PRIMARY KEY (EstateID,ArrayIndex)
  53. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';
  54. CREATE TABLE EstateBans (
  55. EstateID INT NOT NULL,
  56. ArrayIndex INT NOT NULL,
  57. BannedUserID VARCHAR(36) NOT NULL,
  58. BannedHostAddress VARCHAR(16) NOT NULL,
  59. BannedHostIPMask VARCHAR(16) NOT NULL,
  60. BannedHostNameMask VARCHAR(16) NOT NULL,
  61. PRIMARY KEY (EstateID,ArrayIndex)
  62. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';