-- migrate:up
CREATE TABLE peminjaman_detail (
    id INT AUTO_INCREMENT PRIMARY KEY,
    peminjaman_id INT,
    barang VARCHAR(100),
    jumlah INT,
    tanggal_kembali DATE,
    tanggal_in DATE,
    FOREIGN KEY (peminjaman_id) REFERENCES peminjaman(id) ON DELETE CASCADE
);

-- migrate:down
DROP TABLE IF EXISTS peminjaman_detail;
