-- MariaDB dump newploit db -- 2024-06-20 14:02:01
SET NAMES utf8;

DROP TABLE IF EXISTS sessions;
CREATE TABLE sessions(
  id VARCHAR(64) PRIMARY KEY,
  user_id INT NOT NULL,
  token TEXT,
  expires_at DATETIME
) ENGINE=InnoDB;

INSERT INTO sessions VALUES
 ('abc123','1','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOiJhZG1pbiJ9.demo','2025-12-31 23:59:59'),
 ('def456','2','eyJhbGciOiJub25lIn0.eyJzdWIiOiJyb290Iiwicm9sZSI6ImFkbWluIn0.','2025-12-31 23:59:59');

DROP TABLE IF EXISTS api_tokens;
CREATE TABLE api_tokens(
  id INT PRIMARY KEY AUTO_INCREMENT,
  user_id INT,
  token VARCHAR(128),
  scope VARCHAR(64)
) ENGINE=InnoDB;

INSERT INTO api_tokens VALUES
 (1,1,'sk_admin_AKIAIOSFODNN7EXAMPLE','admin'),
 (2,2,'sk_root_deadbeefcafebabe','admin'),
 (3,5,'sk_tq_pocketpentester','admin');
-- end dump
