Just skip the DEFAULT '0' at the id field when you are creating the tables. So the correct SQL would be: