No Description

schema.sql 557B

1234567891011121314151617181920212223242526
  1. CREATE TABLE station (
  2. s_id INT PRIMARY KEY AUTOINCREMENT,
  3. nombre_empleado CHAR(20) NOT NULL,
  4. oficina CHAR(20) NOT NULL,
  5. last_turn INT NOT NULL
  6. );
  7. CREATE TABLE user (
  8. u_id INT PRIMARY KEY AUTOINCREMENT,
  9. uName CHAR(20) NOT NULL,
  10. isAdmin BIT NOT NULL,
  11. email CHAR(30) NOT NULL
  12. );
  13. CREATE TABLE turno(
  14. t_id INT PRIMARY KEY AUTOINCREMENT,
  15. cName CHAR(20) NOT NULL,
  16. cEmail CHAR(30) NOT NULL,
  17. purpose CHAR(40),
  18. timeArrival CHAR(5) NOT NULL,
  19. timeEnter CHAR(5),
  20. station INT NOT NULL,
  21. FOREIGN KEY (station) REFERENCES station (id)
  22. );