001_GridStore.sql 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. CREATE TABLE Regions (
  2. RegionId VARCHAR(36) NOT NULL,
  3. RegionHandle BIGINT UNSIGNED NOT NULL,
  4. RegionName VARCHAR(32) DEFAULT NULL,
  5. RegionRecvKey VARCHAR(128) DEFAULT NULL,
  6. RegionSendKey VARCHAR(128) DEFAULT NULL,
  7. RegionSecret VARCHAR(128) DEFAULT NULL,
  8. RegionDataURI VARCHAR(255) DEFAULT NULL,
  9. ServerIP VARCHAR(64) DEFAULT NULL,
  10. ServerPort INT UNSIGNED DEFAULT NULL,
  11. ServerURI VARCHAR(255) DEFAULT NULL,
  12. RegionLocX INT UNSIGNED DEFAULT NULL,
  13. RegionLocY INT UNSIGNED DEFAULT NULL,
  14. RegionLocZ INT UNSIGNED DEFAULT NULL,
  15. EastOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
  16. WestOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
  17. SouthOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
  18. NorthOverrideHandle BIGINT UNSIGNED DEFAULT NULL,
  19. RegionAssetURI VARCHAR(255) DEFAULT NULL,
  20. RegionAssetRecvKey VARCHAR(128) DEFAULT NULL,
  21. RegionAssetSendKey VARCHAR(128) DEFAULT NULL,
  22. RegionUserURI VARCHAR(255) DEFAULT NULL,
  23. RegionUserRecvKey VARCHAR(128) DEFAULT NULL,
  24. RegionUserSendKey VARCHAR(128) DEFAULT NULL,
  25. RegionMapTextureId VARCHAR(36) DEFAULT NULL,
  26. ServerHttpPort INT DEFAULT NULL,
  27. ServerRemotingPort INT DEFAULT NULL,
  28. OwnerID VARCHAR(36) DEFAULT NULL,
  29. OriginID VARCHAR(36) DEFAULT NULL,
  30. PRIMARY KEY (RegionId)
  31. );
  32. CREATE INDEX RegionNameIndex ON Regions (RegionName);
  33. CREATE INDEX RegionHandleIndex ON Regions (RegionHandle);
  34. CREATE INDEX RegionHandlesIndex ON Regions (EastOverrideHandle,WestOverrideHandle,SouthOverrideHandle,NorthOverrideHandle);