#386 Added missing cascade
#386 Corrected id columns to integer