CREATE TABLE /*_*/isekai_user_points ( `user_id` INT UNSIGNED NOT NULL, `type` VARCHAR(20) NOT NULL, `points` INT UNSIGNED NOT NULL DEFAULT '0', `timed_points_data` LONGTEXT NOT NULL, `locked_points` INT UNSIGNED NOT NULL DEFAULT '0', `locked_points_data` LONGTEXT NOT NULL, `next_refresh_time` BIGINT UNSIGNED NULL ) /*$wgDBTableOptions*/; ALTER TABLE /*_*/isekai_user_points ADD PRIMARY KEY (`user_id`, `type`); ALTER TABLE /*_*/isekai_user_points ADD INDEX(`user_id`); ALTER TABLE /*_*/isekai_user_points ADD INDEX(`type`); ALTER TABLE /*_*/isekai_user_points ADD INDEX(`points`); ALTER TABLE /*_*/isekai_user_points ADD INDEX(`next_refresh_time`);