-- migrate:up
CREATE TABLE peminjaman_riwayat_perpanjangan (
    id INT AUTO_INCREMENT PRIMARY KEY,
    peminjaman_detail_id INT,
    tanggal_perpanjangan DATE,
    keterangan VARCHAR(255),
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    FOREIGN KEY (peminjaman_detail_id) REFERENCES peminjaman_detail(id) ON DELETE CASCADE
);

-- migrate:down
DROP TABLE IF EXISTS peminjaman_riwayat_perpanjangan;