fork download
  1. CREATE TABLE users (
  2. id BIGINT PRIMARY KEY AUTO_INCREMENT,
  3. full_name VARCHAR(150) NOT NULL,
  4. employee_number VARCHAR(20) UNIQUE NOT NULL,
  5. phone VARCHAR(20),
  6. email VARCHAR(100),
  7. password VARCHAR(255) NOT NULL,
  8. role_id BIGINT,
  9. branch_id BIGINT,
  10. status ENUM('active','inactive') DEFAULT 'active',
  11. created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  12. updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
  13. );
Success #stdin #stdout #stderr 0s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: near "AUTO_INCREMENT": syntax error