CREATE TABLE
  shifts (
    id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
    start DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
    end DATETIME DEFAULT NULL
  )
