blob: 50437af59cc9169c55a3f87641c7562568c83611 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
:VERSION 4 # --------------------------
BEGIN;
CREATE TABLE IF NOT EXISTS `Presence` (
`UserID` varchar(255) NOT NULL,
`RegionID` char(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
`SessionID` char(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
`SecureSessionID` char(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
`LastSeen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
UNIQUE KEY `SessionID` (`SessionID`),
KEY `UserID` (`UserID`),
KEY `RegionID` (`RegionID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
COMMIT;
|