1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 17:30:59 +01:00
phorge-phorge/resources/sql/patches/userstatus.sql

12 lines
423 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_user.user_status (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`userPHID` varchar(64) NOT NULL,
`dateFrom` int unsigned NOT NULL,
`dateTo` int unsigned NOT NULL,
`status` tinyint unsigned NOT NULL,
`dateCreated` int unsigned NOT NULL,
`dateModified` int unsigned NOT NULL,
PRIMARY KEY (`id`),
INDEX `userPHID_dateFrom` (`userPHID`, `dateTo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;