CREATE TABLE users(
id INT AUTO_INCREMENT PRIMARY KEY,
telegram_id BIGINT UNIQUE,
username VARCHAR(255),
link_token VARCHAR(100) UNIQUE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE messages(
id INT AUTO_INCREMENT PRIMARY KEY,
sender_id BIGINT,
receiver_id BIGINT,
message TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE blocked(
id INT AUTO_INCREMENT PRIMARY KEY,
telegram_id BIGINT UNIQUE
);
