Adding SQL files for new userserver table layouts.
parent
d3e05bf743
commit
1aecd0372b
|
@ -0,0 +1,24 @@
|
|||
SET FOREIGN_KEY_CHECKS=0;
|
||||
-- ----------------------------
|
||||
-- Table structure for agents
|
||||
-- ----------------------------
|
||||
CREATE TABLE `agents` (
|
||||
`UUID` varchar(36) NOT NULL,
|
||||
`sessionID` varchar(36) NOT NULL,
|
||||
`secureSessionID` varchar(36) NOT NULL,
|
||||
`agentIP` varchar(16) NOT NULL,
|
||||
`agentPort` int(11) NOT NULL,
|
||||
`agentOnline` tinyint(4) NOT NULL,
|
||||
`loginTime` int(11) NOT NULL,
|
||||
`logoutTime` int(11) NOT NULL,
|
||||
`currentRegion` varchar(36) NOT NULL,
|
||||
`currentHandle` bigint(20) unsigned NOT NULL,
|
||||
`currentPos` varchar(64) NOT NULL,
|
||||
PRIMARY KEY (`UUID`),
|
||||
UNIQUE KEY `session` (`sessionID`),
|
||||
UNIQUE KEY `ssession` (`secureSessionID`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records
|
||||
-- ----------------------------
|
|
@ -0,0 +1,34 @@
|
|||
SET FOREIGN_KEY_CHECKS=0;
|
||||
-- ----------------------------
|
||||
-- Table structure for users
|
||||
-- ----------------------------
|
||||
CREATE TABLE `users` (
|
||||
`UUID` varchar(36) NOT NULL default '',
|
||||
`username` varchar(32) NOT NULL,
|
||||
`lastname` varchar(32) NOT NULL,
|
||||
`passwordHash` varchar(32) NOT NULL,
|
||||
`passwordSalt` varchar(32) NOT NULL,
|
||||
`homeRegion` bigint(20) unsigned default NULL,
|
||||
`homeLocationX` float default NULL,
|
||||
`homeLocationY` float default NULL,
|
||||
`homeLocationZ` float default NULL,
|
||||
`homeLookAtX` float default NULL,
|
||||
`homeLookAtY` float default NULL,
|
||||
`homeLookAtZ` float default NULL,
|
||||
`created` int(11) NOT NULL,
|
||||
`lastLogin` int(11) NOT NULL,
|
||||
`userInventoryURI` varchar(255) default NULL,
|
||||
`userAssetURI` varchar(255) default NULL,
|
||||
`profileCanDoMask` int(10) unsigned default NULL,
|
||||
`profileWantDoMask` int(10) unsigned default NULL,
|
||||
`profileAboutText` text,
|
||||
`profileFirstText` text,
|
||||
`profileImage` varchar(36) default NULL,
|
||||
`profileFirstImage` varchar(36) default NULL,
|
||||
PRIMARY KEY (`UUID`),
|
||||
UNIQUE KEY `usernames` (`username`,`lastname`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records
|
||||
-- ----------------------------
|
Loading…
Reference in New Issue