
CREATE TABLE station (
  s_id INT PRIMARY KEY AUTOINCREMENT,
  nombre_empleado CHAR(20)  NOT NULL,
  oficina CHAR(20) NOT NULL,
  last_turn INT NOT NULL
);

CREATE TABLE user (
  u_id INT PRIMARY KEY AUTOINCREMENT,
  uName CHAR(20) NOT NULL,
  isAdmin BIT NOT NULL,
  email CHAR(30) NOT NULL
);

CREATE TABLE turno(
 t_id INT PRIMARY KEY AUTOINCREMENT,
 cName CHAR(20) NOT NULL, 
 cEmail CHAR(30) NOT NULL, 
 purpose CHAR(40), 
 timeArrival CHAR(5) NOT NULL, 
 timeEnter CHAR(5),
 station INT NOT NULL, 
 FOREIGN KEY (station) REFERENCES station (id) 
);

