alterei restricoes de script sql colocando ON UPDATE e ON DELETE