001_GridStore.sql 1.4 KB

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