DROP TABLE IF EXISTS account_reset;
CREATE TABLE account_reset (
	id         INTEGER PRIMARY KEY,
	account_id INTEGER NOT NULL,
	token      TEXT    NOT NULL UNIQUE,
	ip         TEXT    NOT NULL,
	expires    INTEGER NOT NULL
);
CREATE INDEX idx_account_id ON account_reset(account_id);
