CREATE TABLE IF NOT EXISTS impfstoff_workflow (
    impfstoff_id INT NOT NULL,
    dosen_pro_flasche INT NOT NULL,
    updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    PRIMARY KEY (impfstoff_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS impfstoff_wochenplan (
    plan_id INT NOT NULL AUTO_INCREMENT,
    impfstoff_id INT NOT NULL,
    wochentag TINYINT NOT NULL,
    start TIME NOT NULL,
    ende TIME NOT NULL,
    impfortid INT NOT NULL,
    aktiv TINYINT NOT NULL DEFAULT 1,
    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (plan_id),
    INDEX idx_impfstoff_wochenplan_impfstoff (impfstoff_id),
    INDEX idx_impfstoff_wochenplan_wochentag (wochentag)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
