001_EstateStore.sql 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 PRECISION DEFAULT NULL,
  9. PricePerMeter INT DEFAULT NULL,
  10. SunPosition DOUBLE PRECISION DEFAULT NULL,
  11. UseGlobalTime BOOLEAN DEFAULT NULL,
  12. FixedSun BOOLEAN DEFAULT NULL,
  13. AllowVoice BOOLEAN DEFAULT NULL,
  14. AllowDirectTeleport BOOLEAN DEFAULT NULL,
  15. ResetHomeOnTeleport BOOLEAN DEFAULT NULL,
  16. PublicAccess BOOLEAN DEFAULT NULL,
  17. DenyAnonymous BOOLEAN DEFAULT NULL,
  18. DenyIdentified BOOLEAN DEFAULT NULL,
  19. DenyTransacted BOOLEAN DEFAULT NULL,
  20. DenyMinors BOOLEAN DEFAULT NULL,
  21. BlockDwell BOOLEAN DEFAULT NULL,
  22. EstateSkipScripts BOOLEAN DEFAULT NULL,
  23. TaxFree BOOLEAN DEFAULT NULL,
  24. AbuseEmailToEstateOwner BOOLEAN DEFAULT NULL,
  25. AbuseEmail VARCHAR(255) DEFAULT NULL,
  26. PRIMARY KEY (EstateID)
  27. );
  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. );
  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. );
  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. );
  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. );
  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. );