CREATE TABLE users (
  id int(11) NOT NULL AUTO_INCREMENT,
  telegram_id bigint(20) NOT NULL,
  username varchar(255) DEFAULT NULL,
  first_name varchar(255) DEFAULT NULL,
  phone varchar(20) DEFAULT NULL,
  exchange varchar(50) DEFAULT NULL,
  uid varchar(100) DEFAULT NULL,
  step varchar(50) DEFAULT 'none',
  status enum('pending','active','warned','kicked') DEFAULT 'pending',
  warned_at datetime DEFAULT NULL,
  created_at timestamp DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (id),
  UNIQUE KEY telegram_id (telegram_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;