fork download
  1. CREATE TABLE users (
  2. user_id int NOT NULL AUTO_INCREMENT,
  3. username varchar(50) NOT NULL,
  4. password varchar(255) NOT NULL,
  5. email varchar(100) NOT NULL,
  6. mobile_number varchar(15) DEFAULT NULL,
  7. created_at timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  8. utr varchar(45) DEFAULT NULL,
  9. refer_code varchar(45) NOT NULL,
  10. is_subscribe tinyint(1) NOT NULL DEFAULT '0',
  11. class_name varchar(45) NOT NULL,
  12. refer_by int DEFAULT NULL,
  13. referno int DEFAULT '0',
  14. PRIMARY KEY (user_id),
  15. UNIQUE KEY username (username),
  16. UNIQUE KEY email (email)
  17. ) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  18.  
  19.  
Success #stdin #stdout 0.02s 25772KB
stdin
Standard input is empty
stdout
CREATE TABLE users (
  user_id int NOT NULL AUTO_INCREMENT,
  username varchar(50) NOT NULL,
  password varchar(255) NOT NULL,
  email varchar(100) NOT NULL,
  mobile_number varchar(15) DEFAULT NULL,
  created_at timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  utr varchar(45) DEFAULT NULL,
  refer_code varchar(45) NOT NULL,
  is_subscribe tinyint(1) NOT NULL DEFAULT '0',
  class_name varchar(45) NOT NULL,
  refer_by int DEFAULT NULL,
  referno int DEFAULT '0',
  PRIMARY KEY (user_id),
  UNIQUE KEY username (username),
  UNIQUE KEY email (email)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;