DROP TABLE IF EXISTS reservas;

CREATE TABLE reservas (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    nombre TEXT NOT NULL,
    fecha DATE NOT NULL,
    hora TIME NOT NULL
);


DROP TABLE IF EXISTS horas;

CREATE TABLE horas (
    fecha TEXT NOT NULL,
    hora0900 TEXT NOT NULL,
    hora1000 TEXT NOT NULL,
    hora1100 TEXT NOT NULL,
    hora1200 TEXT NOT NULL,
    hora1300 TEXT NOT NULL,
    hora1400 TEXT NOT NULL,
    hora1500 TEXT NOT NULL,
    hora1600 TEXT NOT NULL,
    hora1700 TEXT NOT NULL,
    hora1800 TEXT NOT NULL,
    hora1900 TEXT NOT NULL,
    hora2000 TEXT NOT NULL,
    hora2100 TEXT NOT NULL,
    hora2200 TEXT NOT NULL
);