You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
665 B
MySQL

2 years ago
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`);