03f75e189c
- /restore-character: recupera personajes borrados por BD (como .character deleted restore). Condiciones: nivel>60, borrado <30 días, DK no si ya hay DK activo, nombre libre, cooldown 12h/personaje. Gratis. Tabla home_restorehistory. - /restore-items: recupera ítems borrados vía SOAP del core (.item restore list / .item restore); el core aplica calidad/equipable/BoP/<7días. Cada ítem 100 PD (reembolso si SOAP falla), consulta con cooldown 8h/personaje + Turnstile. Tabla home_itemsearchhistory. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 lines
366 B
SQL
9 lines
366 B
SQL
-- Cooldown de "consultar ítems borrados" (/restore-items): 8 h por personaje.
|
|
CREATE TABLE IF NOT EXISTS home_itemsearchhistory (
|
|
id BIGINT NOT NULL AUTO_INCREMENT,
|
|
character_name VARCHAR(12) NOT NULL,
|
|
used_at DATETIME NOT NULL,
|
|
PRIMARY KEY (id),
|
|
KEY idx_char (character_name, used_at)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|