This is the result of "show create table":
CREATE TABLE `rezervacija` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`korisnik_id` int(11) NOT NULL,
`knjiga_id` int(11) NOT NULL,
`datum_rezervacije` date NOT NULL,
`datum_otkaza` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `korisnik_id` (`korisnik_id`),
KEY `knjiga_id` (`knjiga_id`),
CONSTRAINT `rezervacija_ibfk_1` FOREIGN KEY (`korisnik_id`) REFERENCES `korisnik` (`id`) ON DELETE CASCADE,
CONSTRAINT `rezervacija_ibfk_2` FOREIGN KEY (`knjiga_id`) REFERENCES `knjiga` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci
And version of MariaDB is: 10.5.26-MariaDB-0+deb11u2