001_Presence.sql 395 B

12345678910111213
  1. BEGIN;
  2. CREATE TABLE `Presence` (
  3. `UserID` VARCHAR(255) NOT NULL,
  4. `RegionID` CHAR(36) NOT NULL,
  5. `SessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
  6. `SecureSessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'
  7. ) ENGINE=InnoDB;
  8. CREATE UNIQUE INDEX SessionID ON Presence(SessionID);
  9. CREATE INDEX UserID ON Presence(UserID);
  10. COMMIT;